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

WHILE USING JNDI, it goes to DEADLOCK and dumps CORE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.4.2_06
    • Fix Version/s: 1.4.2_06
    • Component/s: core-libs
    • Labels:

      Description

      This was seen last worked in 1.3.1_08. Testcase is attached.

      While usig JNDI and uploadig some entries on to LDAP Server(Operation is similar to ldapadd using JNDI), we got the core dump as pasted below:

      Exception Is Pasted Below:
      ===========================
      com.sun.jndi.ldap.LdapName$TypeAndValue.getUnescapedValue(LdapName.java:730)
              at com.sun.jndi.ldap.LdapName$Rdn.toAttributes(LdapName.java:650)
              at com.sun.jndi.ldap.LdapCtx.addRdnAttributes(LdapCtx.java:891)
              at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:769)
              at
       com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:31)
              at
       com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(
       PartialCompositeDirContext.java:248)
              at
       com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(
       PartialCompositeDirContext.java:236)
              at
       javax.naming.directory.InitialDirContext.createSubcontext(InitialDirC
       ontext.java:176)
      oracle.mail.install.ESDSInstallLDIFLoader.loadLDIF(ESDSInstallLDIFLoa
       der.java:138)
              at
       oracle.mail.install.ESDSInstallComputersConfig.validateAndCreate(ESDS
       InstallComputersConfig.java:70)
              at
       oracle.mail.install.ESDSInstallComputersConfig.main(ESDSInstallComput
       ersConfig.java:97)
       .
       "VM Thread" prio=5 tid=0x002e2dc0 nid=0xcb4 runnable
       .
       "VM Periodic Task Thread" prio=10 tid=0x002feed0 nid=0xba0 waiting on
       condition
       .
       "Suspend Checker Thread" prio=10 tid=0x002a35e0 nid=0xce4 runnable

      =========================================================================
      java -version
          java version "1.4.2_04"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
          Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
      =========================================================================

       Here is the complete thread dump:-
       ==================================
       Full thread dump Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode):
       .
       "Thread-2" daemon prio=5 tid=0x1866f0f0 nid=0x630 runnable [18d9f000..18d9fd88]
              at java.net.SocketInputStream.socketRead0(Native Method)
              at java.net.SocketInputStream.read(SocketInputStream.java:129)
              at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
              at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
              at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
              - locked <0x105db730> (a java.io.BufferedInputStream)
              at com.sun.jndi.ldap.Connection.run(Connection.java:780)
              at java.lang.Thread.run(Thread.java:534)
       .
       "Thread-1" daemon prio=5 tid=0x1837aab8 nid=0xbc4 runnable [18d5f000..18d5fd88]
              at java.net.SocketInputStream.socketRead0(Native Method)
              at java.net.SocketInputStream.read(SocketInputStream.java:129)
              at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
              at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
              at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
              - locked <0x105dc830> (a java.io.BufferedInputStream)
              at com.sun.jndi.ldap.Connection.run(Connection.java:780)
              at java.lang.Thread.run(Thread.java:534)
       .
       "Signal Dispatcher" daemon prio=10 tid=0x002a4348 nid=0xcc4 runnable [0..0]
       .
       "Finalizer" daemon prio=9 tid=0x002a13c0 nid=0x524 in Object.wait() [1816f000..1816fd88]
              at java.lang.Object.wait(Native Method)
              - waiting on <0x10503310> (a java.lang.ref.ReferenceQueue$Lock)
              at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
              - locked <0x10503310> (a java.lang.ref.ReferenceQueue$Lock)
              at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
              at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
       .
       "Reference Handler" daemon prio=10 tid=0x0029ff78 nid=0xc14 in Object.wait() [1812f000..1812fd88]
              at java.lang.Object.wait(Native Method)
              - waiting on <0x10503378> (a java.lang.ref.Reference$Lock)
              at java.lang.Object.wait(Object.java:429)
              at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
              - locked <0x10503378> (a java.lang.ref.Reference$Lock)
       .
       "main" prio=5 tid=0x002343f0 nid=0xbf8 waiting on condition [6f000..6fc3c]
              at
       com.sun.jndi.ldap.LdapName$TypeAndValue.unescapeValue(LdapName.java:870)
      ###@###.### 10/29/04 21:32 GMT
      ###@###.### 10/29/04 21:35 GMT
      ###@###.### 11/2/04 21:56 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sseligmasunw Scott Seligman (Inactive)
              Reporter:
              mmma Marvin Ma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: