perl_parse() crashes with no apparent reason

Discussion in 'Perl Misc' started by Jan Engelhardt, Oct 14, 2004.

  1. 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
    --
    Gesellschaft für Wissenschaftliche Datenverarbeitung
    Am Fassberg, 37077 Göttingen, www.gwdg.de
     
    Jan Engelhardt, Oct 14, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John E. Jardine

    s/// has apparent side effect on grep()

    John E. Jardine, Apr 12, 2004, in forum: Perl
    Replies:
    2
    Views:
    449
    John Jardine
    Apr 13, 2004
  2. Shari

    Apparent session crosstalk

    Shari, Sep 24, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    432
    Shari
    Oct 1, 2004
  3. Guest
    Replies:
    4
    Views:
    422
    Guest
    Jan 28, 2005
  4. Replies:
    2
    Views:
    322
  5. Replies:
    3
    Views:
    123
    Dr.Ruud
    Aug 3, 2006
Loading...

Share This Page