public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
@ 2011-05-17  2:39 ` arequipeno at gmail dot com
  2011-05-17  2:40 ` arequipeno at gmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: arequipeno at gmail dot com @ 2011-05-17  2:39 UTC (permalink / raw)
  To: glibc-bugs

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

Ian Pilcher <arequipeno at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arequipeno at gmail dot com

-- 
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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
  2011-05-17  2:39 ` [Bug libc/770] possible deadlock on double-free logging arequipeno at gmail dot com
@ 2011-05-17  2:40 ` arequipeno at gmail dot com
  2012-02-21  1:18 ` [Bug malloc/770] " jsm28 at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: arequipeno at gmail dot com @ 2011-05-17  2:40 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug malloc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
  2011-05-17  2:39 ` [Bug libc/770] possible deadlock on double-free logging arequipeno at gmail dot com
  2011-05-17  2:40 ` arequipeno at gmail dot com
@ 2012-02-21  1:18 ` jsm28 at gcc dot gnu.org
  2012-04-16 13:49 ` siddhesh at redhat dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-21  1:18 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |malloc

-- 
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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug malloc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2012-02-21  1:18 ` [Bug malloc/770] " jsm28 at gcc dot gnu.org
@ 2012-04-16 13:49 ` siddhesh at redhat dot com
  2012-04-17  4:41 ` arequipeno at gmail dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: siddhesh at redhat dot com @ 2012-04-16 13:49 UTC (permalink / raw)
  To: glibc-bugs

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

Siddhesh Poyarekar <siddhesh at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |siddhesh at redhat dot com

--- Comment #12 from Siddhesh Poyarekar <siddhesh at redhat dot com> 2012-04-16 13:48:38 UTC ---
Ian, what you're hitting should have been fixed with commit id f8a3b5bf. The X
backtrace is waiting on a lock in a malloc within __libc_message. The commit I
mentioned replaces these malloc calls with mmap() calls to avoid getting
tangled up in the arena locks.

-- 
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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug malloc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2012-04-16 13:49 ` siddhesh at redhat dot com
@ 2012-04-17  4:41 ` arequipeno at gmail dot com
  2013-10-13  7:36 ` neleai at seznam dot cz
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: arequipeno at gmail dot com @ 2012-04-17  4:41 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #13 from Ian Pilcher <arequipeno at gmail dot com> 2012-04-17 04:39:21 UTC ---
(In reply to comment #12)
> Ian, what you're hitting should have been fixed with commit id f8a3b5bf. The X
> backtrace is waiting on a lock in a malloc within __libc_message. The commit I
> mentioned replaces these malloc calls with mmap() calls to avoid getting
> tangled up in the arena locks.

Thanks Siddhesh!

Fortunately, I haven't seen this problem in quite a while.  (I'd like to think
that the real problem in X has been fixed, but it seems more likely that my
system has changed enough that the race condition that causes the memory
corruption/detection isn't being triggered any more.  Oh well.)

-- 
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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug malloc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2012-04-17  4:41 ` arequipeno at gmail dot com
@ 2013-10-13  7:36 ` neleai at seznam dot cz
  2014-02-16 19:20 ` jackie.rosen at hushmail dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: neleai at seznam dot cz @ 2013-10-13  7:36 UTC (permalink / raw)
  To: glibc-bugs

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

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |neleai at seznam dot cz
         Resolution|---                         |DUPLICATE

--- Comment #14 from Ondrej Bilka <neleai at seznam dot cz> ---
Fixed in duplicate bug as was mentioned earlier in thread.

*** This bug has been marked as a duplicate of bug 10282 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug malloc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2013-10-13  7:36 ` neleai at seznam dot cz
@ 2014-02-16 19:20 ` jackie.rosen at hushmail dot com
  2014-05-28 19:43 ` schwab at sourceware dot org
  2014-06-17  4:01 ` fweimer at redhat dot com
  8 siblings, 0 replies; 9+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 19:20 UTC (permalink / raw)
  To: glibc-bugs

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

Jackie Rosen <jackie.rosen at hushmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackie.rosen at hushmail dot com

--- Comment #15 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug malloc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2014-02-16 19:20 ` jackie.rosen at hushmail dot com
@ 2014-05-28 19:43 ` schwab at sourceware dot org
  2014-06-17  4:01 ` fweimer at redhat dot com
  8 siblings, 0 replies; 9+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:43 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jackie.rosen at hushmail dot com   |

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug malloc/770] possible deadlock on double-free logging
       [not found] <bug-770-131@http.sourceware.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2014-05-28 19:43 ` schwab at sourceware dot org
@ 2014-06-17  4:01 ` fweimer at redhat dot com
  8 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2014-06-17  4:01 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-17  4:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-770-131@http.sourceware.org/bugzilla/>
2011-05-17  2:39 ` [Bug libc/770] possible deadlock on double-free logging arequipeno at gmail dot com
2011-05-17  2:40 ` arequipeno at gmail dot com
2012-02-21  1:18 ` [Bug malloc/770] " jsm28 at gcc dot gnu.org
2012-04-16 13:49 ` siddhesh at redhat dot com
2012-04-17  4:41 ` arequipeno at gmail dot com
2013-10-13  7:36 ` neleai at seznam dot cz
2014-02-16 19:20 ` jackie.rosen at hushmail dot com
2014-05-28 19:43 ` schwab at sourceware dot org
2014-06-17  4:01 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).