GDB control-C delivers SIGHUP to multi-threaded processes under Debian Lenny
Under Debian Lenny GDB does not play nice with mpm worker apache regardless of whether the included GDB or newer versions are used. $SHELL is tcsh.
Although I can set GDB to ignore SIGHUP, (gdb) handle SIGHUP ignore Signal Stop Print Pass to program Description SIGHUP Yes Yes No Hangup hitting control-C and continuing results in SIGHUPs being delivered Program received signal SIGHUP, Hangup. [Switching to Thread 0x536bd950 (LWP 2260)] 0x00007fc43a28fa5b in accept () from /lib/libpthread.so.0 (gdb) c Continuing. [Thread 0x536bd950 (LWP 2260) exited] and then program termination. Everything is fine with apache mpm prefork and no threads. I'm currently using kernel 2.6.32-bpo.5-amd64 but have seen the failure with other versions. Ideas? I've never had problems debugging multi-threaded programs under any other Linux variant. |
All times are GMT -5. The time now is 09:01 AM. |