[Top][All Lists]

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

Re: bash randomly logs out on VT / serial console

From: Chet Ramey
Subject: Re: bash randomly logs out on VT / serial console
Date: Fri, 6 Jan 2017 14:57:30 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 1/2/17 6:33 PM, Russell King wrote:
> On Mon, Jan 02, 2017 at 02:06:01PM -0500, Chet Ramey wrote:
>> On 1/2/17 6:09 AM, Russell King wrote:
>>> On Sun, Jan 01, 2017 at 09:14:45PM -0500, Chet Ramey wrote:
>>>> On 1/1/17 4:01 PM, address@hidden wrote:
>>>>> Bash Version: 4.3
>>>>> Patch Level: 30
>>>>> Release Status: release
>>>>> Description:
>>>>>   Running:
>>>>>           while :; do s=$(sleep .005 | cat); echo $s; done | uniq
>>>>>   in a login shell on a virtual terminal or serial console results
>>>>>   in the shell randomly logging out after ^C.
>>>> I believe this is fixed in bash-4.4.
>>> Thank you for your reply.
>>> However, while testing bash-4.4 with the five additional patches (bringing
>>> it to 4.4.5) shows that it is not fixed in bash-4.4 - see below.  The line
>>> from __tty_check_change() is from the debug I added to the kernel, which
>>> shows that the reason for the EIO error is because the tty pgrp doesn't
>>> match the process' pgrp.
>> OK.  I can't reproduce it on Fedora 25.
> Thank you for your reply.
> Here's more information from the strace logs in case it helps - these
> are from the "useful" command rather than the one which I quoted in
> the bug report which reproduces it as well - "mii-diag" for the "sleep"
> and "sed" for the "cat" part - otherwise identical.  Note that I'm
> running a modified mii-diag here...

Thanks.  With this and the pgrp information you provided in a different
message, it was pretty easy to find and fix the problems.  The fixes will
be in the next devel snapshot.


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

reply via email to

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