logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41214] - Deadlock with RollingFileAppender
Date Tue, 15 Jan 2008 17:03:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41214>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41214





------- Additional Comments From benoitx@yahoo.com  2008-01-15 09:03 -------
Sorry I forgot to post the other thread:

I believe that there is a conflict in the use of synchronized between the
AsyncAppender.append and the Category.callAppenders; Any solution available???

"movementMDPListenerContainer-2" prio=6 tid=0x5f1efe28 nid=0x1f8c in
Object.wait() [0x60b1f000..0x60b1fc98]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x13b80ce8> (a org.apache.log4j.helpers.BoundedFIFO)
        at java.lang.Object.wait(Object.java:474)
        at org.apache.log4j.AsyncAppender.append(AsyncAppender.java:85)
        - locked <0x13b80ce8> (a org.apache.log4j.helpers.BoundedFIFO)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
        - locked <0x13b65418> (a org.apache.log4j.AsyncAppender)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
        at org.apache.log4j.Category.callAppenders(Category.java:187)
        - locked <0x13b78530> (a org.apache.log4j.spi.RootCategory)
        at org.apache.log4j.Category.forcedLog(Category.java:372)
        at org.apache.log4j.Category.info(Category.java:674)

(In reply to comment #19)
> We have the same deadlock issue under windows XP and log4j-1.2.15. Is there a
> workaround? Is it specific to using the AsyncAppender with RollingFileAppender?
> 
> "movementMDPListenerContainer-1" prio=6 tid=0x5edfa8d0 nid=0x1bcc waiting for
> monitor entry [0x60c5d000..0x60c5fa18]
>         at org.apache.log4j.Category.callAppenders(Category.java:185)
>         - waiting to lock <0x13b78530> (a org.apache.log4j.spi.RootCategory)
>         at org.apache.log4j.Category.forcedLog(Category.java:372)
>         at org.apache.log4j.Category.log(Category.java:864)
>         at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.commons.logging.impl.Log4jProxy.log(Log4jProxy.java:288)
>         at org.apache.commons.logging.impl.Log4jProxy.debug(Log4jProxy.java:235)
>         at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:84)
>         at org.hibernate.jdbc.AbstractBatcher.log(AbstractBatcher.java:393)
>         at
> org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:474)
>         at
> org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:415)
>         at
> org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
>         at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1560)
>         at org.hibernate.loader.Loader.doQuery(Loader.java:661)
>         at
>
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
>         at org.hibernate.loader.Loader.doList(Loader.java:2144)
>         at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
>         at org.hibernate.loader.Loader.list(Loader.java:2023)
>         at
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)
>         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)



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

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


Mime
View raw message