Your message dated Wed, 1 Jun 2011 22:32:14 +0100
with message-id <[email protected]>
and subject line Re: Bug#164615: perl: "perl -wle 'open(FUN, "<&STDOUT")' 1<
wow" causes segfault
has caused the Debian Bug report #164615,
regarding Trying to dup a closed file handle crashes perl
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
164615: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=164615
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl-base
Version: 5.8.0-10
Try this (note the shell redirection "1>&-" to close stdout):
$ perl -e 'open(FOO, ">&STDOUT") or die "open: $!"' 1>&-
Segmentation fault
FYI: perl 5.6.0 produces:
open: Bad file number at -e line 1.
Cheers, Roderich
--- End Message ---
--- Begin Message ---
Version: 5.10.1-17
On Fri, Mar 30, 2007 at 01:56:31PM +0300, Niko Tyni wrote:
> found 164615 5.8.8-7
> thanks
>
> On Sun, Oct 13, 2002 at 09:24:09PM -0000, KORN Andras wrote:
>
> > fileno(0x0030d1e0) = 1
> > dup(1, 0x0030d1e0, 0x08148cc8, 0, 2) = 3
> > fdopen(3, 0xb96bb8b4, 0x0030d1e0, 0x0025b05e, 0x08134440) = 0
> > fileno(0 <unfinished ...>
> > --- SIGSEGV (Segmentation fault) ---
> > +++ killed by SIGSEGV +++
> >
> > perl shouldn't attempt the fileno() call after fdopen returned NULL.
>
> This is still present in 5.8.8-7 with PERLIO=stdio.
>
> % PERLIO=stdio perl -e 'open(F, "<&STDOUT")' 1< /dev/null
> zsh: segmentation fault PERLIO=stdio perl -e 'open(F, "<&STDOUT")' 1<
> /dev/null
And also in 5.10.0-19lenny3, but not 5.10.1-17. Nothing on the upstream
bug report. Couldn't find an obvious source change to explain it, but
never mind.
--
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
--- End Message ---