Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Check core dump with new Perl

by bsb (Priest)
on Mar 28, 2007 at 11:20 UTC ( #606980=perlquestion: print w/ replies, xml ) Need Help??
bsb has asked for the wisdom of the Perl Monks concerning the following question:

I managed to segfault perl 5.8.8 on linux with this
$ perl -we 'open O, "> /dev/null"; print O (scalar readline)' Filehandle O opened only for output at -e line 1. Segmentation fault (core dumped)
For some reason I thought readline defaulted to STDIN, not that it matters. Can someone check if blead does this too?

Comment on Check core dump with new Perl
Download Code
Re: Check core dump with new Perl
by Anno (Deacon) on Mar 28, 2007 at 11:34 UTC
    Seems to be fixed in v5.9.4 DEVEL28658

    Anno

Re: Check core dump with new Perl
by RMGir (Prior) on Mar 28, 2007 at 11:37 UTC
    On a solaris 9 box, also running 5.8.8, same result:
    $ perl -we 'open O, "> /dev/null"; print O (scalar readline)' Filehandle O opened only for output at -e line 1. Bus Error

    On Cygwin w/5.8.7, the same thing happens, but interestingly enough the warn readline(); example posted below doesn't trigger:

    $ perl -we 'open O, "> /dev/null"; print O (scalar readline)' Filehandle O opened only for output at -e line 1. 11 [main] perl 4756 _cygtls::handle_exceptions: Error while dumpi +ng state ( probably corrupted stack) Segmentation fault (core dumped) $ perl -e 'warn readline()' Warning: something's wrong at -e line 1.

    Mike
Re: Check core dump with new Perl
by Corion (Pope) on Mar 28, 2007 at 11:55 UTC

    ambrus reported a similar error recently in the Chatterbox and subsequently submitted perlbug #42029 to p5p (and to RT.perl.org (#42029). It seems that the following alone is enough to crash bleadperl and maintperl:

    perl -e 'warn readline'

    You might want to append your report to that bug.

      Unfortunately, rt.perl.org's auth mechanism doesn't seem to like my corporate firewall, so I can't update the bug report with the info from this thread.

      Too bad :(


      Mike

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://606980]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2014-10-24 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (137 votes), past polls