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

Better VM handling of unexpected exceptions from application native code

XMLWordPrintable

    • b06
    • generic, x86
    • windows, windows_xp
    • Not verified

        As reported in this openjdk discussion:

        http://mail.openjdk.java.net/pipermail/hotspot-dev/2010-June/003044.html

        A C++ exception that escapes from application native code back into the VM can lead to failure modes that are unexpected, and undesirable, for the user:

        Internal Error (os_windows_x86.cpp:114), pid=5024, tid=1848
        guarantee(result == EXCEPTION_CONTINUE_EXECUTION) failed: Unexpected result
        from topLevelExceptionFilter

        We should see if the VM can handle this condition more gracefully.
        CAP member is expecting the JRE to recover from native exceptions more gracefully.
        Crashing is obviously bad but so is the fact that the crash error message is very
        cryptic and does not help developers track the problem down to the source.
        Our own testing folk have added their voice to this bug. It seems that when we run tests on Windows via a networked drive any of the remote reads can potentially raise an exception. When that happens we get the VM crash:

        guarantee(result == EXCEPTION_CONTINUE_EXECUTION) failed: Unexpected result from topLevelExceptionFilter

              zgu Zhengyu Gu
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: