🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10132

[chet@cwns1.ins.cwru.edu: Re: bug in gdb or bash]

#10132
From: rms
Date: Tue, 05 Jun 1990 04:58
35 lines
2031 bytes
Return-Path: <chet@cwns1.ins.cwru.edu>
Date: Mon, 4 Jun 90 19:32:52 -0400
From: Chet Ramey <chet@cwns1.ins.cwru.edu>
To: rms@ai.mit.edu
Subject: Re: bug in gdb or bash
Newsgroups: gnu.bash.bug
In-Reply-To: <9006022042.AA27834@sugar-bombs.ai.mit.edu>
Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA)
Cc: bug-gdb@ai.mit.edu, chet@cwns1.ins.cwru.edu, bfox@ai.mit.edu

In article <9006022042.AA27834@sugar-bombs.ai.mit.edu> you write:
>In version 3.5 on a 386 running SysV, after the "shell" command,
>it seems that both the shell and some other process (perhaps gdb)
>try to read input at the same time.
>
>I had previously run the "more" command and killed it with C-c.
>Immediately after this, I observed the problem.

>Eventually, I was able to exit bash by typing "eexxiitt".  After the
>shell exited, gdb complained that "exit" was not a defined command.

It seems that GDB does not reset caught signals when exec-ing the shell. 
Keyboard-generated signals go to both it and bash because bash does not put
itself into a separate process group on machines without job control.  I
assume gdb jumps back to the top of its command loop upon receipt of a
SIGINT in much the same manner as bash, and both try to read another
command.

Chet

-- 
Chet Ramey				"...but worst of all, young man,
Network Services Group			 you've got Industrial Disease!"
Case Western Reserve University	
chet@ins.CWRU.Edu		
Technical Details
Message-ID: <9006050458.AA15440@sugar-bombs.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!ogicse!ucsd!tut.cis.ohio-state.edu!AI.MIT.EDU!rms

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,ed9f64a06a3fa0b4,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-06-05 00:23:10 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!ogicse!ucsd!tut.cis.ohio-state.edu!AI.MIT.EDU!rms
From: rms@AI.MIT.EDU
Newsgroups: gnu.gdb.bug
Subject: [chet@cwns1.ins.cwru.edu: Re: bug in gdb or bash]
Message-ID: <9006050458.AA15440@sugar-bombs.ai.mit.edu>
Date: 5 Jun 90 04:58:10 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 35
Posted: Tue Jun  5 05:58:10 1990