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?

    Thanks,
    Ilya
     
    Ilya Zakharevich, Apr 17, 2012
    #1
    1. Advertising

  2. Ilya Zakharevich

    Tim McDaniel Guest

    In article <jmklso$a76$>,
    Ilya Zakharevich <> wrote:
    >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.
     
    Tim McDaniel, Apr 17, 2012
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vedran Vyroubal

    STL string segfault

    Vedran Vyroubal, Mar 3, 2004, in forum: C++
    Replies:
    5
    Views:
    1,344
    Vedran Vyroubal
    Mar 4, 2004
  2. Arthur J. O'Dwyer

    multiset segfault

    Arthur J. O'Dwyer, Jun 17, 2004, in forum: C++
    Replies:
    10
    Views:
    724
    Dave Townsend
    Jun 18, 2004
  3. Jim Strathmeyer

    istream segfault

    Jim Strathmeyer, Jul 22, 2004, in forum: C++
    Replies:
    4
    Views:
    436
    Mike Wahler
    Jul 23, 2004
  4. William Payne
    Replies:
    4
    Views:
    503
    Karthiik Kumar
    Aug 28, 2004
  5. Andrey Vul
    Replies:
    8
    Views:
    687
    Richard Bos
    Jul 30, 2010
Loading...

Share This Page