JDK-8010939 : Deadlock in LogManager
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Affected Version: 7u13,7u17,8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-03-27
  • Updated: 2013-11-18
  • Resolved: 2013-04-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u51Fixed 7u25Fixed 8 b89Fixed
Related Reports
Relates :  
Description
Running NetBeans tests with JDK 7u17 reveals a deadlock in LogManager. See the attached dump.

See related NetBeans bug at
http://netbeans.org/bugzilla/show_bug.cgi?id=227981

Comments
verified in b92
2013-06-08

Based on the nightly test run results SQE is OK to take the fix into the June CPU.
2013-05-13

GL 4.0 has just run into this deadlock in their upcoming July release. We'd like to make this fix available sooner since August release would be too late.
2013-05-09

original changeset commit record : HG Updates added a comment - 2013-04-20 07:27 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e8f1dc6d0c0c User: mchung Date: 2013-04-20 06:24:29 +0000
2013-04-24

Skimmed on the deadlock stack trace and the call to manager.drainLoggerRefQueueBounded() should be moved out from LoggingContext.addLocalLogger to LogManager.addLogger after the null name check.
2013-04-12

According to JDK-8000542, the backport happened in 7u13. E.g. as a workaround for frequent deadlocks that NetBeans testing infrastructure is facing we can downgrade the JDK to anything older than 7u13...
2013-04-03

The broken code that deadlocks is result of following commit (into JDK8 tree): 6737:d1668eca22bf - mchung Nov 27, 2012 6664509: Add logging context 6664528: Find log level matching its name or value given at construction time Reviewed-by: alanb, ahgross, jgish, hawtin It is not present in JDK7_u07 - it has been backported later.
2013-04-03