This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/770] possible deadlock on double-free logging


http://sourceware.org/bugzilla/show_bug.cgi?id=770

--- Comment #11 from Ian Pilcher <arequipeno at gmail dot com> 2011-05-17 02:38:49 UTC ---
Created attachment 5729
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5729
gdb backtrace of deadlocked X server

I believe that I just hit this bug.  My X server locks hard every time I log
out -- apparently trying to print an error message about a corrupted double-
linked list.

#0  __lll_lock_wait_private () at
../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:100
#1  0x000000351127ec11 in _L_lock_10461 () from /lib64/libc.so.6
#2  0x000000351127c9d7 in __libc_malloc (bytes=227924349408) at malloc.c:3657
#3  0x000000351127235d in __libc_message (do_abort=2, 
    fmt=0x351135d8c8 "*** glibc detected *** %s: %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:137
#4  0x000000351127896a in malloc_printerr (action=3, 
    str=0x351135a8d2 "corrupted double-linked list", ptr=<optimized out>) at
malloc.c:6283
#5  0x0000003511278d80 in malloc_consolidate (av=0x35115991e0) at malloc.c:5169
#6  0x0000003511279669 in malloc_consolidate (av=0x35115991e0) at malloc.c:5115
#7  _int_free (av=0x35115991e0, p=<optimized out>, have_lock=0) at
malloc.c:5034
#8  0x0000000000461094 in FreeOsBuffers (oc=0x1237b30) at io.c:1101
#9  0x000000000045f283 in CloseDownConnection (client=0x1237b70) at
connection.c:1068
#10 0x000000000042e1c6 in CloseDownClient (client=0x1237b70) at dispatch.c:3432
#11 0x000000000042ec3a in Dispatch () at dispatch.c:441
#12 0x0000000000422e1a in main (argc=<optimized out>, argv=0x7fff630ba4b8,
envp=<optimized out>)
    at main.c:287

Needless to say, this is really painful, since the only way to recover the
system is to ssh in and kill -9 the X server.  (A simply crash would be a
lot easier to deal with, since the X server is shutting down anyway.)  Is
there any way to suppress the printing of this message?

(This is on Fedora 15 with glibc-2.13.90-11.x86_64, BTW.)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]