JDK-8253437 : runtime/cds/appcds/jigsaw/modulepath/ModulePathAndCP_JFR.java failed with "exitValue = -1073741819"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 16,17
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86_64
  • Submitted: 2020-09-21
  • Updated: 2025-01-20
  • Resolved: 2025-01-17
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 20
20Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8259719 :  
Description
The following test failed in the JDK16 CI:

runtime/cds/appcds/jigsaw/modulepath/ModulePathAndCP_JFR.java

Here's a snippet from the log file:

[5.773s][debug][class,load]  klass: 0x0000000800bf6370 super: 0x000000080012fae8 loader: [loader data: 0x000001efd5d3e0f0 of 'bootstrap'] bytes: 1275 checksum: 3d94f5c9
[5.777s][info ][class,load] java.nio.file.Files$3 source: jrt:/java.base
[5.777s][debug][class,load]  klass: 0x0000000800bf67c0 super: 0x0000000800010420 loader: [loader data: 0x000001efd5d3e0f0 of 'bootstrap'] bytes: 848 checksum: add6e476
[5.778s][info ][class,load] java.nio.file.FileVisitResult source: jrt:/java.base
[5.778s][debug][class,load]  klass: 0x0000000800bf69d0 super: 0x000000080012fae8 loader: [loader data: 0x000001efd5d3e0f0 of 'bootstrap'] bytes: 1182 checksum: 1615aa8e
];
 stderr: [java version "16-ea" 2021-03-16
Java(TM) SE Runtime Environment (fastdebug build 16-ea+17-752)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 16-ea+17-752, mixed mode, sharing)
]
 exitValue = -1073741819

java.lang.RuntimeException: Expected to get exit value of [0]

	at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:457)
	at jdk.test.lib.cds.CDSTestUtils$Result.assertNormalExit(CDSTestUtils.java:146)
	at ModulePathAndCP.run(ModulePathAndCP.java:127)
	at ModulePathAndCP_JFR.main(ModulePathAndCP_JFR.java:37)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
Comments
Ran 200 times on variety of Windows hosts (2016, 2019, 2022), could not reproduce. Closing as CNR. The corresponding entry will be removed from a problem list, see JDK-8303085: Runtime problem list cleanup
22-02-2023

Might be related to JDK-8259525 runtime/cds/appcds/CDSandJFR.java failed with "exitValue = -1073741819"
13-01-2021

ILW = MLM = P4
22-12-2020

Exit value -1073741819 = 0xC0000005 which usually implies access violation. I couldn't find any hs err log or mini dump from the test artifacts. From the Windows process list, it looks like virus scan was running: 0 2316 0 ? 17:21:25 C:\Program Files\Windows Defender\MsMpEng.exe Could the virus scan somehow affect the test run? e.g. it was scanning the jfr dump file at the same time?
18-12-2020

Unable to reproduce using mach5 after 25 runs on the same windows host from which the bug was observed with the following vm options: -XX:MaxRAMPercentage=3 -XX:+CreateCoredumpOnCrash -XX:+UseParallelGC -XX:+UseNUMA
28-09-2020

ILW = MLM = P4
22-09-2020

This failure mode has been spotted in a different test: JDK-8251849 jdk/jfr/startupargs/TestDumpOnExit.java failed with "exitValue = -1073741819" but I didn't want to add this failure sighting to the other bug just in case the causes are different.
21-09-2020