-
Bug
-
Resolution: Fixed
-
P3
-
6u21, 7
-
b74
-
b143
-
generic
-
generic
-
Verified
A stress test running several logging tests hangs. One of threads has this stack trace:
JavaThread state: _thread_blocked
at java.util.logging.Logger.getLogger(Logger.java:300)
- waiting to lock <0xfffffd7f75925610> (a java.lang.Class for java.util.logging.Logger)
at java.util.logging.LoggingProxyImpl.getLogger(LoggingProxyImpl.java:40)
at sun.util.logging.LoggingSupport.getLogger(LoggingSupport.java:99)
at sun.util.logging.PlatformLogger$JavaLogger.<init>(PlatformLogger.java:516)
at sun.util.logging.PlatformLogger.newJavaLogger(PlatformLogger.java:155)
at sun.util.logging.PlatformLogger.redirectPlatformLoggers(PlatformLogger.java:146)
- locked <0xfffffd7f75f10e18> (a java.lang.Class for sun.util.logging.PlatformLogger)
at java.util.logging.LogManager$2.run(LogManager.java:289)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:284)
- locked <0xfffffd7f7a587110> (a java.util.logging.LogManager)
at java.util.logging.LogManager.getLogManager(LogManager.java:267)
at java.util.logging.Logger.<init>(Logger.java:247)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1101)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1098)
at java.util.logging.LogManager$1.run(LogManager.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:176)
at java.util.logging.Handler.<init>(Handler.java:50)
at javasoft.sqe.tests.api.java.util.logging.Handler.MyHandler.<init>(MyHandler.java:34)
at javasoft.sqe.tests.api.java.util.logging.Handler.LevelTests.Handler0005(LevelTests.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:613)
at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:406)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
at nsk.stress.share.StressTest$TestThread.runTest(StressTest.java:739)
at nsk.stress.share.StressTest$TestThread.run(StressTest.java:755)
JavaThread state: _thread_blocked
at java.util.logging.Logger.getLogger(Logger.java:300)
- waiting to lock <0xfffffd7f75925610> (a java.lang.Class for java.util.logging.Logger)
at java.util.logging.LoggingProxyImpl.getLogger(LoggingProxyImpl.java:40)
at sun.util.logging.LoggingSupport.getLogger(LoggingSupport.java:99)
at sun.util.logging.PlatformLogger$JavaLogger.<init>(PlatformLogger.java:516)
at sun.util.logging.PlatformLogger.newJavaLogger(PlatformLogger.java:155)
at sun.util.logging.PlatformLogger.redirectPlatformLoggers(PlatformLogger.java:146)
- locked <0xfffffd7f75f10e18> (a java.lang.Class for sun.util.logging.PlatformLogger)
at java.util.logging.LogManager$2.run(LogManager.java:289)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:284)
- locked <0xfffffd7f7a587110> (a java.util.logging.LogManager)
at java.util.logging.LogManager.getLogManager(LogManager.java:267)
at java.util.logging.Logger.<init>(Logger.java:247)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1101)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1098)
at java.util.logging.LogManager$1.run(LogManager.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:176)
at java.util.logging.Handler.<init>(Handler.java:50)
at javasoft.sqe.tests.api.java.util.logging.Handler.MyHandler.<init>(MyHandler.java:34)
at javasoft.sqe.tests.api.java.util.logging.Handler.LevelTests.Handler0005(LevelTests.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:613)
at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:406)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
at nsk.stress.share.StressTest$TestThread.runTest(StressTest.java:739)
at nsk.stress.share.StressTest$TestThread.run(StressTest.java:755)
- relates to
-
JDK-6882376 Add internal support for JRE implementation to eliminate the dependency on logging
- Resolved
-
JDK-7045594 fix for 6977677 introduced a ResourceBundle race
- Closed
-
JDK-7045441 locking analysis and other possible improvements for Logging API
- Open