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

           Summary: DeadLock occured in AsyncAppender
           Product: Log4j
           Version: 1.2
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Appender
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Unfortunately, our system which uses log4j 1.2.15. encountered the same bug
that was reported in Bug#: 38137 Comment #16. 
This bug seems not to be discussed for the final fix for several months… Is
this bug going to fix in near future?

Here is the thread dump:

Found one Java-level deadlock:
=============================
"Thread-1":
  waiting to lock monitor 6000000000587e40 (object 9fffffffcb409a68, a
java.util.ArrayList),
  which is held by "pool-1-thread-41460"
"pool-1-thread-41460":
  waiting to lock monitor 6000000000588230 (object 9fffffffcb4d9b28, a
org.apache.log4j.spi.RootLogger),
  which is held by "Thread-1"

Java stack information for the threads listed above:
===================================================
"Thread-1":
        at org.apache.log4j.AsyncAppender.append(AsyncAppender.java:163)
        - waiting to lock <9fffffffcb409a68> (a java.util.ArrayList)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        - locked <9fffffffcb409ac0> (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 <9fffffffcb4d9b28> (a org.apache.log4j.spi.RootLogger)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at kid.bs.common.log.KidLogger.log(KidLogger.java:429)
        at kid.bs.common.log.KidLogger.log(KidLogger.java:351)
        at kid.bs.job.KidExecuter.run(KidExecuter.java:1128)
        at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-41460":
        at org.apache.log4j.Category.callAppenders(Category.java:204)
        - waiting to lock <9fffffffcb4d9b28> (a
org.apache.log4j.spi.RootLogger)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at kid.bs.common.log.KidLogger.info(KidLogger.java:142)
        at kid.sr.batch.LoadingDaily.action(LoadingDaily.java:2111)
        - locked <9fffffffcbee6e28> (a java.lang.String)
        at
kid.bs.job.thread.KidActionThread.newActionClass(KidActionThread.java:429)
        at
kid.bs.job.thread.KidActionThread.jobExecute(KidActionThread.java:149)
        at kid.bs.job.thread.KidActionThread.run(KidActionThread.java:83)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)

Found 1 deadlock.


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to