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

Deadlock in jndi ldap when removing naming listeners from LdapCtx

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux myhost.com 2.6.18-348.16.1.el5 #1 SMP Wed Aug 21 04:00:25 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      Invoking com.sun.jndi.ldap.LdapCtx.removeNamingListener from the application code causes a deadlock with the system thread which which invokes com.sun.jndi.ldap.Connection.cleanup


      ADDITIONAL REGRESSION INFORMATION:
      java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      "MIReportScheduler_Worker-2":
      at com.sun.jndi.ldap.LdapClient.removeUnsolicited(LdapClient.java:1498)
      - waiting to lock <0x00000006a94535c8> (a java.util.Vector)
      at com.sun.jndi.ldap.LdapCtx.removeUnsolicited(LdapCtx.java:3513)
      - locked <0x00000006a9453608> (a com.sun.jndi.ldap.EventSupport)
      at com.sun.jndi.ldap.LdapCtx.removeNamingListener(LdapCtx.java:3401)
      at com.mi.ldap.DirectoryContext.freeEventListener(DirectoryContext.java:639)

       "Thread-10204":
      at com.sun.jndi.ldap.LdapCtx.fireUnsolicited(LdapCtx.java:3529)
      - waiting to lock <0x00000006a9453608> (a com.sun.jndi.ldap.EventSupport)
      at com.sun.jndi.ldap.LdapClient.notifyUnsolicited(LdapClient.java:1574)
      at com.sun.jndi.ldap.LdapClient.processConnectionClosure(LdapClient.java:504)
      - locked <0x00000006a94535c8> (a java.util.Vector)
      at com.sun.jndi.ldap.Connection.cleanup(Connection.java:693)
      at com.sun.jndi.ldap.Connection.run(Connection.java:992)
      at java.lang.Thread.run(Thread.java:744)


      REPRODUCIBILITY :
      This bug can be reproduced often.

            psonal Pallavi Sonal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: