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


Groups > gnu.bash.bug > #16208

Re: process substitution fd lifetime race condition

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: process substitution fd lifetime race condition
Date 2020-04-20 17:58 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.843.1587419914.3066.bug-bash@gnu.org> (permalink)
References (1 earlier) <7496b183-2db3-6c03-6074-928adcd08f45@case.edu> <CAHmME9p_n_W6721mY4=MWpKJvDTNsvEQbA9EB5chsrwyOzSgqw@mail.gmail.com> <e6560e95-7d3f-4651-ebbb-147c82c2dbd8@case.edu> <CAHmME9pSGcv6-b6oDjJzDi5ar7a6o19-MKBix4UofQn=khRvKg@mail.gmail.com> <01e85de9-95ef-20fd-7221-a54a0a2a304a@case.edu>

Show all headers | View raw


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/

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


Thread

Re: process substitution fd lifetime race condition Chet Ramey <chet.ramey@case.edu> - 2020-04-20 17:58 -0400

csiph-web