JDK-7154876 : com/sun/jdi tests can fail when a background thread throws exceptions
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 7u4,8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2012-03-19
  • Updated: 2017-11-29
  • Resolved: 2017-11-29
Related Reports
Relates :  
Description
The test:
com/sun/jdi/ExceptionEvents.java
Can fail when a background thread (such as Flight Recorder) throws exceptions since the test is testing for no unexpected exceptions.

The failure is difficult to reproduce but looking at the test sources it is clear that "oracle.*" and "com.oracle.*" should be added to the already existing exclude list.

Failure:
java.lang.Exception: ExceptionEvents(... StackOverflow...) FAILED ... tests!
	at ExceptionEvents.summarize(ExceptionEvents.java:229)
	at ExceptionEvents.main(ExceptionEvents.java:210)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:722)

Comments
We agreed to avoid running the JDI and JVMTI tests with the JFR. So that I'm closing this bug as WNF.
29-11-2017

RULE com/sun/jdi/RedefineCrossEvent.java Exception java.lang.Exception: ExceptionEvents(C N StackOverflowCaughtTarg) FAILED ... tests!
15-07-2015

ILW=MLH=P4, Lacking test coverage, only happens with JFR, no known workaround.
11-10-2013