develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [perl #24225] [5.8.1] segfault in binmode STDOUT, ':stdio'; print 1

From:
Stas Bekman
Date:
October 20, 2003 11:43
Subject:
Re: [perl #24225] [5.8.1] segfault in binmode STDOUT, ':stdio'; print 1
Message ID:
3F941EDA.6070809@stason.org
Nick Ing-Simmons wrote:
> Stas Bekman <perl5-porters@perl.org> writes:
> 
>># New Ticket Created by  Stas Bekman 
>># Please include the string:  [perl #24225]
>># in the subject line of all future correspondence about this issue. 
>># <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24225 >
>>
>>
>>
>>
>>This is a bug report for perl from stas@stason.org,
>>generated with the help of perlbug 1.34 running under perl v5.8.1.
>>
>>
>>-----------------------------------------------------------------
>>[Please enter your report here]
>>
>>% perl-5.8.1 -wle "binmode STDOUT, ':stdio'; print 1"
>>Segmentation fault
>>
>>The same problem appears with blead perl, but not with 5.8.0.
> 
> 
> Confirmed. Something odd is going on...
> You are not supposed to get to the else branch on line 2640 if
> stream is already stdio. 
> 
> That said blindly de-refing mode is not good.

Certainly, I was just reporting on behalf of someone else.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




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