in reply to Re: Perl segfaults: Why?
in thread Perl segfaults: Why?

Segfaulting here with 5.10.0 and 5.10.1 but not on 5.8.9. All tested with BrowserUK's script.
$ cat y.pl #!/usr/bin/perl open $fh, '<', $0;; print scalar <$fh>;; print tell( $fh );; print tell( $fh + 1 );; $ perl y.pl # system perl: 5.10.0 #!/usr/bin/perl Segmentation fault $ perl5.10.0 y.pl #!/usr/bin/perl Segmentation fault $ perl5.10.1 y.pl #!/usr/bin/perl Segmentation fault $ perl5.8.9 y.pl #!/usr/bin/perl 16-1

Replies are listed 'Best First'.
Re^3: Perl segfaults: Why?
by ikegami (Patriarch) on Sep 15, 2009 at 19:55 UTC
    After digging some more, I think this is a compiler problem, not a Perl problem.
      These are the gcc versions from my previous tests:

      $ perl -V:gccversion # segfaults gccversion='4.3.4'; $ perl5.8.9 -V:gccversion # OK gccversion='4.3.3'; $ perl5.10.0 -V:gccversion # segfaults gccversion='4.3.4'; $ perl5.10.1 -V:gccversion # segfaults gccversion='4.3.4';

      I don't have access to gcc-4.3.3 any more, so here's the only test I can try:

      $ ./perl -Ilib -V:gccversion gccversion='4.3.4'; $ ./perl y.pl #!/usr/bin/perl 16-1

      5.8.9 still works :-(

      Yes it seems you're right since I don't get any crash with ActivePerl 5.10.0.1004 & perl 5.8.8 on linux