another crasher, for everyones amusement

Scott Walters scott at
Tue Feb 3 00:23:37 CST 2004

----- Forwarded message from "kstar at ion at (via RT)" <perlbug-followup at> -----

List: contact perl5-porters-help at; run by ezmlm
Archive: <>
Subject: [perl #25824] Segmentation fault with sub x { shift; @a = @b; eval { use } } 
Ticket: perl #25824
To: "mailing list perl5-porters at perl5-porters at perl5-porters at bugs-bitbucket at perl5-porters at perl5-porters at" <rt-25824 at perl>
From: "kstar at ion at (via RT)" <perlbug-followup at>

# New Ticket Created by  ion at 
# Please include the string:  [perl #25824]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from ion+perlbug at,
generated with the help of perlbug 1.34 running under perl v5.8.3.

$ perl -e 'sub x { shift; @a = @b; eval { use } }'
Segmentation fault

To reproduce the segfault the following needs to be done in a sub:
- @_ must be modified.
- A list or a hash must be assigned to a list or a hash.
- eval { use }; must be done finally. The parameters for use don't
  seem to matter.

gdb backtrace:
#0  0x0809e156 in Perl_pad_free ()
#1  0x0808e179 in Perl_op_clear ()
#2  0x0808e0a8 in Perl_op_free ()
#3  0x0808e07b in Perl_op_free ()
#4  0x080967b3 in Perl_newATTRSUB ()
#5  0x0808c297 in Perl_yyparse ()
#6  0x08061c64 in perl_parse ()
#7  0x080616cf in perl_parse ()
#8  0x0805f3da in main ()
Site configuration information for perl v5.8.3:

Configured by ion at Mon Jan 19 12:00:54 EET 2004.

Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
    osname=linux, osvers=2.6.0-gentoo, archname=i586-linux
    uname='linux alku 2.6.0-gentoo #2 smp sun dec 21 10:35:44 eet 2003 i686 celeron (mendocino) genuineintel gnulinux '
    config_args='-des -Darchname=i586-linux -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-O3 -march=pentium2 -mcpu=pentium2 -funroll-loops -pipe -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Di_gdbm -Di_db -Di_ndbm'
    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='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3 -march=pentium2 -mcpu=pentium2 -funroll-loops -pipe',
    cppflags='-DPERL5 -fno-strict-aliasing'
    ccversion='', gccversion='3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)', 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, prototype=define
  Linker and Libraries:
    ld='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', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.8.3:

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

----- End forwarded message -----

More information about the Phoenix-pm mailing list