GNU bug report logs - #25029
shuf generates “Bad file descriptor” error on nfs but only when run as a background process

Previous Next

Package: coreutils;

Reported by: Alex Ryan <alexander.j.ryan <at> gmail.com>

Date: Fri, 25 Nov 2016 22:25:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 25029 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>,
 Alex Ryan <alexander.j.ryan <at> gmail.com>, 25029 <at> debbugs.gnu.org
Subject: Re: bug#25029: shuf generates “Bad file descriptor” error on nfs but only when run as a background process
Date: Fri, 25 Nov 2016 18:00:11 -0800
Pádraig Brady wrote:
> Actually the minimum reproducer is:
>
>   $ shuf /dev/null 0>&-
>   shuf: read error: Bad file descriptor

Ouch. Isn't that a bug in glibc freopen? It shouldn't fail with errno==EINVAL 
merely because stdin doesn't have a valid file descriptor. If so, we should fix 
the Gnulib freopen module to work around the bug. If not, I suppose we can fix 
this in freopen-safer.




This bug report was last modified 8 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.