JDK21/riscv64 failure in `serviceability/sa/TestJhsdbJstackMixed.java`
- Dominant language
- HTML
- Stars
- 155
- Forks
- 346
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
This test failed in the automation during the [July 2025 release cycle](https://github.com/adoptium/aqa-tests/issues/6421#issuecomment-3078075380).
I was able to get it to work by copying `libNoFramePointer.so` from the `testimage` archive to `/usr/java/packages/lib` although that is not a location which the jenkins user is able to write to (other locations, also not writable by jenkins, are shows in the error message).
Noting that adding a different location to `LD_LIBRARY_PATH` does not allow it to pass.
Also noting that running under `strace` will cause a failure:
```
Caused by: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 307064: Operation not permitted
[...]
java.lang.RuntimeException: 'NoFramePointerJNIFib' missing from stdout/stderr
```
Reproduce with `make _hotspot_custom HOTSPOT_CUSTOM_TARGET=serviceability/sa/TestJhsdbJstackMixed.java` once you've run a compilation of tests with `BUILD_LIST=openjdk`
Contributor guide
Research direction
Start with serviceability/sa/TestJhsdbJstackMixed.java and reproduce using `make _hotspot_custom HOTSPOT_CUSTOM_TARGET=serviceability/sa/TestJhsdbJstackMixed.java` after compiling tests with `BUILD_LIST=openjdk`. Review the failure around `libNoFramePointer.so`, `/usr/java/packages/lib`, `LD_LIBRARY_PATH`, and ptrace on JDK 21/riscv64. Done means the test passes for the Jenkins user without relying on an unwritable location and the reported output is no longer produced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- operating-systems, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100