|
From: Alex I. <ale...@in...> - 2005-03-17 19:06:54
|
Guys, I am having a little problem with 2.4.0.rc4 handling signals in my app - 2.2.0 worked fine. The application logic is as follows - the main thread spawns about a dozen threads, then sits in pause() call in a forever loop. At some point one of the threads determines that the application must be shut down and sends a SIGNIT to the main thread, which does some cleanup and exits the application. With rc4 it results in a bunch of defunct threads and I never get a summary on exit. Incidentally, I don't get a summary when calling _exit() from within the code either (it used to work). Please, let me know what workarounds I can use here. Below is the signal trace. Thanks! Alex Ivershen ==15915== Process terminating with default action of signal 2 (SIGINT) ==15915== at 0x1BA79741: pause (in /lib/libpthread-0.10.so) ==15915== by 0x8048B8B: main (/home/agi/probe/v503.sim/SimXinuApps/SimXinu/src/SimXinu.cc:109) --15915-- kill_thread zaps tid 2 lwp 16332 --15915-- kill_thread zaps tid 3 lwp 16334 --15915-- kill_thread zaps tid 4 lwp 16344 --15915-- kill_thread zaps tid 5 lwp 16345 --15915-- kill_thread zaps tid 6 lwp 16347 --15915-- kill_thread zaps tid 7 lwp 16348 --15915-- kill_thread zaps tid 8 lwp 16349 --15915-- kill_thread zaps tid 10 lwp 16352 --15915-- kill_thread zaps tid 12 lwp 16355 --15915-- kill_thread zaps tid 13 lwp 16357 --15915-- kill_thread zaps tid 14 lwp 16359 --15915-- kill_thread zaps tid 16 lwp 17182 --15915-- kill_thread zaps tid 17 lwp 17183 --15915-- kill_thread zaps tid 18 lwp 17233 --15915-- kill_thread zaps tid 19 lwp 17293 --15915-- kill_thread zaps tid 20 lwp 17299 --15915-- kill_thread zaps tid 21 lwp 17352 --15915-- kill_thread zaps tid 22 lwp 17366 --16332-- sigvgkill for lwp 16332 tid 2 --16332-- Sending SIGVGCHLD to master tid=1 lwp=15915 --16345-- sigvgkill for lwp 16345 tid 5 --16334-- sigvgkill for lwp 16334 tid 3 --16345-- Sending SIGVGCHLD to master tid=1 lwp=15915 --16347-- sigvgkill for lwp 16347 tid 6 --16347-- Sending SIGVGCHLD to master tid=1 lwp=15915 --16355-- sigvgkill for lwp 16355 tid 12 --16355-- Sending SIGVGCHLD to master tid=1 lwp=15915 --16357-- sigvgkill for lwp 16357 tid 13 --16357-- Sending SIGVGCHLD to master tid=1 lwp=15915 --15915-- Got 63 (code=-6) from tid lwp 16332 --15915-- Got 63 (code=-6) from tid lwp 16345 --15915-- Got 63 (code=-6) from tid lwp 16347 --15915-- Got 63 (code=-6) from tid lwp 16355 --15915-- Got 63 (code=-6) from tid lwp 16357 --16334-- Sending SIGVGCHLD to master tid=1 lwp=15915 --15915-- Got 63 (code=-6) from tid lwp 16334 --16353-- Sending SIGVGCHLD to master tid=1 lwp=15915 --15915-- Got 63 (code=-6) from tid lwp 16353 ------------------------------------------------------------------------ Confidentiality Notice: This e-mail transmission may contain confidential and/or privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or reliance upon the contents of this e-mail message is strictly prohibited. If you have received this e-mail transmission in error, please reply to the sender, so that proper delivery can be arranged, and please delete the message from your computer. Thank you. Tektronix Texas, LLC formerly Inet Technologies, Inc. ------------------------------------------------------------------------ |