LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   GDB control-C delivers SIGHUP to multi-threaded processes under Debian Lenny (https://www.linuxquestions.org/questions/debian-26/gdb-control-c-delivers-sighup-to-multi-threaded-processes-under-debian-lenny-879746/)

Drew Eckhardt 05-09-2011 10:05 PM

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.