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

           Summary: log4j 1.2.15 deadlock RootAppender NDC
           Product: Log4j
           Version: 1.2
          Platform: HP
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2009-08-26 03:48:08 PDT ---
Created an attachment (id=24167)
thread dump

We were using log4j 1.2.8. We were getting deadlocks similar to following.

https://issues.apache.org/bugzilla/show_bug.cgi?id=38137 : Curt, we have also
experienced this exact problem in our production system...We are 
currently using log4j 1.2.8...Please retry using log4j 1.2.15

Then we upgraded to log4j 1.2.15. But we still got following deadlock. Please
see attachment for more details.

"RMI TCP Connection(5392)-154.4.160.174" daemon prio=1 tid=0x0000002af80e9110
nid=0x1e26 waiting for monitor entry [0x0000000043182000..0x0000000043183bb0]
    at java.util.Hashtable.get(Hashtable.java:335)
    - waiting to lock <0x0000002aa16b5fb8> (a java.util.Hashtable)
    at org.apache.log4j.NDC.getCurrentStack(NDC.java:135)
    at org.apache.log4j.NDC.get(NDC.java:220)
    at org.apache.log4j.spi.LoggingEvent.getNDC(LoggingEvent.java:303)
    at org.apache.log4j.AsyncAppender.append(AsyncAppender.java:155)
    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
    - locked <0x0000002aa16bf418> (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 <0x0000002aa16c6040> (a org.apache.log4j.spi.RootLogger)
    at org.apache.log4j.Category.forcedLog(Category.java:391)
    at org.apache.log4j.Category.info(Category.java:666)
    at
com.abc.dataExtractor.SLMTDSLFDDataExtractor.extract(SLMTDSLFDDataExtractor.java:192)
    at com.abc.pdfGenerator.PdfGeneratorImpl.start(PdfGeneratorImpl.java:379)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
    at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)

-- 
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