Help - Search - Members - Calendar
Full Version: Strange glibc error while running grep
The Planet Forums > Control Panels > cPanel/WHM
jondolar
I'm running the following command from the shell and I get a core dump and an error. It looks like there is a problem with the glibc module. Not sure if that means it did not compile properly or is damaged or if that means there is a memory problem. Here is the command I am running and the error:

root@secure [/home/bbentley]# grep -lir "/home/virtual" *
*** glibc detected *** free(): invalid next size (fast): 0x09421b38 ***
Aborted (core dumped)
root@secure [/home/bbentley]#

Anybody have any ideas? Am I hitting some sort of recursive wall? I was told to modify /etc/sysctl.conf but I have no idea what to change/increase.

I ran /scripts/cpup --force to force a download of the latest files. I wasn't sure if that included any files needed to rebuild glibc. Can someone provide guidance on that?

Thank you
jondolar
Well, I switched my script to use:
find . -type f

instead of using grep

It's much slower since perl now does a search/replace on all files returned instead of just files that contain the original search string.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.