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 nptl/1913] Thread blocked on sem_wait() does not unwind the C++ stack on thread cancellation.


------- Additional Comments From jorge dot monteagudo at gmail dot com  2005-11-29 10:58 -------
Hello,

I've tested the code with the last Mandriva release, with the new
tools' version, with no luck. Following my configuration.


$ ./a.out
Thread canceled.

$ uname -a
Linux wsi-shuttle 2.6.13.4 #1 Tue Nov 15 17:01:49 CET 2005 i686 AMD Sempron
(tm)   2400+ unknown GNU/Linux

$ g++ --version
g++ (GCC) 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)

$ ldd --version
ldd (GNU libc) 2.3.5

$ ldd ./a.out
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7f7c000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7ea0000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7e7b000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e70000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d41000)
        /lib/ld-linux.so.2 (0xb7fa8000)

$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.5

$ gdb a.out
GNU gdb 6.3-5mdk (Mandriva Linux release 2006.0)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-mandriva-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

(gdb) r
Starting program: /home/user/a.out
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xffffe000
[Thread debugging using libthread_db enabled]
[New Thread -1211226432 (LWP 2657)]
[New Thread -1211229264 (LWP 2660)]
Interrupted sem_wait?: Interrupted system call
Interrupted sem_wait?: Interrupted system call

Program received signal SIG32, Real-time event 32.
[Switching to Thread -1211229264 (LWP 2660)]
0xffffe410 in __kernel_vsyscall ()

(gdb) thread apply all bt

Thread 2 (Thread -1211229264 (LWP 2660)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f27980 in sem_wait@GLIBC_2.0 () from /lib/tls/libpthread.so.0
#2  0xb7f2cff4 in ?? () from /lib/tls/libpthread.so.0
#3  0x0804883d in cancel_thread ()
#4  0xb7f23c40 in start_thread () from /lib/tls/libpthread.so.0
#5  0xb7daf0ee in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1211226432 (LWP 2657)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f24088 in pthread_join () from /lib/tls/libpthread.so.0
#2  0x080489b2 in main ()

(gdb) shared
Symbols already loaded for /lib/tls/libpthread.so.0
Symbols already loaded for /usr/lib/libstdc++.so.6
Symbols already loaded for /lib/tls/libm.so.6
Symbols already loaded for /lib/libgcc_s.so.1
Symbols already loaded for /lib/tls/libc.so.6
Symbols already loaded for /lib/ld-linux.so.2



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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