From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9040 invoked by alias); 12 Sep 2005 04:51:53 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9009 invoked by uid 22791); 12 Sep 2005 04:51:49 -0000 Received: from chfw.preston.net (HELO universe.preston.net) (202.14.89.130) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 12 Sep 2005 04:51:49 +0000 Received: from norman (norman.preston.net [202.14.10.82]) by universe.preston.net (8.11.6/8.11.6) with ESMTP id j8C4pik30363 for ; Mon, 12 Sep 2005 14:51:44 +1000 Subject: gdb gets suspended during debugging From: Craig Jeffree To: gdb@sources.redhat.com Content-Type: text/plain Date: Mon, 12 Sep 2005 04:51:00 -0000 Message-Id: <1126500703.25254.134.camel@norman> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00067.txt.bz2 Hi everyone, I've discovered that GDB will get suspended/backgrounded when debugging if it produces a terminal height worth of the "Detaching after fork from child process..." messages. This only occurs the first time the terminal fills up and you can simply 'fg' the debugger back to the foreground and it will continue without any problems. You can also work around it by doing 'set height 0' in gdb as this prevents it from prompting when the terminal fills up. I couldn't find any bugs regarding this in the database, only an unanswered message in a mailing list somewhere. Has anyone else seen this before? It is a bug isn't it? Is there a better fix/workaround so that I can keep my value for height untouched and not have to 'fg' the debugger? I've seen this with gdb 6.2 and 6.3, I compiled the example below with gcc 3.2.3 and it occurs with both bash and tcsh. I've only tested it under RHEL3 & 4. To see it for yourselves run this in GDB: #include int main() { while(1) { if (!fork()) exit(1); sleep(1); } } Cheers, Craig.