log4j-dev  

DO NOT REPLY [Bug 49797] New: DeadLock in AsyncAppenders

bugzilla
Sun, 22 Aug 2010 05:19:58 -0700

https://issues.apache.org/bugzilla/show_bug.cgi?id=49797

           Summary: DeadLock in AsyncAppenders
           Product: Log4j
           Version: 1.2
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: glra...@gmail.com


I can see a deadlock in AsyncAppender

at org.apache.log4j.AsyncAppender.append(AsyncAppender.java:165) - waiting to
lock [0xb0cecda8] (a java.util.ArrayList) at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) - locked
[0xab623920] (a org.apache.log4j.AsyncAppender) at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206) - locked
[0x4ccb0548] (a org.apache.log4j.Logger) at
org.apache.log4j.Category.forcedLog(Category.java:391) at
org.apache.log4j.Category.info(Category.java:666) at
com.citi.ucs.util.LogEventFactory.logEvent(LogEventFactory.java:64)

This might be related to Bug 45915
https://issues.apache.org/bugzilla/show_bug.cgi?id=45915

But we are not using any recursive logging in our code like the one used in the
bug 45915 but still we see the issue.

Sorry for ignorance if any.

Thanks,
Raj

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org