Segfault in 5.10.1


I

Ilya Zakharevich

Have not seen segfaults in "recent" Perls for quite a long time (at
least not in scripts which were working for decades ;-).

powdermilk:/tmp->perl -wle 'local *kid = q(abc); $kid[0] =~ /[9k]/'
Segmentation fault
Exit 139

Is it fixed in newer Perls?

Thanks,
Ilya
 
Ad

Advertisements

T

Tim McDaniel

Have not seen segfaults in "recent" Perls for quite a long time (at
least not in scripts which were working for decades ;-).

powdermilk:/tmp->perl -wle 'local *kid = q(abc); $kid[0] =~ /[9k]/'
Segmentation fault
Exit 139

Is it fixed in newer Perls?

$ perl -v

This is perl 5, version 14, subversion 2 (v5.14.2) built for i386-netbsd

Copyright 1987-2011, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on this
system using "man perl" or "perldoc perl". If you have access to the Internet,
point your browser at http://www.perl.org/, the Perl Home Page.

$ perl -wle 'local *kid = q(abc); $kid[0] =~ /[9k]/'

Use of uninitialized value $kid[0] in pattern match (m//) at -e line 1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top