Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: "Jason A. Donenfeld" Newsgroups: gnu.bash.bug Subject: Re: process substitution fd lifetime race condition Date: Mon, 20 Apr 2020 15:56:40 -0600 Lines: 22 Approved: bug-bash@gnu.org Message-ID: References: <20200420051508.GA2359844@zx2c4.com> <7496b183-2db3-6c03-6074-928adcd08f45@case.edu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1587419817 18245 209.51.188.17 (20 Apr 2020 21:56:57 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Chester Ramey Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=7GPTMp7GCdfKqcB+9VxzXriQBNg=; b=iAo5pf 2qa8n5wGxEJv53rdY7JakkcLiRHJKmTNBlpEWhWPvrauVfbeC+rbURgQVCittOkz b9hD/i+miAadlrzPLMFgFcKwklGdTnZRtAowjXAOBNLpfuvBkendKQVBJEM/sjMW 8OteVbT0ozMz+R15yiw16kPCBAFAky5Zmt/n+rCvEdbwgKYnjCl3sco8oVBN75eY SbPQSMPxN5PuolovkcZUum3SYBavW9qdzU6VIS9HkyCby2vJWLfIcSdQTDiHmOIR fJq9Bpuod6t/6rk3ccHe+reM7g381mTMmta3VHnWVRQnSjlwGdDHXKwTrlERLxJx Ejphxj+C3Whca26w== X-Gm-Message-State: AGi0PuZY+m5gfsUIsxm5S1NL/hXE4mEWadB6EZloIw6Mwq1l9s0Y06FV +Ou1qITAzyH0w0F4DohbJIduEBl/ziS0YPa30cU= X-Google-Smtp-Source: APiQypLlwMAqdWP2oUxvJ8AFK4GOusdq9990VLXsm+cPCodISNpkndGl5QOcMvQahyX5KO+ZcsxhV6O/UYTJUcfim2A= X-Received: by 2002:a5e:9401:: with SMTP id q1mr15850435ioj.80.1587419811582; Mon, 20 Apr 2020 14:56:51 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: Received-SPF: pass client-ip=192.95.5.64; envelope-from=Jason@zx2c4.com; helo=mail.zx2c4.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/20 17:01:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Received-From: 192.95.5.64 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <20200420051508.GA2359844@zx2c4.com> <7496b183-2db3-6c03-6074-928adcd08f45@case.edu> Xref: csiph.com gnu.bash.bug:16207 On Mon, Apr 20, 2020 at 3:49 PM Chet Ramey wrote: > > On 4/20/20 5:01 PM, Jason A. Donenfeld wrote: > > On 4/20/20, Chet Ramey 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.