Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error leads to segfault #3578

Closed
p5pRT opened this issue Mar 16, 2001 · 4 comments
Closed

syntax error leads to segfault #3578

p5pRT opened this issue Mar 16, 2001 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Mar 16, 2001

Migrated from rt.perl.org#6053 (status was 'resolved')

Searchable as RT6053$

@p5pRT
Copy link
Author

p5pRT commented Mar 16, 2001

From flee@aracnet.com

$ perl -e 'sub a { sub; die if @​_; die "foo $a"; }'
syntax error at -e line 1, near "sub;"
Segmentation fault

Perl Info

Flags:
    category=core
    severity=medium

Site configuration information for perl v5.6.0:

Configured by prospector at Mon Aug  7 10:58:30 EDT 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.5-22smp, archname=i386-linux
    uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed jun 2 09:11:51 edt 1999 i686 unknown '
    config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Uuselargefiles'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=undef 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O2 -march=i386 -mcpu=i686', gccversion=2.96 20000731 (experimental)
    cppflags='-fno-strict-aliasing'
    ccflags ='-fno-strict-aliasing'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc-2.1.92.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:
    



@p5pRT
Copy link
Author

p5pRT commented May 26, 2001

From @floatingatoll

Here's the stack backtrace from the coredump under @​10209.

Compile-time options​: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT

R.

#0 0x8080cd8 in Perl_pad_swipe (my_perl=0x811d680, po=4) at op.c​:574
574 SvPADTMP_off(PL_curpad[po]);
(gdb) bt
#0 0x8080cd8 in Perl_pad_swipe (my_perl=0x811d680, po=4) at op.c​:574
#1 0x8080f2f in Perl_op_clear (my_perl=0x811d680, o=0x812b168) at op.c​:767
#2 0x8080e33 in Perl_op_free (my_perl=0x811d680, o=0x812b168) at op.c​:727
#3 0x8080dfa in Perl_op_free (my_perl=0x811d680, o=0x812b238) at op.c​:715
#4 0x8080dfa in Perl_op_free (my_perl=0x811d680, o=0x812b290) at op.c​:715
#5 0x8080dfa in Perl_op_free (my_perl=0x811d680, o=0x812b2b8) at op.c​:715
#6 0x8080dfa in Perl_op_free (my_perl=0x811d680, o=0x812b300) at op.c​:715
#7 0x8080dfa in Perl_op_free (my_perl=0x811d680, o=0x8121fe0) at op.c​:715
#8 0x80881c1 in Perl_newATTRSUB (my_perl=0x811d680, floor=84, o=0x812b038, proto=0x0, attrs=0x0,
  block=0x8121fe0) at op.c​:4737
#9 0x807e9dd in Perl_yyparse (my_perl=0x811d680) at perly.y​:333
#10 0x805f7fa in S_parse_body (my_perl=0x811d680, env=0x0, xsinit=0x805d0ec <xs_init>) at perl.c​:1343
#11 0x805ed76 in perl_parse (my_perl=0x811d680, xsinit=0x805d0ec <xs_init>, argc=3, argv=0xbffffcc4, env=0x0)
  at perl.c​:917
#12 0x805d097 in main (argc=3, argv=0xbffffcc4, env=0xbffffcd4) at perlmain.c​:55

@p5pRT
Copy link
Author

p5pRT commented May 8, 2003

From @iabyn

(Just reviewing old Perl bugs).

This is fixed in the current development version of Perl, which
will eventually be released as 5.10.0.

Regards,

Dave M.

@p5pRT p5pRT closed this as completed May 8, 2003
@p5pRT
Copy link
Author

p5pRT commented May 8, 2003

@iabyn - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant