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

[perl #37725] perl segfaults on reversed array reference

Thread Previous | Thread Next
From:
Chris Duryee
Date:
November 22, 2005 01:07
Subject:
[perl #37725] perl segfaults on reversed array reference
Message ID:
rt-3.0.11-37725-124730.17.9899787118421@perl.org
# New Ticket Created by  Chris Duryee 
# Please include the string:  [perl #37725]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37725 >


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

The code is available at http://www.cis.udel.edu/~duryee/CYK.pl


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:
---
Flags:
    category=
    severity=
---
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:
  Platform:
    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
  Compiler:
    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 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)', 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/libc-2.3.3.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.3'
  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:
    /etc/perl
    /usr/lib/perl5/site_perl/5.8.7/sparc-linux
    /usr/lib/perl5/site_perl/5.8.7
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.7/sparc-linux
    /usr/lib/perl5/vendor_perl/5.8.7
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.7/sparc-linux
    /usr/lib/perl5/5.8.7
    /usr/local/lib/site_perl
    .

---
Environment for perl v5.8.7:
    HOME=/home/cmd
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/sparc-unknown-linux-gnu/gcc-bin/3.3.5-20050130:/usr/games/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash



-- 
Chris Duryee <duryee@gmail.com> PGP: A9016BD6

Thread Previous | 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