perl_parse() crashes with no apparent reason

J

Jan Engelhardt

Hello,


I have a super weird problem with embedding perl -- it crashes upon running
perl_parse(), but when in gdb, i must be luckily to get the sigsegv at all...
any idea?


GDB:
#0 0x402106ec in memcpy () from /lib/i686/libc.so.6
#1 0x400be26a in Perl_savepvn ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#2 0x400ddc2e in Perl_sv_magicext ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#3 0x400ddd9c in Perl_sv_magic ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#4 0x400c2972 in Perl_mg_copy ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#5 0x400c9a0c in Perl_hv_store_flags ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#6 0x400c94c6 in Perl_hv_store ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#7 0x40077c59 in S_init_postdump_symbols ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#8 0x40073875 in S_parse_body ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#9 0x40073169 in perl_parse ()
from /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#10 0x0804ac60 in cnode_perl_init (cnode=0x40020330) at pg/gate.c:23

19 cnode->perl = my_perl = perl_alloc();
20 PERL_SET_CONTEXT(my_perl);
21 perl_construct(my_perl);
22 PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
23>> perl_parse(my_perl, xs_init, 2, args, NULL);
24 perl_run(my_perl);
25 return;

(gdb) p args
$3 = {0x804be00 "-", 0x804be02 "sensors.pl", 0x0}

#11 0x0804ad0f in sensors_string (node=0x40020330) at pg/gate.c:41
#12 0x0804a74b in query_node (arg=0x40020330) at qd.c:67
#13 0x40044020 in pthread_start_thread () from /lib/i686/libpthread.so.0
#14 0x40044122 in pthread_start_thread_event () from /lib/i686/libpthread.so.0



Jan Engelhardt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top