JDK-8168934 : [TESTBUG] gc/g1/logging/TestG1LoggingFailure.java failed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-10-31
  • Updated: 2017-07-26
  • Resolved: 2016-11-15
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 9
9 b150Fixed
Related Reports
Relates :  
Description
java.lang.RuntimeException: 'Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"' missing from stdout/stderr 

	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:134)
	at gc.g1.logging.TestG1LoggingFailure.startVM(TestG1LoggingFailure.java:69)
	at gc.g1.logging.TestG1LoggingFailure.main(TestG1LoggingFailure.java:61)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:537)
	at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
	at java.lang.Thread.run(java.base@9-internal/Thread.java:844)
Comments
I managed to reproduce the failure locally: I was running the small program (Alloc) from the test in a loop. One time out of ~20 000 java exited without any error message.
11-11-2016

Seems that ThreadGroup.uncaughtException fails with OOME in string concatenation and does not print anything: System.err.print("Exception in thread \"" + t.getName() + "\" "); e.printStackTrace(System.err);
10-11-2016

ILW=H (Breaking hotspot push), M (sometimes), H (none) -> P1
08-11-2016