JDK-8206899 : DRT crashes randomly when running 'dom/html/level2/html/AppletsCollection.html'
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: openjfx11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-07-09
  • Updated: 2018-07-11
  • Resolved: 2018-07-11
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.
Other
openjfx11Fixed
Related Reports
Relates :  
Description
Run the DRT using the following command,

bash run.sh --tests "dom/html/level1/core dom/html/level2/html/AppletsCollection.html"

# 
# A fatal error has been detected by the Java Runtime Environment: 
# 
# SIGSEGV (0xb) at pc=0x00000001049d0d16, pid=57756, tid=0x0000000000000307 
# 
# JRE version: Java(TM) SE Runtime Environment (8.0_181-b98) (build 1.8.0_181-b98) 
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b98 mixed mode bsd-amd64 compressed oops) 
# Problematic frame: 
# V [libjvm.dylib+0x3d0d16] LinkResolver::resolve_invokeinterface(CallInfo&, Handle, constantPoolHandle, int, Thread*)+0x100 
# 
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again 
# 
# If you would like to submit a bug report, please visit: 
# http://bugreport.java.com/bugreport/crash.jsp 
# 
Comments
changeset: 7994b7b41c83 user: arajkumar date: Wed Jul 11 10:53:00 2018 +0530 description: 8206899: DRT crashes randomly when running 'dom/html/level2/html/AppletsCollection.html' Reviewed-by: mbilla, kcr URL: http://hg.openjdk.java.net/openjfx/jfx-dev/rt/rev/7994b7b41c83
11-07-2018

+1
10-07-2018

+1
10-07-2018

Root-cause: Problem is due to the following statement in `void PluginWidgetJava::updatePluginWidget()` jobject obj = platformWidget(); platformWidget method returns temporary JGObject as a value and it���s life time is restricted with in the same line. Proposed solution: Change the `obj` type to JLObject, so that it will hold the ref object as local variable in the function scope. JLObject obj = platformWidget(); webrev: http://cr.openjdk.java.net/~arajkumar/8206899/webrev
09-07-2018