Comments (3)
ok, we found out what's the problem. If any log4perl module outputs something to stderr/stdout and you're using the recipe to catch all output from stderr & stdout and redirect to log4perl you run into a semaphore deadlock as you're entering the 'log' subroutine again in a recursion and it waits indefinitly.
For the moment I have monkey patched the 'log' method of the Appender to run a counter and only lock/umlock the semaphore if counter == 0, also error handling is not done properly here, if the log method dies you're also left with a locked semaphore and system is in deadlock mode.
from log4perl.
Hi,
I had the same issue. The semaphore errors were showing up in the Centos 7 syslogs and my software stopped processing all together. Had to fall back to the following configuration:
log4perl.appender.Logfile = Log::Log4perl::Appender::File
log4perl.appender.Logfile.autoflush = 1
log4perl.appender.Logfile.mode = append
log4perl.appender.Logfile.syswrite = 1
(i.e. not using Log::Log4perl::Appender::Synchronized)
from log4perl.
Thanks for the report. Could one of you please put here a code snippet that demonstrates the problem, or even better put it in a .t
for easy adding?
from log4perl.
Related Issues (20)
- Unicode file names on Windows? HOT 4
- Log::Log4perl::Catalyst has no version HOT 1
- Appender mail crashes at reading configuration HOT 2
- Using dots in property configuration names HOT 1
- Log::Log4perl::DateFormat caches time zone offset HOT 1
- [Bug] Log::Log4perl::Appender::File::file_switch() ignores the create_at_logtime option HOT 2
- Is log4perl affected by CVE-2021-44228? (log4j) HOT 2
- Log::Log4perl::Appender::File is using two args open HOT 2
- Using the Log4Perl object as a function argument in an unused line of code makes Perl crash while destroying the objects HOT 3
- Appender::Screen buffering issue when used inside Docker container
- add delete method to MDC HOT 1
- Repository link wrong in MetaCPAN HOT 1
- Perl 5 blead change breaks Log::Log4perl HOT 4
- utf8 is not passed to Log::Dispatch::File* appenders
- [feature/bug] provide a way to get appender instances that are not bound to any logger HOT 1
- it would be cool if MDC->put accepts multiple key value pairs
- :no_extra_logdie_message should respect $EXCEPTIONS_BEING_CAUGHT
- unable to subclass Log::Log4perl::Logger
- Add ability to use wildcards in cateory selectors in the log4perl config
- parameterized logging? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log4perl.