develooper Front page | perl.perl5.porters | Postings from August 2010

[PATCH] Re: [perl #77492] open $fh, ">", \*glob causes SEGV

Thread Next
From:
Father Chrysostomos
Date:
August 29, 2010 13:27
Subject:
[PATCH] Re: [perl #77492] open $fh, ">", \*glob causes SEGV
Message ID:
619CBC01-A2D9-4A7F-A972-5D5ADB849211@cpan.org
On Aug 29, 2010, at 1:25 PM, Father Chrysostomos wrote:

> The segmentation violation actually happens when the glob is stringified, and only if the $fh has been printed to.
> 
> This crashes as of perl5.10.0:
> 
> $ perl5.8.9 -le' open my $fh, ">", \*STDOUT; print $fh "hello"; print *STDOUT'
> *main::STDOUT
> $ perl5.13.4 -le' open my $fh, ">", \*STDOUT; print $fh "hello"; print *STDOUT'
> Segmentation fault
> 
> I believe it was change 22315/4ce457a648 that caused this. A patch is forthcoming.

Here it is.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About