eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

Running `java -Xaot:` causes abort #20601

Open pshipton opened 1 hour ago

pshipton commented 1 hour ago

If you run java -Xaot: it causes an abort. Normally you'd get diagnostic files. If running with -Xdump:none you don't get the OpenJ9 diagnostics, but still get a core file.

java -Xdump:none -Xaot:
JVMJ9VM015W Initialization error for library j9jit29(11): no arguments for -Xaot:
Aborted (core dumped)

This is related to the testCompilerArguments functional test. The test doesn't fail, but does produce a core file, and may timeout.

22:54:13  Testing: Check empty -Xaot:
22:54:13  Test start time: 2024/11/15 03:35:38 Coordinated Universal Time
22:54:13  Running command: "/home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_ppc64_aix_Nightly_testList_1/jdkbinary/j2sdk-image/bin/java"   -Xdump:none -Xaot: -version
22:54:13  Time spent starting: 5 milliseconds
22:54:45  ***[TEST INFO 2024/11/15 03:36:08] destroy test process after timeout***
22:54:45  Time spent executing: 30038 milliseconds
22:54:45  ***[TEST INFO 2024/11/15 03:36:08] java.lang.IllegalThreadStateException: process hasn't exited***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at java.base/java.lang.ProcessImpl.exitValue(ProcessImpl.java:452)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at Test.run(Test.java:259)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at TestSuite.runTest(TestSuite.java:84)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at TestIterator.addTest(TestIterator.java:84)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at TestConfigParser$TestConfigDocumentHandler.xmlEndElement(TestConfigParser.java:309)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at com.oti.j9.exclude.XMLParser._scan_element_close(XMLParser.java:370)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at com.oti.j9.exclude.XMLParser._scan_element_or_instruction(XMLParser.java:391)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at com.oti.j9.exclude.XMLParser.parseXML(XMLParser.java:442)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at com.oti.j9.exclude.XMLParser.parse(XMLParser.java:470)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at com.oti.j9.exclude.XMLParser.parse(XMLParser.java:459)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at TestConfigParser.runTests(TestConfigParser.java:78)***
22:54:45  ***[TEST INFO 2024/11/15 03:36:08]    at MainTester.main(MainTester.java:106)***
pshipton commented 1 hour ago

@hzongaro is the abort intentional?

github-actions[bot] commented 1 hour ago

Issue Number: 20601 Status: Open Recommended Components: comp:test, comp:gc, comp:vm Recommended Assignees: pshipton, jasonfengj9, keithc-ca