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

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

XMLWordPrintable

    • sparc
    • solaris_2.6

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: