Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-07-2011, 04:04 AM   #1
LQ Newbie
Registered: Jun 2011
Location: Stockholm
Posts: 16

Rep: Reputation: Disabled
[RHEL 6.0] Deadlock in malloc (glibc-2.12-1.25)


Have written a program that reads and interprets one or more files.
Quite randomly the process get stuck and never quits and I have to kill it and when restarted, it runs for a while and then it hangs again.

This is the bt from gdb:

[ids@venom bin]$ gdb idsremote 1637
GNU gdb (GDB) Red Hat Enterprise Linux (7.1-29.el6_0.1)
<a lot of debug crap>
(gdb) bt
#0 0x0000003b3cef0dce in __lll_lock_wait_private () from /lib64/
#1 0x0000003b3ce7c138 in _L_lock_9164 () from /lib64/
#2 0x0000003b3ce79a32 in malloc () from /lib64/
#3 0x0000003b3ca0e125 in _dl_signal_error () from /lib64/
#4 0x0000003b3ca0e2ea in _dl_signal_cerror () from /lib64/
#5 0x0000003b3ca0a1ea in _dl_lookup_symbol_x () from
#6 0x0000003b3cf1f08d in call_dl_lookup () from /lib64/
#7 0x0000003b3ca0e016 in _dl_catch_error () from /lib64/
#8 0x0000003b3cf1f399 in do_sym () from /lib64/
#9 0x0000003b3d2010c4 in dlsym_doit () from /lib64/
#10 0x0000003b3ca0e016 in _dl_catch_error () from /lib64/

When searching a bit, I came across that describes the same problem.

In that particular bug, it says the bug is fixed in glibc-2.12-1.34.el6 (but the bug it self is not fixed!)

But if looking further, there is (which has been copied from the other) it says it's fixed in glibc-2.12-1.7.el6_0.8.

On my installation I had glibc-2.12-1.7.el6_0.3 so I upgraded to glibc-2.12-1.25.el6.x86_64 but the problem still remains.

Any tips?


my system:

[ids@venom ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.0 (Santiago)

[ids@venom ~]$ uname -a
Linux venom 2.6.32-71.14.1.el6.x86_64 #1 SMP Wed Jan 5 17:01:01 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

rpm -qa at
Old 07-12-2011, 08:02 AM   #2
LQ Newbie
Registered: Jun 2011
Location: Stockholm
Posts: 16

Original Poster
Rep: Reputation: Disabled
I couldn't find any solution to the problem, so I did a full update to 6.1.

Have done some testruns and the problems seems to be solved in 6.1



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
*** glibc detected *** malloc() / free()/ double RohanShrivastav Programming 12 10-01-2012 10:08 AM
*** glibc detected ***: malloc() memory corruption Dinarchik Programming 5 02-16-2010 05:38 PM
*** glibc detected *** malloc(): memory corruption arvind.ayyangar Programming 2 11-20-2006 11:59 PM
malloc error: glibc vdhussa Linux - General 10 05-31-2006 09:47 AM
glibc detected *** malloc(): memory corruption: abefroman Linux - Software 2 04-12-2006 12:12 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:46 PM.

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