JDK-8133775 : Some WebNode tests crash JVM
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u60,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2015-08-17
  • Updated: 2016-09-06
  • Resolved: 2016-03-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u102Fixed 9Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000134087b3e, pid=52303, tid=0x000000000000f807
#
# JRE version: Java(TM) SE Runtime Environment (9.0-b76) (build 1.9.0-ea-jigsaw-nightly-h3170-20150811-b76)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-ea-jigsaw-nightly-h3170-20150811-b76 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libjfxwebkit.dylib+0xe2db3e]  WTFCrash+0x3e
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/javafx/java-client-9-clean/open/tests/functional/WebNodeAutomated/hs_err_pid52303.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Comments
Added a bug(JDK-8151347) to cover the remaining methods in JSObject.
06-03-2016

Can one of you please file a follow-on JIRA to enhance the test for this case?
05-03-2016

I missed a case, it is not serious though. As of now unit test coverts only toString method, we need to cover other methods(setMember, getMember, call, eval,..etc) as well.
05-03-2016

Changeset: 96ccef04f86f Author: kcr Date: 2016-03-04 12:22 -0800 URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/96ccef04f86f 8133775: Some WebNode tests crash JVM Reviewed-by: arajkumar Contributed-by: a.ankit.srivastava@oracle.com
04-03-2016

lgtm
04-03-2016

Looks great. +1
04-03-2016

Review comment incorporated http://cr.openjdk.java.net/~asrivastava/8133775/webrev.02/
02-03-2016

lgtm with a nit: Test case name "testIllegalStateExceptionThrow" is too generic. I suggest to have a specific name like " testDOMObjectThreadOwnership" or something similar.
02-03-2016

WebRrev Submitted. http://cr.openjdk.java.net/~asrivastava/8133775/webrev.01
02-03-2016

Marked as regression as per Vadim's comment above.
08-09-2015

You are right: it should not crash the VM. I'll take a look at it unless Vadim has a Mac he can test on.
27-08-2015

Personally I think that it should never crash JVM. toString() method may check for the current thread and throw an exception when needed, for example. Although I don't think toString() is expected to throw an exception either :-(
27-08-2015

Standalone testcase attached
27-08-2015

I've found the problem. The tests gets instance of org.w3c.dom.Node or JSObject and invoked their toString() method on non-JavaFX thread. I have a fix for the tests to PASS but I'm curious whether this is expected to crash JVM?
27-08-2015

I'll try to create a standalone test case
27-08-2015

BTW, the tests pass on Windows
27-08-2015

Still getting the crash with 9-jigsaw-2015-08-26 # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000136ad29de, pid=76319, tid=0x000000000000f403 # # JRE version: Java(TM) SE Runtime Environment (9.0-b78) (build 1.9.0-ea-jigsaw-nightly-h3264-20150826-b78) # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-ea-jigsaw-nightly-h3264-20150826-b78, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64) # Problematic frame: # C [libjfxwebkit.dylib+0xe2e9de] WTFCrash+0x3e # # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/javafx/java-client-9-clean/open/tests/functional/WebNodeAutomated/hs_err_pid76319.log Main died. # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000135fb59de, pid=76308, tid=0x000000000000f303 # # JRE version: Java(TM) SE Runtime Environment (9.0-b78) (build 1.9.0-ea-jigsaw-nightly-h3264-20150826-b78) # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-ea-jigsaw-nightly-h3264-20150826-b78, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64) # Problematic frame: # C [libjfxwebkit.dylib+0xe2e9de] WTFCrash+0x3e # # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/javafx/java-client-9-clean/open/tests/functional/WebNodeAutomated/hs_err_pid76308.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
27-08-2015

This has nothing to do with jake, I reproduced this on 8u60, but not on 8u45.
27-08-2015

# # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000192b71b5e, pid=73592, tid=0x000000000000f807 # # JRE version: Java(TM) SE Runtime Environment (9.0-b77) (build 1.9.0-ea-jigsaw-nightly-h3257-20150825-b77) # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-ea-jigsaw-nightly-h3257-20150825-b77, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64) # Problematic frame: # C [libjfxwebkit.dylib+0xe2db5e] WTFCrash+0x3e # # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/javafx/java-client-9-clean/open/tests/functional/WebNodeAutomated/hs_err_pid73592.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
26-08-2015

I'm still having crashes with 9-jigasw-2015-08-25 on MacOS # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000012ba4cb5e, pid=73589, tid=0x000000000000f907 # # JRE version: Java(TM) SE Runtime Environment (9.0-b77) (build 1.9.0-ea-jigsaw-nightly-h3257-20150825-b77) # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-ea-jigsaw-nightly-h3257-20150825-b77, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64) # Problematic frame: # C [libjfxwebkit.dylib+0xe2db5e] WTFCrash+0x3e # # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/javafx/java-client-9-clean/open/tests/functional/WebNodeAutomated/hs_err_pid73589.log Main died. # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
26-08-2015

Do you have a standalone test case?
26-08-2015

The tests also report the following (to System.err): 1 0x12e66a32c JSC::throwStackOverflowError(JSC::ExecState*) 2 0x12e51f220 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) 3 0x12e64f16e JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) 4 0x12e6bd6e0 JSC::JSObject::defaultValue(JSC::JSObject const*, JSC::ExecState*, JSC::PreferredPrimitiveType) 5 0x12e6c212b JSC::JSObject::toString(JSC::ExecState*) const 6 0x12dfae536 Java_com_sun_webkit_dom_JSObject_toStringImpl 7 0x110bce631 8 0x110bc0e10 Phoning home... Using server: 10.161.186.18, port 4711
17-08-2015

Affected tests: WebNodeAutomated/com/sun/fx/webnode/tests/bridge/BridgeSimpleTest/testDOMObject WebNodeAutomated/com/sun/fx/webnode/tests/bridge/BridgeSimpleTest/testJSObject
17-08-2015

Test source: http://shaman.ru.oracle.com/hg/index.cgi/openjfx-9-clean/file/319996d67092/functional/WebNodeAutomated/test/com/sun/fx/webnode/tests/bridge/BridgeSimpleTest.java
17-08-2015