Segfault in 5.10.1

Discussion in 'Perl Misc' started by Ilya Zakharevich, Apr 17, 2012.

  1. 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?

    Ilya Zakharevich, Apr 17, 2012
    1. Advertisements

  2. Ilya Zakharevich

    Tim McDaniel Guest

    $ 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, 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.
    Tim McDaniel, Apr 17, 2012
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.