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

Math-Pari recent patching

Thread Next
From:
andreas.koenig.7os6VVqR
Date:
March 27, 2008 21:47
Subject:
Math-Pari recent patching
Message ID:
877ifnfoal.fsf@k75.linux.bogus
On perlmonks[0] a patch appeared which unfortunately was missed by me on
P5P. MST asked me on IRC about more information on a segfault that
purportedly happens when this patch is applied. I also missed where
this SEGV was being talked about. (I'd like to encourage all parties
to CC P5P on this matter because I think we have no better place to
get this thing resolved)

21:42 <@mst> I need to recreate that segfault
21:42 <@mst> I would like to do it without releasing Math::Pari::MightWorkWithFiveTenButFuckedIfIKnow and wait for the cpan testers reports
21:44 <@klapperl> I'll have a look

So I did my usual binary search and found that with that patch
Math::Pari passes all tests up to bleadperl@26979 and segfaults for me
with 26980 in this test (only visible with Test::Harness 2.64):

t/55_objets......dubious
   Test returned status 0 (wstat 11, 0xb)
   after all the subtests completed successfully

(@mst: this happens with
/home/src/perl/repoperls/installed-perls/perl/pporTZm/perl-5.9.3@26980/bin/perl
and the Math-Pari directory is preserved in
~sand/backup/Math-Pari-2.010709-OULtjA)

Here's the stack trace:

Program terminated with signal 11, Segmentation fault.
#0  0xb7a28d40 in ?? ()
(gdb) bt
#0  0xb7a28d40 in ?? ()
#1  0xb7ef2140 in ?? () from /lib/i686/cmov/libc.so.6
#2  0x0095a868 in ?? ()
#3  0x0000005b in ?? ()
#4  0xffea419e in ?? ()
#5  0x0095a868 in ?? ()
#6  0x0095a868 in ?? ()
#7  0x0000005b in ?? ()
#8  0xb7b85e64 in ?? ()
#9  0xbfdfe788 in ?? ()
#10 0xb7a292f5 in ?? ()
#11 0xb795a898 in ?? ()
#12 0xb7e17380 in free () from /lib/i686/cmov/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Eeek, need to recompile with -g

Program terminated with signal 11, Segmentation fault.
#0  0xb7a27d40 in taille (x=0xb7959898)
    at ../pari-2.1.7/src/basemath/gen2.c:255
255     ../pari-2.1.7/src/basemath/gen2.c: No such file or directory.
        in ../pari-2.1.7/src/basemath/gen2.c
(gdb) bt
#0  0xb7a27d40 in taille (x=0xb7959898)
    at ../pari-2.1.7/src/basemath/gen2.c:255
#1  0xb7a282f5 in gclone (x=0xb7959898)
    at ../pari-2.1.7/src/basemath/gen2.c:323
#2  0xb7981255 in moveoffstack_newer_than (sv=0x837467c) at Pari.xs:1240
#3  0xb7992b52 in XS_Math__Pari_DESTROY (cv=0x8259524) at Pari.xs:3832
#4  0x080fe6dd in Perl_pp_entersub () at pp_hot.c:2906
#5  0x0806595b in S_call_body (myop=0xbf923ef0, is_eval=0 '\0') at perl.c:2660
#6  0x08065545 in Perl_call_sv (sv=0x8259524, flags=150) at perl.c:2591
#7  0x0810b3a9 in Perl_sv_clear (sv=0x837467c) at sv.c:4768
#8  0x0810bea1 in Perl_sv_free2 (sv=0x837467c) at sv.c:4991
#9  0x08100033 in do_clean_objs (ref=0x8374690) at sv.c:468
#10 0x080ffe59 in S_visit (f=0x80ffed9 <do_clean_objs>, flags=524288, 
    mask=524288) at sv.c:413
#11 0x08100585 in Perl_sv_clean_objs () at sv.c:515
#12 0x08060438 in perl_destruct (my_perl=0x81d3008) at perl.c:754
#13 0x0805eb9e in main (argc=3, argv=0xbf924334, env=0xbf924344)
    at perlmain.c:105


(@mst: this is now in /home/sand/backup/Math-Pari-2.010709-j4UOyU if
you want further information)



-- 
andreas
[0] http://perlmonks.org/?node_id=672924

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