Subj : Help! pthread_cancel causes problem To : comp.programming.threads From : Jessie Date : Fri Sep 02 2005 06:16 pm Hi, Can anyone help me with this problem? This happens only on Linux Redhat 3. When I need to terminate a thread by using pthread_cancel(), I got this core dump. The bug trace follows: #0 0xb75ebc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0xb718fa09 in raise () from /lib/tls/libc.so.6 #2 0xb7191235 in abort () from /lib/tls/libc.so.6 #3 0xb7355487 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5 #4 0xb73554d4 in std::terminate() () from /usr/lib/libstdc++.so.5 #5 0xb73552fc in __gxx_personality_v0 () from /usr/lib/libstdc++.so.5 #6 0xb72a3332 in _Unwind_RaiseException () from /lib/libgcc_s.so.1 #7 0xb72a33cb in _Unwind_ForcedUnwind () from /lib/libgcc_s.so.1 #8 0xb73b62a4 in _Unwind_ForcedUnwind () from /lib/tls/libpthread.so.0 #9 0xb73b4486 in __pthread_unwind () from /lib/tls/libpthread.so.0 #10 0xb73af698 in sigcancel_handler () from /lib/tls/libpthread.so.0 #11 #12 0xb3f2564c in ?? () Previous frame inner to this frame (corrupt stack?) I've searched on web and it seems to be the Bugzilla Bug 104689. However, the solution suggested (using LD_ASSUME_KERNEL solution) doesn't work for me. Does anyone have better solution so that I can cancel the thread gracefully? Thanks a lot, Jessie .