bug-bash
[Top][All Lists]
Advanced

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

Re: process substitution fd lifetime race condition


From: Chet Ramey
Subject: Re: process substitution fd lifetime race condition
Date: Mon, 20 Apr 2020 17:58:26 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 4/20/20 5:56 PM, Jason A. Donenfeld wrote:
> On Mon, Apr 20, 2020 at 3:49 PM Chet Ramey <chet.ramey@case.edu> wrote:
>>
>> On 4/20/20 5:01 PM, Jason A. Donenfeld wrote:
>>> On 4/20/20, Chet Ramey <chet.ramey@case.edu> wrote:
>>>> On 4/20/20 1:15 AM, Jason A. Donenfeld wrote:
>>>>> Hi,
>>>>>
>>>>> I've uncovered a very unusual race condition when using process
>>>>> substitution and developed as minimal a reproducer as I could create:
>>>>
>>>> What version of bash are you using?
>>>>
>>>
>>> 5.0.016
>>
>> See if the patch in this message helps things. I'm skeptical, but give it
>> a try.
>>
>> https://lists.gnu.org/archive/html/bug-bash/2020-04/msg00018.html
> 
> Actually, it seems to work indeed... So far I can't repro with that.

OK, good. It was either that or closing the fd after reaping the child
process -- I couldn't tell 100% from the system call trace.

-- 
``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/



reply via email to

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