You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Brian Burke <bb...@lssi.net> on 2001/05/16 22:37:52 UTC

CleanupSession / unreferenced scalar error

I have an intermittent problem that is being a real pest to track down.  I'm running
Apache/1.3.14 (Unix) mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.6 with
Embperl-1.3.1 on a RedHat 6.0 box.  I have an embperl page that seems to
do what it's supposed to, but if you access the page 3 or 4 times, it will eventually
crash.

I am pretty sure my code is solid.  In my [-  -] block I use vars qw() and strict, and
I don't create any new vars in [$ $] or [+ +] blocks.  The only clues I have is the
following from the error_log:

Attempt to free unreferenced scalar at /usr/local/apachessl/perl5.6/lib/site_perl/5.6.0/i686-linux-64all/HTML/Embperl.pm line 1226.
[Wed May 16 16:21:42 2001] [error] Can't call method "CleanupSession" on unblessed reference at /usr/local/apachessl/perl5.6/lib/site_perl/5.6.0/i686-linux-64all/HTML/Embperl.pm line 976.

Has anyone seen this message before?  Any help will be much appreciated!

thanks,
Brian

--
______________________________________
Brian Burke
 LSSi Corp.
email: bburke@lssi.net
  url: http://www.lssi.net/~bburke
phone: (919) 466-6800 x238
______________________________________



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


Re: CleanupSession / unreferenced scalar error

Posted by Gerald Richter <ri...@ecos.de>.
>
> I am pretty sure my code is solid.  In my [-  -] block I use vars qw() and
strict, and
> I don't create any new vars in [$ $] or [+ +] blocks.  The only clues I
have is the
> following from the error_log:
>

instead of use strict/use vars you should use [$ var .... $], because use
strict doesn't work correctly with Embperl 1.x

> Attempt to free unreferenced scalar at
/usr/local/apachessl/perl5.6/lib/site_perl/5.6.0/i686-linux-64all/HTML/Embpe
rl.pm line 1226.
> [Wed May 16 16:21:42 2001] [error] Can't call method "CleanupSession" on
unblessed reference at
/usr/local/apachessl/perl5.6/lib/site_perl/5.6.0/i686-linux-64all/HTML/Embpe
rl.pm line 976.
>
This means that Embperl internals request object has been gone. This is
maybe a result of another error. If ths [$ var $] doesn't help, try to
upgrade to 1.3.2 . It can handles such errors more gracefully and give us at
least a better error diagnostic

Gerald



-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



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