[Israel.pm] Counting my scalars
semuelf at 012.net.il
Sun Jun 24 12:12:03 PDT 2007
I solved my own problem. What triggered the error was:
unsigned char value = SvTRUE(POPs);
I changed it with POPi and everything worked. (donno why... :-( )
Anyway, now I'm playing with my favorite embedding-perl, and getting:
Attempt to free unreferenced scalar: SV 0x3fece4 during global
Can anyone tell me how do I inspect the scalars that are left?
>From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On
>Of Shmuel Fomberg
>Sent: Thursday, June 21, 2007 8:39 PM
>To: perl at perl.org.il
>Subject: [Israel.pm] FW: Examining Perl's Stack
>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:
>my $obj = mymodule::create(); # XS
>mymodule::do_something($obj, 1, 2, 3); # XS
>The program crashes on the "do_something".
>Perl mailing list
>Perl at perl.org.il
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.5.472 / Virus Database: 269.9.1/854 - Release Date:
More information about the Perl