JDK-8031693 : Two nsk/hprof/options/cpu failed with Stack Overflow in JFR on Linux-amd64 in Promotion testing of JDK8 b123
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: hs24,hs25,8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2014-01-14
  • Updated: 2014-10-15
  • Resolved: 2014-04-30
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 7 JDK 8 JDK 9
7u72Fixed 8u20 b13Fixed 9Fixed
Description
Two of the nsk/hprof/options/cpu tests (006 and 008) failed in Promotion testing of JDK8 b123. There sems to have occurred some kind of vicious cycle of exceptions causing exceptions until the stack gets full: 

Exception in thread "main" java.lang.StackOverflowError
	at com.oracle.jrockit.jfr.InstantEvent.<init>(InstantEvent.java:106)
	at jdk.jfr.events.ExceptionThrownEvent.<init>(ExceptionThrownEvent.java:18)
	at oracle.jrockit.jfr.jdkevents.ThrowableTracer.traceThrowable(ThrowableTracer.java:58)
	at java.lang.Throwable.<init>(Throwable.java:251)
	at java.lang.Exception.<init>(Exception.java:54)
	at java.lang.RuntimeException.<init>(RuntimeException.java:51)
	at java.lang.NullPointerException.<init>(NullPointerException.java:60)
	at com.oracle.jrockit.jfr.InstantEvent.<init>(InstantEvent.java:106)
	at jdk.jfr.events.ExceptionThrownEvent.<init>(ExceptionThrownEvent.java:18)
	at oracle.jrockit.jfr.jdkevents.ThrowableTracer.traceThrowable(ThrowableTracer.java:58)
	at java.lang.Throwable.<init>(Throwable.java:251)
	at java.lang.Exception.<init>(Exception.java:54)
	at java.lang.RuntimeException.<init>(RuntimeException.java:51)
	at java.lang.NullPointerException.<init>(NullPointerException.java:60)
	at com.oracle.jrockit.jfr.InstantEvent.<init>(InstantEvent.java:106)
	at jdk.jfr.events.ExceptionThrownEvent.<init>(ExceptionThrownEvent.java:18)
	at oracle.jrockit.jfr.jdkevents.ThrowableTracer.traceThrowable(ThrowableTracer.java:58)
	at java.lang.Throwable.<init>(Throwable.java:251)
	at java.lang.Exception.<init>(Exception.java:54)
	at java.lang.RuntimeException.<init>(RuntimeException.java:51)
	at java.lang.NullPointerException.<init>(NullPointerException.java:60)
	at com.oracle.jrockit.jfr.InstantEvent.<init>(InstantEvent.java:106)
	at jdk.jfr.events.ExceptionThrownEvent.<init>(ExceptionThrownEvent.java:18)
	at oracle.jrockit.jfr.jdkevents.ThrowableTracer.traceThrowable(ThrowableTracer.java:58)
...

repeating ad absurdum.

Unfortunately, there are no core files or Flight recordings available.

Priority justification:
ILW = MMM => P3 (tentative)

Link to failure:
http://vmsqe-app.russia.sun.com/surl/6y

Link to test history:
http://vmsqe-app.russia.sun.com/surl/6z

Matching rule:
RULE nsk/hprof/options/cpu/cpu006 Exception java.lang.StackOverflowError 
RULE nsk/hprof/options/cpu/cpu008 Exception java.lang.StackOverflowError 

Comments
SQE is ok to take the fix in PSU14_04.
29-05-2014

Release team: Approved for deferral.
21-01-2014

8-defer-request-justification: Checked the source code and the issue exists in jdk7u, but no bug reports has been filed and JFR has been out for several months, which is an indication that the race is unlikely. There is a reasonable workaround and the change is in a critical path (which makes it somewhat risky to fix) Target: 7u, 8u, 9
19-01-2014

I = High, JVM doesnt start L = Medium, only happens with JFR at JVM startup and if race occurs W= Low, try to restart JVM again HML => P2 Easy to fix, change two lines of code. Risk: Medium. .
14-01-2014

VM Flags used in failing runs: -Xcomp -Xcomp -server -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true -XX:+UseG1GC
14-01-2014