Mailing List Archive

Warning in Perl code: Attempt to free unreferenced scalar
I'm now getting errors on one of my pages that seem to be
from the internal C code.
How do I track this down?

ERR: 24: Error in Perl code: Can't use an undefined value as a HASH reference at /group/uhurunews.com/public_html/admin/spear_extract_form.epl line 7.
ERR: 32: Warning in Perl code: Attempt to free unreferenced scalar: SV 0x8862e40, Perl interpreter: 0x814e008 at /group/uhurunews.com/public_html/admin/index.epl in block starting at line 1.

I'm running Embperl-2.2.0

-mda

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Warning in Perl code: Attempt to free unreferenced scalar [ In reply to ]
I figured it out by process of elimination.
I was passing in an anonymous sub to an embperl sub and
my sub did this:
sub {shift->{a} . shift->{b}}
when there was only one argument.

So Embperl's only role here was in obfuscating the stack.

-mda

On Fri, 13 Apr 2007 14:05:07 -0700, "Mark D. Anderson" <mda@discerning.com> said:
> I'm now getting errors on one of my pages that seem to be
> from the internal C code.
> How do I track this down?
>
> ERR: 24: Error in Perl code: Can't use an undefined value as a HASH
> reference at
> /group/uhurunews.com/public_html/admin/spear_extract_form.epl line 7.
> ERR: 32: Warning in Perl code: Attempt to free unreferenced scalar: SV
> 0x8862e40, Perl interpreter: 0x814e008 at
> /group/uhurunews.com/public_html/admin/index.epl in block starting at
> line 1.
>
> I'm running Embperl-2.2.0
>
> -mda
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org