From: John L. <joh...@gm...> - 2008-11-08 00:51:23
|
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 ^@^@^@^@^@^@^@^@^A^@^@^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 ^@^@^@^@^@^@^@^@^A^@^@^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 |