Why does the grep command abort whenever I try and use the "-i" flag?

Solution Unverified - Updated -

Issue

Why does the grep command abort whenever I try and use the "-i" flag?

Grepping for a certain term in case insensitivity mode (the "-i" flag) causes a glibc error. For example:

$ grep -i "insert into" 1-walkway.jpg

*** glibc detected *** free(): invalid next size (fast): 0x08df7898 ***
Aborted

Environment

  • Red Hat Enterprise Linux 4 Update 4
  • glibc

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.