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

JVM crashes in native code using native threads

    Details

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

      Description

      JVM crashes with the following error message when in callback from
      native code:
      Process killed by Signal 11

      I have a native method which is called from a thread in a Java object.
      This method does some work, and makes a callback to the calling object.
      This callback does not return until it has done some work, which may
      take some time.

      The callback method has a timeout in it, which basically says that if the
      work takes too long, then it returns to the native code anyway.
      It appears that the JVM dies when control returns back to the native code.

      This also happened when using green threads, which is why I switched to
      native threads, using the "-native" flag to java.

      The output from "java -version" is:

      java version "1.2fcs"
      Classic VM (build JDK-1.2fcs-O, green threads, sunwjit)

      I managed to get a core file by modifying the native code to
      set the SEGV signal handler back to SIG_DFL.

        Attachments

          Activity

            People

            • Assignee:
              sliangsunw Sheng Liang (Inactive)
              Reporter:
              twatson Trevor Watson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: