Mike Schilli said:

> It would be great if you could provide test results / bug reports of
> running Log4perl with Perl threads, though.
>
> That being said, there are synchronization mechanisms for file
> appenders:
>
> http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#23804

I've tried using Log4perl in a multi-threaded server script and the
synchronized appender fails consistently after logging exactly 32768 lines,
with (piped through cat -v):

Thread 1 terminated abnormally: semop(1343496
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@^P) failed: Numerical result out of range  at
/usr/local/lib/perl5/site_perl/5.10.0/Log/Log4perl/Util/Semaphore.pm
line 192, <GEN3277> chunk 2.
semop(1343496 [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@^P) failed: Numerical result out
of range  at 
/usr/local/lib/perl5/site_perl/5.10.0/Log/Log4perl/Util/Semaphore.pm
line 192.

OS is CentOS 5.2 under xen.  In one case there were three threads.  Without
using the synchronized appender, in heavy testing overwrites occurred.  I'll
try to replicate the failure in my test environment (Kubuntu 8.04).

Regards, John

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to