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

[perl #37725] perl segfaults on reversed array reference

Thread Previous | Thread Next
Chris Duryee
November 22, 2005 01:07
[perl #37725] perl segfaults on reversed array reference
Message ID:
# New Ticket Created by  Chris Duryee 
# Please include the string:  [perl #37725]
# in the subject line of all future correspondence about this issue. 
# <URL: >

On perl 5.8.7 on x86 and sparc (gentoo linux), I get perl to
segfault/bus error.

The code is available at

I apologize for not cutting the code down at all, but when I try to, the
bug goes away. For example, I dump all data via Dumper, and paste the
variable defs back in. This makes my program give a "Can't use an
undefined value as an ARRAY reference" error. Again, my apologies for
not cutting it down. I think my hackneyed foreach loops are the problem.

output of perlbug -d:
Site configuration information for perl v5.8.7:

Configured by Gentoo at Sat Oct 29 07:49:17 EDT 2005.

Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
    osname=linux, osvers=2.4.31-sparc, archname=sparc-linux
    uname='linux pizza 2.4.31-sparc #1 wed aug 24 01:48:02 est 2005 sparc64 sun4u ti ultrasparc i (spitfire) gnulinux '
    config_args='-des -Darchname=sparc-linux -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=sparc-unknown-linux-gnu-gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-pipe -O -mcpu=ultrasparc -Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/var/tmp/portage/perl-5.8.7-r1/image//usr/share/man/man1 -Dinstallman3dir=/var/tmp/portage/perl-5.8.7-r1/image//usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.0 5.8.0/sparc-linux 5.8.2 5.8.2/sparc-linux 5.8.4 5.8.4/sparc-linux 5.8.5 5.8.5/sparc-linux 5.8.6 5.8.6/sparc-linux  -Dcf_by=Gentoo -Ud_csh -Di_ndbm -Di_gdbm -Di_db -Ud_longdbl'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='sparc-unknown-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-pipe -O -mcpu=ultrasparc',
    cppflags='-fno-strict-aliasing -pipe'
    ccversion='', gccversion='3.3.5-20050130 (Gentoo, ssp-, pie-', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=undef, longdblsize=
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='sparc-unknown-linux-gnu-gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fPIC -fPIC', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.8.7:

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

Chris Duryee <> PGP: A9016BD6

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