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

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

Thread Next
Aaron Crane
January 7, 2005 08:57
[perl #33710] Segfault in 5.6.2 (in parser?)
Message ID:
# New Ticket Created by  Aaron Crane 
# Please include the string:  [perl #33710]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
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
  #! /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
  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 line 6, near "/.//;".".

[Please do not change anything below this line]
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:
    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
    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/, 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:

Environment for perl v5.6.2:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About