LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2009, 12:29 PM   #1
abylin1
LQ Newbie
 
Registered: Jan 2008
Posts: 19

Rep: Reputation: 0
grep -Ri <searchterm> * returns glibc detected *** free(): invalid next size (fast)


Hello,

I've been hunting around on the internet for the last two days trying to find someone who's encountered the problem I've run into, but haven't found anything that's helped me.

I'm running RHEL4 update 4 with Oracle 10.2.0.4. I have always been able to do a grep -Ri <searchterm> * without any problems. Last week I upgraded Oracle from 10.2.0.1 to 10.2.0.4 and applied the latest Critical Patch. I did a rpm -Uvh on these rpm's before upgrading my database:
glibc-devel-2.3.4-2.25.i386.rpm
libstdc++-devel-3.4.3-22.1.i386.rpm
sysstat-5.0.5-1.i386.rpm
bzip2-1.0.2-14.el4_7.i386.rpm
bzip2-libs-1.0.2-14.el4_7.i386.rpm

I also upgraded OpenSSL to openssl-0.9.8h.

When I do a rpm -qa | grep I see this:
glibc-2.3.4-2.25
glibc-profile-2.3.6-3
glibc-common-2.3.4-2.25
glibc-headers-2.3.4-2.25
glibc-devel-2.3.4-2.25
glibc-kernheaders-2.4-9.1.98EL

After I installed the new rpms, did the upgrade, and applied the patch, whenever I do a grep -Ri <searchterm> *, I get this error:
*** glibc detected *** free(): invalid next size (fast): 0x09034c90 *** Aborted

What is puzzling is that this always used to work, but now it doesn't. I believe it is the "case insensitive" part of the grep that is causing the problem, because without the -i, the grep works just fine.

Laura
 
Old 05-13-2009, 04:52 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Can't tell you what exactly you screwed up with that partial update (updateing
libc in isolation [w/o doing most of the system built against it at the same time]
is almost always a very bad idea), but have a look at the output of
Code:
rpm -qR $(rpm -qf $(which grep))
and compare the versions required against the ones installed.



Cheers,
Tink
 
Old 05-14-2009, 03:30 PM   #3
abylin1
LQ Newbie
 
Registered: Jan 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Hello,

I did a rpm -qR $(rpm -qf $(which grep)), and this is what was returned (I don't understand how to interpret that command and what the output means):

/bin/sh
/bin/sh
/sbin/install-info
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.2.3)
libc.so.6(GLIBC_2.3)
libc.so.6(GLIBC_2.3.4)
libpcre.so.0
pcre
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

I didn't realize I did a "partial update (updating libc in isolation)". Before I upgraded/patched my database, I checked the Oracle docs to make sure I had all the required rpms, and I was missing libstdc++-devel-3.4.3-22.1 and sysstat-5.0.5-1, so I downloaded them and did the rpm -Uvh commands on them to install. I didn't have any issues when I did that, so I had no idea I was only doing a partial install. According to the Oracle preinstallation tasks, these are the necessary rpms (http://download.oracle.com/docs/cd/B...htm#CIHFICFD):

Red Hat Enterprise Linux 4.0 and Asianux 2.0:

binutils-2.15.92.0.2-13.EL4
compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
control-center-2.8.0-12
gcc-3.4.3-22.1.EL4
gcc-c++-3.4.3-22.1.EL44
glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
setarch-1.6-1

Could you please help me interpret what the rpm -qR $(rpm -qf $(which grep)) is telling me and what I can do now?

Thank you!
 
Old 05-14-2009, 05:08 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by abylin1 View Post

Could you please help me interpret what the rpm -qR $(rpm -qf $(which grep)) is telling me and what I can do now?
Sure ... start reading from the innermost parenthesis
(the $( ) construct will run a sub-shell and hand its
output back to the calling shell):


Code:
which grep
/usr/bin/grep
The result, /usr/bin/grep, gets passed into
rpm -qf (man rpm: find which package a file belongs to, and
return its name):
Code:
rpm -qf /usr/bin/grep
grep-2.5.1-32.3
The result, grep-2.5.1-32.3, then gets passed into the
next rpm query; rpm -qR (man rpm: list packages this package
depends on):
Code:
rpm -qR grep-2.5.1-32.3

If the versions of libs your grep depends on matches the
list of installed packages, it's sweet. If there's no
obvious discrepancies, proceed with libs that are listed
w/o explicit version numbers in your last command, and
see whether anything THESE depend on is missing/in a
wrong version number.

A good candidate will be the regex library.



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error running a C program, glibc detected *** free(): invalid next size (normal) mesh2005 Programming 3 11-08-2006 02:52 PM
*** glibc detected *** free(): invalid next size (normal): 0x0000000000503e70 *** vbreddy Programming 2 04-10-2006 07:27 PM
*** glibc detected *** free(): invalid next size (normal): 0x0804c050 *** water&sky Linux - General 2 03-03-2006 01:25 PM
*** glibc detected *** free(): invalid next size (normal): 0x0804c050 *** water&sky Linux - Software 1 03-02-2006 09:23 AM


All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration