Re: test 45

1 view
Skip to first unread message

Reini Urban

unread,
Aug 5, 2010, 8:25:12 AM8/5/10
to J. Nick Koston, perl-c...@googlegroups.com
2010/8/4 J. Nick Koston <ni...@cpanel.net>:
> If I turn on usestaticxs
> and link in Dumper.so
>
> cc -fno-strict-aliasing -pipe -I/usr/local/include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g3 -ggdb -I/usr/local/lib/perl5/5.8.9/i686-linux/CORE -g3 -DALLOW_PERL_OPTIONS ccode45.c -o ccode45  -L/usr/local/lib /usr/local/lib/perl5/5.8.9/i686-linux/CORE/libperl.a /usr/local/lib/perl5/5.8.9/i686-linux/auto/Data/Dumper/Dumper.so  -lnsl -ldb -ldl -lm -lcrypt -lutil -lc

>
>
> and change the test to
> +tests[45]='my %pig=("cow"=>1);use Data::Dumper ();print Data::Dumper::Dumper(\%pig);print "ok";'   (previously we dumped main:: which dies on main::Exporter?) -- needs another test
>
>
> and it works


external xsub detection which does not go through AUTOLOAD (i.e.
called directly as here) does not trigger xs_init for this xsub, so it
fails.
I just added it, biut it still fails.

GV::save $"Data::Dumper::Dumper"
GV::save &"Data::Dumper::Dumper" ("Data::Dumper::Dumper")...
CV as PVGV 0x1bcb344 Data::Dumper::Dumper
saving Data::Dumper::Dumper CV 0x1b6924c as &sv_list[2]
saving op tree for CV 0x1b6924c, root=0x1bd18c8
COP: line 533 file
/usr/lib/perl5/5.8.9/i686-nothreads-debug-cygwin/Data/Dumper.pm
OP=OP (0x1bd07c8) pushmark targ=0 flags=0x2 private=0x0
OP=OP (0x1bd05c8) pushmark targ=0 flags=0x2 private=0x0
save package_pv "" for method_name
OP=OP (0x1bd06c8) pushmark targ=0 flags=0x2 private=0x0

save package_pv "" for method_name seems to be the culprit. It must be
"Data::Dumper", yes.

good catch!
--
Reini Urban
http://phpwiki.org/           http://murbreak.at/

Reini Urban

unread,
Dec 31, 2010, 2:37:09 PM12/31/10
to J. Nick Koston, perl-c...@googlegroups.com
2010/12/31 J. Nick Koston <ni...@cpanel.net>:
> Its loading the .so now :)
>
> Crashing in _init now.
>
> Starting program: /usr/local/cpanel/bin/storeable_test
> [ Storable test on perl 5.008009   ]
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xb7e96208 in _init () from /usr/local/cpanel/perl/Storable/Storable.so
> (gdb) back
> #0  0xb7e96208 in _init () from /usr/local/cpanel/perl/Storable/Storable.so
> #1  0xb7e9b611 in XS_Storable_net_pstore () from /usr/local/cpanel/perl/Storable/Storable.so
> #2  0xb7f25626 in Perl_pp_entersub () at pp_hot.c:2862
> #3  0xb7f1dd05 in Perl_runops_standard () at run.c:38
> #4  0xb7f1c466 in perl_run (my_perl=0x8082028) at perl.c:2453
> #5  0x0806193d in XS_utf8_is_utf8 () at universal.c:385
> #6  0x42017589 in __libc_start_main () from /lib/i686/libc.so.6

Storable has other issues, which I haven't detected before.

The list of failing modules is now:
http://code.google.com/p/perl-compiler/source/browse/trunk/t/modules.t?r=832
sub is_todo

in short:
Attribute::Handlers
Sub::Name
Filter::Util::Call
Moose
DBI
almost always.
Storable fails with debugging without threads.

Reply all
Reply to author
Forward
0 new messages