Beau E. Cox wrote:
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

I am trying to port Mason to mod_perl2 w/libapreq2. It seems I have munged it
up. When 'stressing' the site (downloading a Mason-enabled uri with
wget in a looping shell script), I get lots of

Attempt to free unreferenced scalar: SV 0x405e6e78 at /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi/DBI.pm line 626.
Attempt to free unreferenced scalar: SV 0x405e6e78 at /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi/DBI.pm line 626.
Attempt to free unreferenced scalar: SV 0x405e6e78 at /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi/DBI.pm line 626.
...


Not just in DBI.pm; Lots of others: HTML::Parser, HTML::Mason::Requesr,
etc. The lines in quesion always show:
$somevar = delete $some_hash_passed_as_an_arg{somekey};

Now, the REALLY crazy part: the address shown is ALWAYS
SV 0x405e6e78 - this must be someting other than the scalar's
address, right? The address of the execption routine catching
the problem?

Stressing a non-Mason-enabled uri does NOT fail.

Are there any tools I can use to pinpoint my bug?
[...]
-D APACHE_MPM_DIR="server/mpm/worker"

I bet you won't see any of these under prefork. It's most likely the issue of perl_clone(), when a cloned variable is attempted to be destroyed more than once or may be it's the the interpreter scoping bug that yours truly has introduced in perl 5.8.2 (later removed in 5.8.3) trying to fix some other hairy problem. So first try upgrading to DBI (which is now should work just fine with 5.8.2). Or even better upgrade to 5.8.3.


You should be able to reproduce it with standalone perl when using perl threads. see p5p archives for the discussion on this issue.

Please see this thread:
http://marc.theaimsgroup.com/?t=107425078400004&r=1&w=2
I've cc'ed Kurt and Steve (Who had the same problem), may be they have some news regarding it.


In any case please report back the outcoming. Thanks.
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to