Front page | perl.perl5.porters |
Postings from February 2000
DProf : Segmentation fault (core dumped)
From:
barancev
Date:
February 25, 2000 05:06
Subject:
DProf : Segmentation fault (core dumped)
Message ID:
xwobt55zbnb.fsf@dallas.kazbek.ispras.ru
Hi!
I tried to use DProf and this error appeared after first run :(
After several runs of the same script I had several cores with
different stacks!!!
Distribution is attached.
-------
My parameters (perl was installed from distributive of RedHat as rpm)
(15:15:18) $ uname -a
Linux dallas 2.2.5-15 #1 Mon Apr 19 23:00:46 EDT 1999 i686 unknown
(15:23:31) $ perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=linux, osvers=2.2.1-ac1, archname=i386-linux
uname='linux porky.devel.redhat.com 2.2.1-ac1 #1 smp mon feb 1 17:44:44 est 1999 i686 unknown '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
stdchar='char', d_stdstdio=undef, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
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 -lc -lposix -lcrypt
libc=, 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'
-------
The problem (after "perl Makefile.PL; make" completed):
(you can see, I have two different crashes from run to run,
nondeterministic behaviour)
(15:38:37) $ perl -d:DProf -I./blib/lib ./blib/lib/Info/examples/querygen.pl
Segmentation fault (core dumped)
(15:39:01) $ perl -MDevel::CoreStack -e stack
Executing /usr/bin/gdb "/usr/bin/perl" "core" (bt)...
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols found)...
Core was generated by `perl -d:DProf -I./blib/lib ./blib/lib/Info/examples/querygen.pl'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libdb.so.3...done.
Reading symbols from /usr/lib/libgdbm.so.2...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Reading symbols from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so...done.
Reading symbols from /usr/lib/perl5/5.00503/i386-linux/auto/IO/IO.so...done.
Reading symbols from /usr/lib/perl5/5.00503/i386-linux/auto/Fcntl/Fcntl.so...done.
#0 0x400e7b21 in chunk_realloc (ar_ptr=0x40177580, oldp=0x8254e78, oldsize=5840, nb=8752) at malloc.c:3201
3201 malloc.c: No such file or directory.
(gdb) #0 0x400e7b21 in chunk_realloc (ar_ptr=0x40177580, oldp=0x8254e78, oldsize=5840, nb=8752) at malloc.c:3201
#1 0x400e7aa4 in __libc_realloc (oldmem=0x8254e80, bytes=8748) at malloc.c:3162
#2 0x807a4e7 in Perl_saferealloc ()
#3 0x401b6223 in prof_mark () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#4 0x401b694f in XS_DB_sub () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#5 0x8087616 in Perl_pp_entersub ()
#6 0x80b148d in Perl_runops_standard ()
#7 0x8059951 in perl_call_sv ()
#8 0x401b69cf in XS_DB_sub () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#9 0x8087616 in Perl_pp_entersub ()
#10 0x80b148d in Perl_runops_standard ()
#11 0x809f8e1 in Perl_pp_exit ()
#12 0x80a08b2 in Perl_pp_require ()
#13 0x80b148d in Perl_runops_standard ()
#14 0x8059951 in perl_call_sv ()
#15 0x401b69cf in XS_DB_sub () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#16 0x8087616 in Perl_pp_entersub ()
#17 0x805993c in perl_call_sv ()
#18 0x805bc99 in Perl_call_list ()
#19 0x807485f in Perl_newSUB ()
#20 0x8072390 in Perl_utilize ()
#21 0x806e074 in Perl_yyparse ()
#22 0x809fe36 in Perl_sv_compile_2op ()
#23 0x80a08ac in Perl_pp_require ()
---Type <return> to continue, or q <return> to quit---#24 0x80b148d in Perl_runops_standard ()
#25 0x8059951 in perl_call_sv ()
#26 0x401b69cf in XS_DB_sub () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#27 0x8087616 in Perl_pp_entersub ()
#28 0x805993c in perl_call_sv ()
#29 0x805bc99 in Perl_call_list ()
#30 0x807485f in Perl_newSUB ()
#31 0x8072390 in Perl_utilize ()
#32 0x806e074 in Perl_yyparse ()
#33 0x809fe36 in Perl_sv_compile_2op ()
#34 0x80a08ac in Perl_pp_require ()
#35 0x80b148d in Perl_runops_standard ()
#36 0x8059951 in perl_call_sv ()
#37 0x401b69cf in XS_DB_sub () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#38 0x8087616 in Perl_pp_entersub ()
#39 0x805993c in perl_call_sv ()
#40 0x805bc99 in Perl_call_list ()
#41 0x807485f in Perl_newSUB ()
#42 0x8072390 in Perl_utilize ()
#43 0x806e074 in Perl_yyparse ()
#44 0x809fe36 in Perl_sv_compile_2op ()
#45 0x80a08ac in Perl_pp_require ()
#46 0x80b148d in Perl_runops_standard ()
#47 0x8059951 in perl_call_sv ()
#48 0x401b69cf in XS_DB_sub () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#49 0x8087616 in Perl_pp_entersub ()
#50 0x805993c in perl_call_sv ()
#51 0x805bc99 in Perl_call_list ()
#52 0x807485f in Perl_newSUB ()
#53 0x8072390 in Perl_utilize ()
#54 0x806e074 in Perl_yyparse ()
#55 0x8058f0f in perl_parse ()
#56 0x805781b in main ()
#57 0x400a6cb3 in __libc_start_main (main=0x80577c0 <main>, argc=4, argv=0xbffffac4, init=0x8056af4 <_init>, fini=0x80b14fc <_fini>,
rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffabc) at ../sysdeps/generic/libc-start.c:78
(gdb)
(15:39:14) $ perl -d:DProf -I./blib/lib ./blib/lib/Info/examples/querygen.pl
OK
Segmentation fault (core dumped)
(15:39:40) $ perl -MDevel::CoreStack -e stack
Executing /usr/bin/gdb "/usr/bin/perl" "core" (bt)...
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols found)...
Core was generated by `perl -d:DProf -I./blib/lib ./blib/lib/Info/examples/querygen.pl'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libdb.so.3...done.
Reading symbols from /usr/lib/libgdbm.so.2...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Reading symbols from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so...done.
Reading symbols from /usr/lib/perl5/5.00503/i386-linux/auto/IO/IO.so...done.
Reading symbols from /usr/lib/perl5/5.00503/i386-linux/auto/Fcntl/Fcntl.so...done.
#0 0x401b633c in prof_mark () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
(gdb) #0 0x401b633c in prof_mark () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#1 0x401b69d9 in XS_DB_sub () from /usr/lib/perl5/site_perl/5.005/i386-linux/auto/Devel/DProf/DProf.so
#2 0x8087616 in Perl_pp_entersub ()
#3 0x80b148d in Perl_runops_standard ()
#4 0x80592b8 in perl_run ()
#5 0x805782f in main ()
#6 0x400a6cb3 in __libc_start_main (main=0x80577c0 <main>, argc=4, argv=0xbffffac4, init=0x8056af4 <_init>, fini=0x80b14fc <_fini>,
rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffabc) at ../sysdeps/generic/libc-start.c:78
(gdb)
-------
Separately attached script is almost the same as in distribution, but
works ok (3 lines commented!)
Hope for help,
Alexei
-
DProf : Segmentation fault (core dumped)
by barancev