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 47740] log4j 1.2.15 deadlock RootAppender NDC
Date Fri, 09 Oct 2009 05:12:31 GMT

Curt Arnold <carnold@apache.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |NEEDINFO

--- Comment #1 from Curt Arnold <carnold@apache.org> 2009-10-08 22:12:28 PDT ---
Looked at the stack trace and looks like there is contention on Hashtable
0x0000002aa16b5fb8, but I've got no obvious reason why anything would be
deadlocking on it.

However, there is a weird mix of internal and external synchronization on the
ht variable.  Note the initial comment that synchronized is not used in this
class, but then it appears in lazyRemove, but lazyRemove does not appear in
your thread dumps.

I'd look for any reports on synchronization issues with HashTable on your JVM.

If you are willing to experiment and know how to reproduce them problem,
rewrite NDC using externally synchronized HashMap's.  If that fixes the
problem, we may migrate to that approach.

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-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message