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

JVM crashes with signal 11 (SEGV) when null passed to getStringUTFChars

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description

      When passing a Java null as a jstring parameter to a native method,
      and then attempting to use getStringUTFChars on that parameter results
      in a VM crash (SEGV), with no core dump.

      getStringUTFChars should at least trap null as an entry condition and
      handle it in some way, rather than allowing the VM to take a SEGV.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            twatson Trevor Watson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: