bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash crashes on detaching Screen


From: Chet Ramey
Subject: Re: Bash crashes on detaching Screen
Date: Tue, 02 Dec 2014 14:44:52 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/2/14, 12:59 PM, Darshit Shah wrote:

>> However, when I attempted the same from a virtual Terminal instead of an
>> emulator, upon remotely detaching the screen session, my terminal
>> directly displayed a login prompt again. This leads me to believe that
>> Bash did crash even then and caused the login prompt to reappear.
>>
>>
> 
> I just recompiled my Bash with debugging symbols and attempted to run Bash
> under gdb. Here is the trace I received:
> 
> 
> [remote power detached from 19442.pts-1.mordor]
> 
> Program received signal SIGHUP, Hangup.

The shell received SIGHUP, presumably sent by screen or the vty driver.
SIGHUP is a fatal signal; the shell catches it, cleans up, restores the
default signal handler, and resends SIGHUP to itself, which results in
bash exiting due to the SIGHUP.

This is not a bug.

- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iEYEARECAAYFAlR+FrMACgkQu1hp8GTqdKtO8wCeLT+SAznAczjfUuko5fBmcWnm
87EAn1k4Ps7hrTGULjP+2ysstxDYeW8S
=7ZUh
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]