develooper Front page | perl.perl5.porters | Postings from June 2008

[perl #53200] perl5.8.8 crashed when I build ikiwiki on gentoo linux

Thread Previous | Thread Next
From:
Steve Peters via RT
Date:
June 2, 2008 07:50
Subject:
[perl #53200] perl5.8.8 crashed when I build ikiwiki on gentoo linux
Message ID:
rt-3.6.HEAD-11257-1212418207-1398.53200-15-0@perl.org
On Tue Apr 22 06:40:15 2008, silent2600@gmail.com wrote:
> This is a bug report for perl from silent2600@gmail.com,
> generated with the help of perlbug 1.35 running under perl v5.8.8.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> perl5.8.8 crashed when I build ikiwiki on gentoo linux,
> 
> steps:
> 
> make
> ...
> ...
> rendering todo/plugin_data_storage.mdwn
> rendering todo/latex.mdwn
> rendering todo/linkify_and_preprocessor_ordering.mdwn
> rendering todo/wikiwyg.mdwn
> rendering todo/calendar_--
> _archive_browsing_via_a_calendar_frontend.mdwn
> *** glibc detected *** perl: double free or corruption (!prev):
> 0x08c12ae0 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0x4011ba00]
> /lib/libc.so.6(cfree+0x89)[0x4011d6f9]
> perl(Perl_safesysfree+0x1f)[0x80ae3ff]
> ======= Memory map: ========
> 08048000-0813e000 r-xp 00000000 08:0a 277131     /usr/bin/perl5.8.8
> 0813e000-0813f000 r--p 000f6000 08:0a 277131     /usr/bin/perl5.8.8
> 0813f000-08142000 rw-p 000f7000 08:0a 277131     /usr/bin/perl5.8.8
> 08142000-08d7e000 rw-p 08142000 00:00 0          [heap]
> 40000000-4001a000 r-xp 00000000 08:0a 358792     /lib/ld-2.6.1.so
> 4001a000-4001b000 r--p 00019000 08:0a 358792     /lib/ld-2.6.1.so
> 4001b000-4001c000 rw-p 0001a000 08:0a 358792     /lib/ld-2.6.1.so
> 4001c000-4001d000 r-xp 4001c000 00:00 0          [vdso]
> 4001d000-40024000 r-xp 00000000 08:0a 276131
> /usr/lib/perl5/5.8.8/i686-linux/auto/Encode/Encode.so
> 40024000-40025000 r--p 00006000 08:0a 276131
> /usr/lib/perl5/5.8.8/i686-linux/auto/Encode/Encode.so
> 40025000-40026000 rw-p 00007000 08:0a 276131
> /usr/lib/perl5/5.8.8/i686-linux/auto/Encode/Encode.so
> 40026000-40028000 r-xp 00000000 08:0a 668401
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Cwd/Cwd.so
> 40028000-40029000 r--p 00001000 08:0a 668401
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Cwd/Cwd.so
> 40029000-4002a000 rw-p 00002000 08:0a 668401
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Cwd/Cwd.so
> 4002a000-4002b000 rw-p 4002a000 00:00 0
> 4002b000-4003e000 r-xp 00000000 08:0a 357341     /lib/libpthread-
> 2.6.1.so
> 4003e000-4003f000 r--p 00013000 08:0a 357341     /lib/libpthread-
> 2.6.1.so
> 4003f000-40040000 rw-p 00014000 08:0a 357341     /lib/libpthread-
> 2.6.1.so
> 40040000-40042000 rw-p 40040000 00:00 0
> 40042000-40055000 r-xp 00000000 08:0a 358619     /lib/libnsl-2.6.1.so
> 40055000-40056000 r--p 00012000 08:0a 358619     /lib/libnsl-2.6.1.so
> 40056000-40057000 rw-p 00013000 08:0a 358619     /lib/libnsl-2.6.1.so
> 40057000-40059000 rw-p 40057000 00:00 0
> 40059000-4005b000 r-xp 00000000 08:0a 358772     /lib/libdl-2.6.1.so
> 4005b000-4005c000 r--p 00001000 08:0a 358772     /lib/libdl-2.6.1.so
> 4005c000-4005d000 rw-p 00002000 08:0a 358772     /lib/libdl-2.6.1.so
> 4005d000-40081000 r-xp 00000000 08:0a 358770     /lib/libm-2.6.1.so
> 40081000-40082000 r--p 00023000 08:0a 358770     /lib/libm-2.6.1.so
> 40082000-40083000 rw-p 00024000 08:0a 358770     /lib/libm-2.6.1.so
> 40083000-40088000 r-xp 00000000 08:0a 358847     /lib/libcrypt-
> 2.6.1.so
> 40088000-40089000 r--p 00004000 08:0a 358847     /lib/libcrypt-
> 2.6.1.so
> 40089000-4008a000 rw-p 00005000 08:0a 358847     /lib/libcrypt-
> 2.6.1.so
> 4008a000-400b1000 rw-p 4008a000 00:00 0
> 400b1000-400b3000 r-xp 00000000 08:0a 358642     /lib/libutil-2.6.1.so
> 400b3000-400b4000 r--p 00001000 08:0a 358642     /lib/libutil-2.6.1.so
> 400b4000-400b5000 rw-p 00002000 08:0a 358642     /lib/libutil-2.6.1.so
> 400b5000-400b6000 rw-p 400b5000 00:00 0
> 400b6000-401e0000 r-xp 00000000 08:0a 358620     /lib/libc-2.6.1.so
> 401e0000-401e2000 r--p 0012a000 08:0a 358620     /lib/libc-2.6.1.so
> 401e2000-401e3000 rw-p 0012c000 08:0a 358620     /lib/libc-2.6.1.so
> 401e3000-401e7000 rw-p 401e3000 00:00 0
> 401e7000-401f0000 r-xp 00000000 08:0a 449719
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/HTML/Parser/Parser.so
> 401f0000-401f1000 r--p 00008000 08:0a 449719
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/HTML/Parser/Parser.so
> 401f1000-401f2000 rw-p 00009000 08:0a 449719
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/HTML/Parser/Parser.so
> 401f2000-40208000 r-xp 00000000 08:0a 276321
> /usr/lib/perl5/5.8.8/i686-linux/auto/POSIX/POSIX.so
> 40208000-40209000 r--p 00015000 08:0a 276321
> /usr/lib/perl5/5.8.8/i686-linux/auto/POSIX/POSIX.so
> 40209000-4020a000 rw-p 00016000 08:0a 276321
> /usr/lib/perl5/5.8.8/i686-linux/auto/POSIX/POSIX.so
> 4020a000-4020d000 r-xp 00000000 08:0a 276072
> /usr/lib/perl5/5.8.8/i686-linux/auto/IO/IO.so
> 4020d000-4020e000 r--p 00002000 08:0a 276072
> /usr/lib/perl5/5.8.8/i686-linux/auto/IO/IO.so
> 4020e000-4020f000 rw-p 00003000 08:0a 276072
> /usr/lib/perl5/5.8.8/i686-linux/auto/IO/IO.so
> 4020f000-40212000 r-xp 00000000 08:0a 276173
> /usr/lib/perl5/5.8.8/i686-linux/auto/Fcntl/Fcntl.so
> 40212000-40213000 r--p 00002000 08:0a 276173
> /usr/lib/perl5/5.8.8/i686-linux/auto/Fcntl/Fcntl.so
> 40213000-40214000 rw-p 00003000 08:0a 276173
> /usr/lib/perl5/5.8.8/i686-linux/auto/Fcntl/Fcntl.so
> 40214000-40224000 r-xp 00000000 08:0a 460599
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Storable/Storable.so
> 40224000-40225000 r--p 0000f000 08:0a 460599
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Storable/Storable.so
> 40225000-40226000 rw-p 00010000 08:0a 460599
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Storable/Storable.so
> 40226000-4022d000 r-xp 00000000 08:0a 276101
> /usr/lib/perl5/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so
> 4022d000-4022e000 r--p 00006000 08:0a 276101
> /usr/lib/perl5/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so
> 4022e000-4022f000 rw-p 00007000 08:0a 276101
> /usr/lib/perl5/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so
> 4022f000-40232000 r-xp 00000000 08:0a 276128
> /usr/lib/perl5/5.8.8/i686-linux/auto/Digest/MD5/MD5.so
> 40232000-40233000 r--p 00002000 08:0a 276128
> /usr/lib/perl5/5.8.8/i686-linux/auto/Digest/MD5/MD5.so
> 40233000-40234000 rw-p 00003000 08:0a 276128
> /usr/lib/perl5/5.8.8/i686-linux/auto/Digest/MD5/MD5.so
> 40234000-40239000 r-xp 00000000 08:0a 449213
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/List/Util/Util.so
> 40239000-4023a000 r--p 00004000 08:0a 449213
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/List/Util/Util.so
> 4023a000-4023b000 rw-p 00005000 08:0a 449213
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/List/Util/Util.so
> 4023b000-40240000 r-xp 00000000 08:0a 668346
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/version/vxs/vxs.so
> 40240000-40241000 r--p 00004000 08:0a 668346
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/version/vxs/vxs.so
> 40241000-40242000 rw-p 00005000 08:0a 668346
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/version/vxs/vxs.so
> 4024f000-40259000 r-xp 00000000 08:0a 330158
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
> 40259000-4025a000 r--p 00009000 08:0a 330158
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
> 4025a000-4025b000 rw-p 0000a000 08:0a 330158
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
> 40300000-40321000 rw-p 40300000 00:00 0
> 40321000-40400000 ---p 40321000 00:00 0
> bfc66000-bfcc8000 rw-p bff9e000 00:00 0          [stack]
> make: *** [extra_build] Aborted (core dumped)
> sh-3.2$
> sh-3.2$
> sh-3.2$ gdb -c core -q /usr/bin/perl
> perl          perl5.8.8     perlbug       perlcc        perl-cleaner
> perldoc       perlivp
> sh-3.2$ gdb -c core -q /usr/bin/perl5.8.8
> (no debugging symbols found)
> Using host libthread_db library "/lib/libthread_db.so.1".
> 
> warning: core file may not match specified executable file.
> 
> warning: Can't read pathname for load map: Input/output error.
> Reading symbols from /lib/libpthread.so.0...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libpthread.so.0
> Reading symbols from /lib/libnsl.so.1...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libnsl.so.1
> Reading symbols from /lib/libdl.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libdl.so.2
> Reading symbols from /lib/libm.so.6...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libm.so.6
> Reading symbols from /lib/libcrypt.so.1...
> (no debugging symbols found)...done.
> Loaded symbols for /lib/libcrypt.so.1
> Reading symbols from /lib/libutil.so.1...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libutil.so.1
> Reading symbols from /lib/libc.so.6...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/ld-linux.so.2
> Reading symbols from /usr/lib/perl5/5.8.8/i686-
> linux/auto/Encode/Encode.so...
> (no debugging symbols found)...done.
> Loaded symbols for /usr/lib/perl5/5.8.8/i686-
> linux/auto/Encode/Encode.so
> Reading symbols from
> /usr/lib/perl5/vendor_perl/5.8.8/i686-
> linux/auto/HTML/Parser/Parser.so...(no
> debugging symbols found)...done.
> Loaded symbols for
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/HTML/Parser/Parser.so
> Reading symbols from
> /usr/lib/perl5/5.8.8/i686-linux/auto/POSIX/POSIX.so...(no debugging
> symbols found)...done.
> Loaded symbols for /usr/lib/perl5/5.8.8/i686-linux/auto/POSIX/POSIX.so
> Reading symbols from
> /usr/lib/perl5/5.8.8/i686-linux/auto/IO/IO.so...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/perl5/5.8.8/i686-linux/auto/IO/IO.so
> Reading symbols from /usr/lib/perl5/5.8.8/i686-
> linux/auto/Fcntl/Fcntl.so...
> (no debugging symbols found)...done.
> Loaded symbols for /usr/lib/perl5/5.8.8/i686-linux/auto/Fcntl/Fcntl.so
> Reading symbols from
> /usr/lib/perl5/vendor_perl/5.8.8/i686-
> linux/auto/Storable/Storable.so...(no
> debugging symbols found)...done.
> Loaded symbols for
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Storable/Storable.so
> Reading symbols from
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Cwd/Cwd.so...(no
> debugging symbols found)...done.
> Loaded symbols for /usr/lib/perl5/vendor_perl/5.8.8/i686-
> linux/auto/Cwd/Cwd.so
> Reading symbols from
> /usr/lib/perl5/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so...(no
> debugging symbols found)...done.
> Loaded symbols for /usr/lib/perl5/5.8.8/i686-
> linux/auto/Data/Dumper/Dumper.so
> Reading symbols from /usr/lib/perl5/5.8.8/i686-
> linux/auto/Digest/MD5/MD5.so...
> (no debugging symbols found)...done.
> Loaded symbols for /usr/lib/perl5/5.8.8/i686-
> linux/auto/Digest/MD5/MD5.so
> Reading symbols from
> /usr/lib/perl5/vendor_perl/5.8.8/i686-
> linux/auto/List/Util/Util.so...(no
> debugging symbols found)...done.
> Loaded symbols for
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/List/Util/Util.so
> Reading symbols from
> /usr/lib/perl5/vendor_perl/5.8.8/i686-
> linux/auto/version/vxs/vxs.so...(no
> debugging symbols found)...done.
> Loaded symbols for
> /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/version/vxs/vxs.so
> Reading symbols from
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1...(no debugging
> symbols found)...done.
> Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
> 
> (no debugging symbols found)
> Core was generated by `perl -Iblib/lib ikiwiki.out -libdir . -setup
> docwiki.setup -refresh'.
> Program terminated with signal 6, Aborted.
> #0  0x4001c410 in __kernel_vsyscall ()
> (gdb) i f
> Stack level 0, frame at 0xbfcc6030:
>  eip = 0x4001c410 in __kernel_vsyscall; saved eip 0x400df101
>  called by frame at 0xbfcc6040
>  Arglist at 0xbfcc6028, args:
>  Locals at 0xbfcc6028, Previous frame's sp is 0xbfcc6030
>  Saved registers:
>   ebp at 0xbfcc6020, eip at 0xbfcc602c
> (gdb) bt
> #0  0x4001c410 in __kernel_vsyscall ()
> #1  0x400df101 in raise () from /lib/libc.so.6
> #2  0x400e08e8 in abort () from /lib/libc.so.6
> #3  0x40115cbb in ?? () from /lib/libc.so.6
> #4  0x00000005 in ?? ()
> #5  0xbfcc62a0 in ?? ()
> #6  0x00000400 in ?? ()
> #7  0x08bde3f0 in ?? ()
> #8  0x0895ee54 in ?? ()
> #9  0x401ca968 in ?? () from /lib/libc.so.6
> #10 0x00000017 in ?? ()
> #11 0xbfcc7340 in ?? ()
> #12 0x00000004 in ?? ()
> #13 0x401ca981 in ?? () from /lib/libc.so.6
> #14 0x00000002 in ?? ()
> #15 0x401caa60 in ?? () from /lib/libc.so.6
> #16 0x00000021 in ?? ()
> #17 0x401ca985 in ?? () from /lib/libc.so.6
> #18 0x00000004 in ?? ()
> #19 0xbfcc67d7 in ?? ()
> #20 0x00000008 in ?? ()
> #21 0x401ca98b in ?? () from /lib/libc.so.6
> #22 0x00000005 in ?? ()
> #23 0x00000001 in ?? ()
> #24 0x00000003 in ?? ()
> #25 0x401ca98b in ?? () from /lib/libc.so.6
> #26 0x00000005 in ?? ()
> #27 0xbfcc61e0 in ?? ()
> #28 0x40115b22 in ?? () from /lib/libc.so.6
> #29 0x401ca98c in ?? () from /lib/libc.so.6
> #30 0x00000025 in ?? ()
> #31 0x00000040 in ?? ()
> #32 0x00000000 in ?? ()
> (gdb) q
> sh-3.2$ gcc -v
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with:
> /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure
> --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2
> --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include
> --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2
> --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man
> --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info
> --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4
> --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
> --enable-nls --without-included-gettext --with-system-zlib
> --disable-checking --disable-werror --enable-secureplt
> --disable-libunwind-exceptions --disable-multilib --enable-libmudflap
> --disable-libssp --disable-libgcj --with-arch=i686
> --enable-languages=c,c++,treelang --enable-shared
> --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
> --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion=Gentoo 4.1.2
> p1.1
> Thread model: posix
> gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
> sh-3.2$
> 
> 
> 
> ######################33
> 1. the ikiwiki is the lastest version for debian sid(from debian site)
> 2. perl
> [ebuild   R   ] dev-lang/perl-5.8.8-r4  USE="berkdb gdbm -build -debug
> -doc -ithreads -perlsuid" 0 kB

Excellent!  I get the failure by simply doing a "perl Makefile.PL" and a
"make".  My perl was a bit more vocal regarding where the problem is...

#0  0x4001c410 in __kernel_vsyscall ()
(gdb) bt
#0  0x4001c410 in __kernel_vsyscall ()
#1  0x4009b085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0x4009ca01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x400d3b7c in ?? () from /lib/tls/i686/cmov/libc.so.6
#4  0x400dba85 in ?? () from /lib/tls/i686/cmov/libc.so.6
#5  0x400df4f0 in free () from /lib/tls/i686/cmov/libc.so.6
#6  0x080a0059 in Perl_pregfree ()
#7  0x080f9cdd in Perl_pp_regcomp ()
#8  0x080c0cab in Perl_runops_standard ()
#9  0x08065d9d in ?? ()
#10 0x080669ad in Perl_call_sv ()
#11 0x08066d08 in Perl_call_list ()
#12 0x0809c8ea in Perl_newATTRSUB ()
#13 0x0809ac43 in Perl_utilize ()
#14 0x0808da19 in Perl_yyparse ()
#15 0x080f080d in ?? ()
#16 0x080f116e in Perl_pp_entereval ()
#17 0x080c0cab in Perl_runops_standard ()
#18 0x0806727b in perl_run ()
#19 0x08063792 in main ()

I need to build a bleadperl with debugging on the see if this has been
fixed already, which I suspect it has already.

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