Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8132550

java/util/logging/LoggingDeadlock2.java times out

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Backports

        Description

        Found one Java-level deadlock:
        =============================
        "Thread-1":
          waiting to lock monitor 0x15d919e0 (object 0x0508e170, a java.util.logging.LogManager),
          which is held by "main"
        "main":
          waiting for ownable synchronizer 0x0508e460, (a java.util.concurrent.locks.ReentrantLock$NonfairSync),
          which is held by "Thread-1"

        Java stack information for the threads listed above:
        ===================================================
        "Thread-1":
        at java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:360)
        - waiting to lock <0x0508e170> (a java.util.logging.LogManager)
        at java.util.logging.LogManager$LoggerContext.requiresDefaultLoggers(LogManager.java:605)
        at java.util.logging.LogManager$LoggerContext.ensureInitialized(LogManager.java:647)
        at java.util.logging.LogManager$LoggerContext.getLoggerNames(LogManager.java:841)
        - locked <0x0508e308> (a java.util.logging.LogManager$SystemLoggerContext)
        at java.util.logging.LogManager.resetLoggerContext(LogManager.java:1363)
        at java.util.logging.LogManager.reset(LogManager.java:1353)
        at java.util.logging.LogManager$Cleaner.run(LogManager.java:282)
        "main":
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for <0x0508e460> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:870)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1199)
        at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:209)
        at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:285)
        at java.util.logging.LogManager.readConfiguration(LogManager.java:1450)
        at java.util.logging.LogManager.readConfiguration(LogManager.java:1307)
        at java.util.logging.LogManager$3.run(LogManager.java:442)
        at java.util.logging.LogManager$3.run(LogManager.java:439)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:439)
        - locked <0x0508e170> (a java.util.logging.LogManager)
        at java.util.logging.LogManager.access$800(LogManager.java:158)
        at java.util.logging.LogManager$2.run(LogManager.java:388)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:381)
        - locked <0x0508e170> (a java.util.logging.LogManager)
        at java.util.logging.LogManager.getLogManager(LogManager.java:421)
        at LoggingDeadlock2$JavaChild.main(LoggingDeadlock2.java:140)

        Found 1 deadlock.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dfuchs Daniel Fuchs
                Reporter:
                roland Roland Westrelin
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: