develooper Front page | perl.perl5.porters | Postings from January 2005

[perl #33710] Segfault in 5.6.2 (in parser?)

Thread Next
From:
Aaron Crane
Date:
January 7, 2005 08:57
Subject:
[perl #33710] Segfault in 5.6.2 (in parser?)
Message ID:
rt-3.0.11-33710-105341.3.89931011653992@perl.org
# New Ticket Created by  Aaron Crane 
# Please include the string:  [perl #33710]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=33710 >


This is a bug report for perl from arc@cpan.org,
generated with the help of perlbug 1.34 running under perl v5.6.2.

-----------------------------------------------------------------
[Please enter your report here]

Reproducible segfault in 5.6.2 (and 5.6.1) on compiling a program with a
missing sub declaration.  Test case follows:

  $ cat foo.pl
  #! /usr/bin/perl -w

  # Adding this line fixes the segfault (and the bug in the program):
  #sub foo;

  ($z = foo $x, y => $y) =~ s/.//;

  $ ./perl -c foo.pl
  Segmentation fault

This is apparently fixed in 5.8.4, which I have running on a different
machine; it issues the compilation error "Can't modify constant item in
substitution (s///) at foo.pl line 6, near "/.//;".".

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.6.2:

Configured by arc at Fri Jan  7 15:34:50 GMT 2005.

Summary of my perl5 (revision 5.0 version 6 subversion 2) configuration:
  Platform:
    osname=linux, osvers=2.4.20-local, archname=i686-linux
    uname='linux dev 2.4.20-local #1 mon dec 16 11:04:42 gmt 2002 i686 unknown '
    config_args='-Dprefix=/var/tmp/PERL -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FI    optimize='-O3',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:


---
@INC for perl v5.6.2:
    /var/tmp/PERL/lib/perl5/5.6.2/i686-linux
    /var/tmp/PERL/lib/perl5/5.6.2
    /var/tmp/PERL/lib/perl5/site_perl/5.6.2/i686-linux
    /var/tmp/PERL/lib/perl5/site_perl/5.6.2
    /var/tmp/PERL/lib/perl5/site_perl
    .

---
Environment for perl v5.6.2:
    HOME=/home/arc
    LANG=en_GB.UTF-8
    LANGUAGE (unset)
    LC_COLLATE=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About