LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-09-2011, 11:05 PM   #1
Drew Eckhardt
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Multi threaded Wine txm123 Linux - Newbie 2 08-14-2010 02:56 PM
multi boot with grub after debian lenny install Elixer Linux - Newbie 1 12-26-2009 03:12 AM
Killing all remainig processes ....failed during debian/lenny shutdown process. sarajevo Debian 7 12-11-2008 08:26 PM
apache: running multi-threaded or multi fork? Swakoo Linux - General 1 03-20-2008 08:18 AM
Multi-Threaded C pragti Programming 1 06-01-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration