|
From: Gil V. <gil...@po...> - 2006-04-11 19:13:45
|
We have four servers running an application which has incorporated log4perl
verion 1.02. We are running into a peculiar error, which crashes our
application;
Attempt to free unreferenced scalar: SV 0x9edad98 at
/usr/local/lib/perl5/site_perl/5.8.7/Log/Log4perl/Logger.pm line 217.
Line 217 from Logger.pm
print(" Setting [$self] $self->{category}.$levelname to ",
($self->{$levelname} == $noop ? "NOOP" :
("Coderef [$coderef]: " . scalar @appenders . " appenders")),
"\n") if _INTERNAL_DEBUG;
It's always line 217 that is causing the problem. Doing some googling, I
found what causes the SV error, but have no idea how to fix it:
CAUSE OF ERROR according to this source from perl bugs:
attempt to free unreferenced scalar (W internal) Perl went to decrement the
reference count of a scalar to see if it would go to 0, and discovered that
it had already gone to 0
earlier, and should have been freed, and in fact, probably was freed.
This could indicate that SvREFCNT_dec() was called too many times, or
that SvREFCNT_inc() was called too few times, or that the SV was
mortalized when it shouldn't have been, or that memory has been
corrupted.
How can I prevent log4perl from causing this problem and crashing our
application?
Gil...@Po...
Position Research, Inc.
Search engine results by research
tel: (760) 480-8291 fax: (760) 480-8271
www.PositionResearch.com
|