develooper Front page | perl.perl5.porters | Postings from October 2007

BBC(Bleadperl Breaks CPAN) Today: Devel::Caller (0.11)

From:
andreas.koenig.7os6VVqR
Date:
October 28, 2007 08:32
Subject:
BBC(Bleadperl Breaks CPAN) Today: Devel::Caller (0.11)
Message ID:
87odejp86x.fsf@k75.linux.bogus
SEGV since @18048, how come this has not been discovered? It's only
happening with -Dusethreads. Apparently testers dislike threads and
threaders do not want to know where they come from:)

My threaded perls throw a SEGV or hit an assertion when running the
testsuite of Devel::Caller.

    % gdb /home/src/perl/repoperls/installed-perls/perl/pbCbNp9/perl-5.8.0@32195/bin/perl core 
    GNU gdb 6.6.90.20070912-debian
    Copyright (C) 2007 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "i486-linux-gnu"...
    Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
    
    warning: Can't read pathname for load map: Input/output error.
    Reading symbols from /lib/i686/cmov/libnsl.so.1...done.
    Loaded symbols for /lib/i686/cmov/libnsl.so.1
    Reading symbols from /lib/i686/cmov/libdl.so.2...done.
    Loaded symbols for /lib/i686/cmov/libdl.so.2
    Reading symbols from /lib/i686/cmov/libm.so.6...done.
    Loaded symbols for /lib/i686/cmov/libm.so.6
    Reading symbols from /lib/i686/cmov/libcrypt.so.1...done.
    Loaded symbols for /lib/i686/cmov/libcrypt.so.1
    Reading symbols from /lib/i686/cmov/libutil.so.1...done.
    Loaded symbols for /lib/i686/cmov/libutil.so.1
    Reading symbols from /lib/i686/cmov/libpthread.so.0...done.
    Loaded symbols for /lib/i686/cmov/libpthread.so.0
    Reading symbols from /lib/i686/cmov/libc.so.6...done.
    Loaded symbols for /lib/i686/cmov/libc.so.6
    Reading symbols from /lib/ld-linux.so.2...done.
    Loaded symbols for /lib/ld-linux.so.2
    Reading symbols from /home/src/perl/repoperls/installed-perls/perl/pbCbNp9/perl-5.8.0@32195/lib/site_perl/5.10.0/i686-linux-thread-multi-64int/auto/PadWalker/PadWalker.so...done.
    Loaded symbols for /home/src/perl/repoperls/installed-perls/perl/pbCbNp9/perl-5.8.0@32195/lib/site_perl/5.10.0/i686-linux-thread-multi-64int/auto/PadWalker/PadWalker.so
    Reading symbols from /home/sand/.cpan/build/Devel-Caller-0.11-4u9D7a/blib/arch/auto/Devel/Caller/Caller.so...done.
    Loaded symbols for /home/sand/.cpan/build/Devel-Caller-0.11-4u9D7a/blib/arch/auto/Devel/Caller/Caller.so
    Failed to read a valid object file image from memory.
    Core was generated by `/home/src/perl/repoperls/installed-perls/perl/pbCbNp9/perl-5.8.0@32195/bin/perl'.
    Program terminated with signal 11, Segmentation fault.
    #0  0xb7f7b51c in glob_out (sigil=36 '$', op=0x84c2cc8, want_name=0)
        at lib/Devel/Caller.xs:49
    49          case '$': ret = (SV*) GvSV(gv); break;
    
As said, I have also sometimes seen this assertion:

    Assertion ((svtype)((shplep)->sv_flags & 0xff)) == SVt_PVGV || ((svtype)((shplep)->sv_flags & 0xff)) == SVt_PVLV failed: file "lib/Devel/Caller.xs", line 49 at /home/sand/.cpan/build/Devel-Caller-0.11-JPp6H1/blib/lib/Devel/Caller.pm line 32.


I had to go back to 18047 to find the last (threaded) bleadperl that
PASSes. I had to 'force install PadWalker' for this old perl because
1.5 of the PadWalker does not pass its test suite when the perl is
older than 18300 abouts.

    (http://public.activestate.com/cgi-bin/perlbrowse/p/18048)
    Change 18048 by hv@hv-crypt.org on 2002/10/22 17:04:26

        Subject: [PATCH] PL_curpad == AvARRAY(PL_comppad) always
        From: Dave Mitchell <davem@fdgroup.com>
        Date: Fri, 18 Oct 2002 13:36:40 +0100
        Message-ID: <20021018133640.A19172@fdgroup.com>

Hope this helps,
-- 
andreas



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About