JDK-8345102 : [s390x/ppc] ShowRegistersOnAssertTest.java fails after 8343756
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: ppc,s390x
  • Submitted: 2024-11-27
  • Updated: 2025-03-19
  • Resolved: 2024-12-01
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 24
24 b27Fixed
Related Reports
Relates :  
Description
log: 
STDERR:
java.lang.NullPointerException
	at java.base/java.util.ArrayDeque.addLast(ArrayDeque.java:301)
	at java.base/java.util.ArrayDeque.add(ArrayDeque.java:492)
	at java.base/java.util.Collections.addAll(Collections.java:5870)
	at HsErrFileUtils.checkHsErrFileContent(HsErrFileUtils.java:130)
	at HsErrFileUtils.checkHsErrFileContent(HsErrFileUtils.java:71)
	at ShowRegistersOnAssertTest.do_test(ShowRegistersOnAssertTest.java:82)
	at ShowRegistersOnAssertTest.main(ShowRegistersOnAssertTest.java:91)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
	at java.base/java.lang.Thread.run(Thread.java:1447)
Comments
Changeset: 50b4cbd8 Branch: master Author: Amit Kumar <amitkumar@openjdk.org> Date: 2024-12-01 13:55:47 +0000 URL: https://git.openjdk.org/jdk/commit/50b4cbd8a4159a8657f4525e4023f3a498020493
01-12-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22427 Date: 2024-11-28 04:03:02 +0000
28-11-2024

opt is our config where we do not set fastdebug or slowdebug. In the configure log of it it shows : * Debug level: release * HS debug level: product
27-11-2024

I did run fastdebug build only. Actually that's a default-vm-mode on my system. Update: By "opt.", you mean "release-vm" right ? Or is it actually the optimized-vm-build you're talking about.
27-11-2024

> Is there any obvious difference between s390x/ppc error reporting. Looks like ppc took different codepath to report the failure. Not sure about that. The only thing I can say, we see the guarantee when testing with the fastdebug binaries, not with opt. Maybe you did not run (fast)debug ?
27-11-2024

Thanks for pointing it out :), i will update it for s390 and ppc. My guess is as change is not done for ppc so it fails there as well.
27-11-2024

The bug is here: https://github.com/openjdk/jdk/blob/eb0d1ce9487df000b4675901cc0d18f6a1c86348/test/hotspot/jtreg/runtime/ErrorHandling/ShowRegistersOnAssertTest.java#L73 "null" needs to be replaced for all platforms. The code currently only works for x86 and aarch64.
27-11-2024

[~mbaesken] did you saw this on SAP daily builds? I am not sure how if it is related to s390x or I could be unlucky.
27-11-2024

Is there any obvious difference between s390x/ppc error reporting. Looks like ppc took different codepath to report the failure.
27-11-2024

The test runtime/ErrorHandling/ShowRegistersOnAssertTest.java fails as well on Linux ppc64le, we run into this assertion (fastdebug build) : # Internal Error (/priv/jenkins/client-home/workspace/openjdk-jdk-linux_ppc64le-dbg/jdk/src/hotspot/share/utilities/vmError.cpp:2137), pid=20343, tid=20344 # guarantee(how == 0) failed: test guarantee # native stack : Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x1d5a68c] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x3fc (vmError.cpp:2137) V [libjvm.so+0xb21d78] report_vm_error(char const*, int, char const*, char const*, ...)+0xd8 (debug.cpp:196) V [libjvm.so+0x1d53bb8] VMError::controlled_crash(int)+0x188 (vmError.cpp:2137) V [libjvm.so+0x11a0178] JNI_CreateJavaVM+0x4b8 (jni.cpp:3630) C [libjli.so+0x66a0] JavaMain+0xd0 (java.c:1488) C [libjli.so+0xb6e8] ThreadJavaMain+0x18 (java_md.c:633) C [libc.so.6+0xb0044] start_thread+0x184
27-11-2024