Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16659

Re: Issue with Bash

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Issue with Bash
Date 2020-07-31 09:35 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.380.1596202520.2739.bug-bash@gnu.org> (permalink)
References (2 earlier) <OF94D9117F.783D1B7F-ON002585A0.002B581F-002585A0.0033083D@notes.na.collabserv.com> <AM0PR0202MB3442338FB2BA03CC53BF18F5EA640@AM0PR0202MB3442.eurprd02.prod.outlook.com> <OFDCE7FFF8.B623ABC2-ON002585AB.0023ACB2-002585AB.0023F29F@notes.na.collabserv.com> <OFBE0423CD.27BCE8FB-ON002585B6.00241358-002585B6.0028D3D0@notes.na.collabserv.com> <76d97603-ac8b-1952-cb10-f178fd8989db@case.edu>

Show all headers | View raw


On 7/31/20 3:25 AM, Rishita Saha16 wrote:
> Hi All,
>  
> We have been able to recreate a scenario where bash dumps core immediately
> on issuing a SIGHUP to the parent process (kill -1 <parent-pid>). On
> debugging, the core so generated shows exactly the same stack trace as we
> had seen with the previous core. Below is the truss output of bash process
> when the parent process of bash (ksh, in this case) gets a SIGHUP:

I'm trying to figure out the scenario here. An interactive bash, which is
the child of an interactive ksh, runs `kill -1 $PPID'. The parent ksh
apparently closes the controlling terminal (?), then resends the SIGHUP
to its children (bash) before exiting.

The interactive bash catches SIGHUP in readline, attempts to clean up the
terminal by restoring the original settings, and gets SIGHUP (?), even
though SIGHUP isn't one of the signals that's supposed to be sent when you
use tcsetattr.

I'd love to know what's happening to the controlling terminal here,
assuming the scenario I've outlined is what's happening.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Issue with Bash Chet Ramey <chet.ramey@case.edu> - 2020-07-31 09:35 -0400

csiph-web