Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the autobox CPAN distribution.

Report information
The Basics
Id: 54188
Status: open
Priority: 0/
Queue: autobox

People
Owner: CHOCOLATE [...] cpan.org
Requestors: TIMB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.55
Fixed in: (no value)



Subject: Core dump with perl v5.8.6 built for darwin-thread-multi-2level
I tried to install autobox for the first time today (as a dependency of Dist::Zilla). The tests failed: $ perl -Mblib t/all.t 1..292 Bus error (core dumped) (gdb) bt #0 0x005f6bcf in XS_autobox__scope () #1 0x0009fe27 in Perl_pp_entersub (my_perl=0x800000) at pp_hot.c:2890 #2 0x000795ad in Perl_runops_debug (my_perl=0x800000) at dump.c:1449 #3 0x000098f5 in S_call_body (my_perl=0x800000, myop=0xbfffea08, is_eval=0) at perl.c:2298 #4 0x0000941f in Perl_call_sv (my_perl=0x800000, sv=0x876058, flags=6) at perl.c:2216 #5 0x0000f08a in S_call_list_body (my_perl=0x800000, cv=0x876058) at perl.c:4732 #6 0x0000eb14 in Perl_call_list (my_perl=0x800000, oldscope=2, paramList=0x81f6d8) at perl.c:4661 #7 0x00052dca in Perl_newATTRSUB (my_perl=0x800000, floor=204, o=0x1006c20, proto=0x0, attrs=0x0, block=0x1006bf0) at op.c:4472 #8 0x0004df2b in Perl_utilize (my_perl=0x800000, aver=1, floor=204, version=0x0, idop=0x1006520, arg=0x0) at op.c:3048 #9 0x00042421 in Perl_yyparse (my_perl=0x800000) at perly.y:414 #10 0x00007e5f in S_parse_body (my_perl=0x800000, env=0x0, xsinit=0x2862 <xs_init>) at perl.c:1778 #11 0x000067f8 in perl_parse (my_perl=0x800000, xsinit=0x2862 <xs_init>, argc=3, argv=0xbffff044, env=0x0) at perl.c:1282 #12 0x000027db in main (argc=3, argv=0xbffff044, env=0xbffff054) at perlmain.c:96 After recompiling with -g gdb reports #0 0x005f86c3 in XS_autobox__scope (my_perl=0x800000, cv=0x1071518) at autobox.xs:334 334 XSRETURN_UV(PTR2UV(GvHV(PL_hintgv))); Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=darwin, osvers=8.5.2, archname=darwin-thread-multi-2level uname='darwin ppp-117.la.vclk.net 8.5.2 darwin kernel version 8.5.2: mon feb 13 16:31:48 pst 2006; root:xnu-792.8.37.obj~1release_i386 i386 i386 ' config_args='-des -Dprefix=/usr/local/perl58-i -Doptimize=-g -Duseithreads -Dusemultiplicity' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include', optimize='-g', cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include' ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5250)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib -L/opt/local/lib' libpth=/usr/local/lib /opt/local/lib /usr/lib libs=-lgdbm -ldbm -ldl -lm -lc perllibs=-ldl -lm -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under darwin Compiled at May 25 2006 17:27:32 %ENV: PERL5LIB="" PERL5OPT="" PERL5_CPANPLUS_IS_RUNNING="67548" PERL5_CPAN_IS_RUNNING="67548" PERLCRITIC="/Users/timbo/.setdev/perlcriticrc" PERLTIDY="/Users/timbo/.setdev/perltidyrc" @INC: /usr/local/perl58-i/lib/5.8.6/darwin-thread-multi-2level /usr/local/perl58-i/lib/5.8.6 /usr/local/perl58-i/lib/site_perl/5.8.6/darwin-thread-multi-2level /usr/local/perl58-i/lib/site_perl/5.8.6 /usr/local/perl58-i/lib/site_perl .
Ditto. It dumps core on OS X 5.10.1 I compiled but works on the system's 5.10.0. The debugger reports that it segfaults at line 88 (use autobox). Here's the backtrace for t/all.t #0 0x0008ee84 in Perl_mg_size () #1 0x0001fc61 in Perl_call_list () #2 0x001d3939 in boot_autobox () #3 0x000a5724 in Perl_pp_entersub () #4 0x0009afd9 in Perl_runops_standard () #5 0x0001fa9c in Perl_call_sv () #6 0x0001fec4 in Perl_call_list () #7 0x00003745 in S_process_special_blocks () #8 0x00016beb in Perl_newATTRSUB () #9 0x00017589 in Perl_utilize () #10 0x0005590b in Perl_yyparse () #11 0x000255f5 in S_parse_body () #12 0x00026feb in perl_parse () #13 0x000025c7 in main () Here's perl -V for both 5.10.1 and 5.10.0. Note that 5.10.1 is compiled with 64 bit ints on a 32 bit machine. Let me know if you need any more information or a login. Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=darwin, osvers=9.0.0, archname=darwin-thread-multi-64int-ld-2level uname='darwin windhund 9.0.0 darwin kernel version 9.0.0: tue oct 9 21:35:55 pdt 2007; root:xnu-1228~1release_i386 i386 ' config_args='-Dprefix=/usr/local/ -Dsitelib=/usr/local/lib/perl5/site_perl -Dsitearch=/usr/local/lib/perl5/site_perl/5.10/darwin-thread-multi-64int-ld-2level -Duseithreads -Duse64bitint -Duselongdouble -Dccflags=-I/usr/local/include -I/opt/local/include -I/sw/include -Dldflags=-L/usr/local/lib -L/opt/local/lib -L/sw/lib -Dlibpth=/usr/local/lib /opt/local/lib /sw/lib /usr/lib -Dperladmin=schwern@pobox.com -Dcf_email=schwern@pobox.com -Dmyhostname=windhund -Dmydomain=.schwern.org -Uinstallusrbinperl -des -DPERL_DONT_CREATE_GVSV' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=undef, uselongdouble=define usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-I/usr/local/include -I/opt/local/include -I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include', optimize='-O3', cppflags='-no-cpp-precomp -I/usr/local/include -I/opt/local/include -I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include' ccversion='', gccversion='4.0.1 (Apple Inc. build 5493)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long long', ivsize=8, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib -L/opt/local/lib -L/sw/lib -fstack-protector' libpth=/opt/local/lib /usr/lib libs=-lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-L/usr/local/lib -L/opt/local/lib -L/sw/lib -bundle -undefined dynamic_lookup -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LONG_DOUBLE USE_PERLIO USE_REENTRANT_API Built under darwin Compiled at Oct 17 2009 14:42:32 %ENV: PERL5LIB="" PERL5OPT="" PERL5_CPANPLUS_IS_RUNNING="35806" PERL5_CPAN_IS_RUNNING="35806" PERL_AUTOINSTALL="--defaultdeps" @INC: /usr/local/lib/perl5/5.10.1/darwin-thread-multi-64int-ld-2level /usr/local/lib/perl5/5.10.1 /usr/local/lib/perl5/site_perl/5.10/darwin-thread-multi-64int-ld-2level /usr/local/lib/perl5/site_perl . Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level uname='darwin neige.apple.com 10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=gcc-4.2' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include', optimize='-Os', cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc-4.2 -mmacosx-version-min=10.6', ldflags ='-arch x86_64 -arch i386 -arch ppc -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Locally applied patches: /Library/Perl/Updates/<version> comes before system perl directories installprivlib and installarchlib points to the Updates directory Built under darwin Compiled at Jun 24 2009 00:35:28 %ENV: PERL5LIB="" PERL5OPT="" PERL5_CPANPLUS_IS_RUNNING="35806" PERL5_CPAN_IS_RUNNING="35806" PERL_AUTOINSTALL="--defaultdeps" @INC: /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .
2.70 still has this problem.
Sorry, gents. Only just noticed the follow ups and the kind offer of a login. RT didn't notify me for some reason. I'm perplexed by the segfault as it seems to indicate that %^H (or rather its typeglob, PL_hintgv) is uninitialized, which doesn't square with the codebases I've checked (various 5.8s, 5.10.0 and 5.12.0-RC3), where it's created directly before *_ and only cleared when an interpreter shuts down. I'll take a look at the perl versions you mention, and cook up an autobox tarball with assertions added to isolate the issue when I get a chance.