Front page | perl.perl5.porters |
Postings from October 2000
[ID 20001029.008] perl binary segfaults on following code
Thread Next
From:
Zac Hansen
Date:
October 29, 2000 22:13
Subject:
[ID 20001029.008] perl binary segfaults on following code
Message ID:
200010300712.CAA01125@smackdown.pinpoint.com
This is a bug report for perl from hansen@smackdown.pinpoint.com,
generated with the help of perlbug 1.28 running under perl v5.6.0.
the following code crashes my perl with a segfault
--------------------------------------------------
(file: foo.pl)
#!/usr/bin/perl
use foo;
---------------------------------------------------
---------------------------------------------------
(file: foo.pm)
sub foo
{
sub ( $Self ) = @_;
my $Filename = "$Self->{'Name'} $Self->{'Folder'}";
}
---------------------------------------------------
the obvious bug here is the typo of 'my' with 'sub'.. I fixed this and it
stopped segfaulting, but it seems like it's probably still a bug..
The backtrace from the non-debug binary is:
#0 0x807741e in Perl_pad_free ()
#1 0x80777c7 in S_op_clear ()
#2 0x8077644 in Perl_op_free ()
#3 0x807760b in Perl_op_free ()
#4 0x807760b in Perl_op_free ()
#5 0x807e4ef in Perl_newATTRSUB ()
#6 0x8075287 in Perl_yyparse ()
#7 0x80bbe8a in S_doeval ()
#8 0x80bd2de in Perl_pp_require ()
#9 0x8096a60 in Perl_runops_standard ()
#10 0x805c378 in S_call_body ()
#11 0x805c11f in Perl_call_sv ()
#12 0x805ec99 in S_call_list_body ()
#13 0x805e967 in Perl_call_list ()
#14 0x807ea59 in Perl_newATTRSUB ()
#15 0x807b7a4 in Perl_utilize ()
#16 0x80753f8 in Perl_yyparse ()
#17 0x805b5b6 in S_parse_body ()
#18 0x805abc7 in perl_parse ()
#19 0x8058f7d in main ()
I don't know if that's helpful at all or not..
I'm curious as to just what the bug process is for PERL, I'm a professional
C/C++ developer and would love to get a hand in on this in some (small) way,
unless I'd just be mucking things up.
I'm not sure my e-mail got set up properly.. it's just hansen@pinpoint.com, not hansen@smackdown.pinpoint.com (my machine), so please, any response, send to hansen@pinpoint.com.
Thank you (whoever may be reading this),
Zac Hansen
hansen@pinpoint.com
-----------------------------------------------------------------
[Please enter your report here]
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.6.0:
Configured by hansen at Thu Aug 3 11:41:45 EDT 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.2.15, archname=i686-linux-thread
uname='linux smackdown.pinpoint.com 2.2.15 #2 tue may 16 17:33:30 edt 2000 i686 unknown '
config_args='-Dusethreads -Duse5005threads -Dprefix=/usr'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=define useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cppflags='-D_REENTRANT -fno-strict-aliasing'
ccflags ='-D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
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=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 -lndbm -lgdbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt
libc=/lib/libc-2.1.3.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:
---
@INC for perl v5.6.0:
/usr/lib/perl5/5.6.0/i686-linux-thread
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i686-linux-thread
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.
---
Environment for perl v5.6.0:
HOME=/home/hansen
LANG=en_US
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/java/jdk1.3/bin:/home/hansen/bin:/usr/java/jdk1.3/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[ID 20001029.008] perl binary segfaults on following code
by Zac Hansen