* [Bug libc/2377] Deadlock between dlclose and c++ exception/unwind
2006-02-21 16:52 [Bug libc/2377] New: Deadlock between dlclose and c++ exception/unwind sjmunroe at us dot ibm dot com
@ 2006-02-21 16:55 ` sjmunroe at us dot ibm dot com
2006-02-21 17:00 ` sjmunroe at us dot ibm dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-02-21 16:55 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From sjmunroe at us dot ibm dot com 2006-02-21 16:55 -------
Created an attachment (id=879)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=879&action=view)
dlclose/exception testcase
Untar this file and cd in the dllock_bug directory. Then run "make". This will
build and run the testcase.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2377
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/2377] Deadlock between dlclose and c++ exception/unwind
2006-02-21 16:52 [Bug libc/2377] New: Deadlock between dlclose and c++ exception/unwind sjmunroe at us dot ibm dot com
2006-02-21 16:55 ` [Bug libc/2377] " sjmunroe at us dot ibm dot com
@ 2006-02-21 17:00 ` sjmunroe at us dot ibm dot com
2006-02-21 17:02 ` sjmunroe at us dot ibm dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-02-21 17:00 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From sjmunroe at us dot ibm dot com 2006-02-21 17:00 -------
Created an attachment (id=880)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=880&action=view)
Hand built back trace of the two threads after the hang.
gdb does not give a useful back trace on powerpc fo this condition. So the
attached text file contains a handbuilt backtrace for the both threads.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2377
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/2377] Deadlock between dlclose and c++ exception/unwind
2006-02-21 16:52 [Bug libc/2377] New: Deadlock between dlclose and c++ exception/unwind sjmunroe at us dot ibm dot com
2006-02-21 16:55 ` [Bug libc/2377] " sjmunroe at us dot ibm dot com
2006-02-21 17:00 ` sjmunroe at us dot ibm dot com
@ 2006-02-21 17:02 ` sjmunroe at us dot ibm dot com
2006-02-21 17:11 ` sjmunroe at us dot ibm dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-02-21 17:02 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From sjmunroe at us dot ibm dot com 2006-02-21 17:02 -------
Example test case log:
parent main: called dlopen
parent main: calling dlsym for lib_func
parent main: calling lib_func
parent lib_func: arg1=test string
parent lib_func: thread created, rc=0
parent main: back, sleep(2)...
child run_it: new thread
child run_it: sleep(3)...
parent main: calling dlclose
parent fini_Lib: calling pthread_join
child run_it: awake again
child run_it: throw (this might hang)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2377
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/2377] Deadlock between dlclose and c++ exception/unwind
2006-02-21 16:52 [Bug libc/2377] New: Deadlock between dlclose and c++ exception/unwind sjmunroe at us dot ibm dot com
` (2 preceding siblings ...)
2006-02-21 17:02 ` sjmunroe at us dot ibm dot com
@ 2006-02-21 17:11 ` sjmunroe at us dot ibm dot com
2006-03-20 22:30 ` rsa at us dot ibm dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-02-21 17:11 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From sjmunroe at us dot ibm dot com 2006-02-21 17:11 -------
This testcase hangs on all the systems I have tested so far. Including;
powerpc and powerpc64, gcc-3.3.3/glibc-2.3.3, gcc-3.4.4/glibc-2.3.4, and
gcc-4.1.0/glibc-trunk.
I have try this on i686 gcc-3.3.3/glibc-2.3.3 and see the same failure there.
I suspect this general problem involving dl-close and g++ exception/unwind
processing.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2377
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/2377] Deadlock between dlclose and c++ exception/unwind
2006-02-21 16:52 [Bug libc/2377] New: Deadlock between dlclose and c++ exception/unwind sjmunroe at us dot ibm dot com
` (3 preceding siblings ...)
2006-02-21 17:11 ` sjmunroe at us dot ibm dot com
@ 2006-03-20 22:30 ` rsa at us dot ibm dot com
2006-03-21 20:36 ` rsa at us dot ibm dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rsa at us dot ibm dot com @ 2006-03-20 22:30 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From rsa at us dot ibm dot com 2006-03-20 22:30 -------
I experienced the same problems on x86:
Target: i486-linux-gnu
gcc-4.0.3/glibc-2.3.5
I'll test on x86-64 if I can find some hardware lying around.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rsa at us dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2377
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/2377] Deadlock between dlclose and c++ exception/unwind
2006-02-21 16:52 [Bug libc/2377] New: Deadlock between dlclose and c++ exception/unwind sjmunroe at us dot ibm dot com
` (4 preceding siblings ...)
2006-03-20 22:30 ` rsa at us dot ibm dot com
@ 2006-03-21 20:36 ` rsa at us dot ibm dot com
2006-05-02 22:02 ` drepper at redhat dot com
2010-09-02 15:52 ` schwab at linux-m68k dot org
7 siblings, 0 replies; 9+ messages in thread
From: rsa at us dot ibm dot com @ 2006-03-21 20:36 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From rsa at us dot ibm dot com 2006-03-21 20:36 -------
I tested this on x86-64 and it fails there as well.
Target: x86-64
gcc-4.0.1/glibc-2.3.5
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2377
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/2377] Deadlock between dlclose and c++ exception/unwind
2006-02-21 16:52 [Bug libc/2377] New: Deadlock between dlclose and c++ exception/unwind sjmunroe at us dot ibm dot com
` (5 preceding siblings ...)
2006-03-21 20:36 ` rsa at us dot ibm dot com
@ 2006-05-02 22:02 ` drepper at redhat dot com
2010-09-02 15:52 ` schwab at linux-m68k dot org
7 siblings, 0 replies; 9+ messages in thread
From: drepper at redhat dot com @ 2006-05-02 22:02 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2006-05-02 22:02 -------
Nothing related to C++, exceptions, and dlopen can be critical.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
http://sourceware.org/bugzilla/show_bug.cgi?id=2377
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/2377] Deadlock between dlclose and c++ exception/unwind
2006-02-21 16:52 [Bug libc/2377] New: Deadlock between dlclose and c++ exception/unwind sjmunroe at us dot ibm dot com
` (6 preceding siblings ...)
2006-05-02 22:02 ` drepper at redhat dot com
@ 2010-09-02 15:52 ` schwab at linux-m68k dot org
7 siblings, 0 replies; 9+ messages in thread
From: schwab at linux-m68k dot org @ 2010-09-02 15:52 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From schwab at linux-m68k dot org 2010-09-02 15:52 -------
Appears to work fine in 2.12.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=2377
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread