🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10130

Re: bug in gdb or bash

#10130
From: Chet Ramey
Date: Mon, 04 Jun 1990 23:32
25 lines
1734 bytes
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: <9006042332.AA28531@cwns1.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!tut.cis.ohio-state.edu!CWNS1.INS.CWRU.EDU!chet
References: <9006022042.AA27834@sugar-bombs.ai.mit.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,2ce858e67b3caaa6,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-06-04 21:32:03 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!tut.cis.ohio-state.edu!CWNS1.INS.CWRU.EDU!chet
From: chet@CWNS1.INS.CWRU.EDU (Chet Ramey)
Newsgroups: gnu.gdb.bug
Subject: Re: bug in gdb or bash
Message-ID: <9006042332.AA28531@cwns1.INS.CWRU.Edu>
Date: 4 Jun 90 23:32:52 GMT
References: <9006022042.AA27834@sugar-bombs.ai.mit.edu>
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA)
Lines: 25
Posted: Tue Jun  5 00:32:52 1990