[Israel.pm] FW: Examining Perl's Stack

Shmuel Fomberg semuelf at 012.net.il
Thu Jun 21 10:38:37 PDT 2007

Hello All.

I am trying to write an XS code, but getting weird results. After a lot
of experiencing and debugging, I found out that a function does not get
the currect parameters. I suspect that by doing something wrong, I
managed to corrupt Perl's stack. 
So my question is: how do I examine Perl's stack?

The program is very simple. Something like this:
use mymodule;
my $obj = mymodule::create(); # XS
mymodule::do_something($obj, 1, 2, 3); # XS

The program crashes on the "do_something".



More information about the Perl mailing list