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

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

Thread Next
Father Chrysostomos
August 29, 2010 13:27
[PATCH] Re: [perl #77492] open $fh, ">", \*glob causes SEGV
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About