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

Core dumped when exporting a native KERBEROS_V5_PRINCIPAL_NAME GSSName on Solaris 5.8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 6u32
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description

      The code below always fails on Solaris 5.8 with jdk6u

          System.setProperty("sun.security.jgss.native", "true");
          System.setProperty("sun.security.nativegss.debug", "true");
          GSSManager man = GSSManager.getInstance();
          GSSName name = man.createName("me@R", new Oid("1.2.840.113554.1.2.2.1");
          new HexDumpEncoder().encodeBuffer(name.export(), System.out);

      showing a crash after

          SunNativeGSS: [GSSLibStub_canonicalizeName] 135514352

      C [libc.so.1+0x1cfa4] memcpy+0x14
      C [mech_krb5.so+0x1148d] krb5_gss_import_name+0x131
      C [libgss.so+0x6599] __gss_import_internal_name+0x39
      C [libgss.so+0x7b61] gss_canonicalize_name+0x175
      C [libj2gss.so+0x32fa] Java_sun_security_jgss_wrapper_GSSLibStub_canonicalizeName+0x8a
      C [libj2gss.so+0x33e5] Java_sun_security_jgss_wrapper_GSSLibStub_exportName+0x95
      j sun.security.jgss.wrapper.GSSLibStub.exportName(J)[B+0

      This does not happen on Solaris 5.10.

        Attachments

          Activity

            People

            Assignee:
            igerasim Ivan Gerasimov
            Reporter:
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: