Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-1326

Deadlock in PeriodicRunnable (side effect of OPENSSO-5377)

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.5.4, 10.0.0
    • 9.5.5, 10.0.1, 10.1.0-Xpress
    • other
    • None
    • Rank:
      1|hzn67z:

      Description

      The risk of deadlock increases if LDAPv3EventService removeListener/addListener was frequently invoked :

      "LDAPv3EventServicePolling" daemon prio=10 tid=0x00000000616b6800 nid=0x7f3a waiting for monitor entry [0x00000000421d5000]
      java.lang.Thread.State: BLOCKED (on object monitor)
      at com.sun.identity.common.PeriodicRunnable.removeElement(PeriodicRunnable.java:118)

      • waiting to lock <0x000000079e962148> (a java.util.HashSet)
      • locked <0x000000079e962158> (a java.util.HashSet)
        at com.sun.identity.idm.plugins.ldapv3.LDAPv3EventServicePolling.processResponse(LDAPv3EventServicePolling.java:207)
        at com.sun.identity.idm.plugins.ldapv3.LDAPv3EventService.run(LDAPv3EventService.java:589)
        at java.lang.Thread.run(Thread.java:662)

      "SystemTimer" prio=10 tid=0x0000000061164000 nid=0x3e7a waiting for monitor entry [0x0000000041f9c000]
      java.lang.Thread.State: BLOCKED (on object monitor)
      at com.sun.identity.common.PeriodicRunnable.addElement(PeriodicRunnable.java:93)

      • waiting to lock <0x000000079e962158> (a java.util.HashSet)
        at com.sun.identity.common.PeriodicGroupMap.put(PeriodicGroupMap.java:157)
      • locked <0x000000079e963168> (a java.util.Collections$SynchronizedMap)
        at com.sun.identity.idm.plugins.ldapv3.LDAPv3EventService.addListener(LDAPv3EventService.java:531)
      • locked <0x000000079e9621c8> (a com.sun.identity.idm.plugins.ldapv3.LDAPv3EventServicePolling)
        at com.sun.identity.idm.plugins.ldapv3.LDAPv3EventServicePolling$1.doGroupAction(LDAPv3EventServicePolling.java:114)
        at com.sun.identity.common.PeriodicGroupRunnable.doGroupAction(PeriodicGroupRunnable.java:76)
        at com.sun.identity.common.PeriodicGroupMap.run(PeriodicGroupMap.java:274)
      • locked <0x000000079e962148> (a java.util.HashSet)
      • locked <0x000000079e963168> (a java.util.Collections$SynchronizedMap)
        at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:430)

        Attachments

          Activity

            People

            sachiko Sachiko Wallace
            sachiko Sachiko Wallace
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: