RFR: 8370176: Mixed mode jhsdb jstack cannot unwind call stack with -Xcomp [v2]

Yasumasa Suenaga ysuenaga at openjdk.org
Tue Oct 28 01:45:03 UTC 2025


On Mon, 27 Oct 2025 04:37:59 GMT, Fei Yang <fyang at openjdk.org> wrote:

>> I updated testcase again. It is more scalable for other mixed jstack tests. It works fine on both Fedora 43 and Ubuntu 22.04 .
>
> Still fails on other distros like Debian 13 on AMD64. It has glibc version 2.41. Attached please fine the JTR file.
> 
> [TestJhsdbJstackMixedWithXComp.jtr.txt](https://github.com/user-attachments/files/23156708/TestJhsdbJstackMixedWithXComp.jtr.txt)

@RealFYang Thanks a lot for sharing JTR file!

I could find out the problem, and I fixed. We need to handle `RSP` more carefully when parsing DWARF. This PR works fine on Fedora 43 and Ubuntu 22. I believe it works on your Debian/Ubuntu.

But I think the failure what you saw on AArch64 is caused by problem(s) on stack unwinder for Linux AArch64, it is different from AMD64. Currently DWARF is supported on Linux AMD64 only, other platforms would attempt to unwind relies on base pointer. It is traditional, but it might not work on DWARF based binaries. I saw DWARF is contained in AArch64 binary in Fedora Rawhide for AArch64 at least. So the test added by this PR might not work on other platforms includes AArch64, RISC-V. Thus I removed them from `@requires` in the test. I think we can enable them if the unwinder (e.g. LinuxAARCH64CFrame.java) supports DWARF, but it is not a scope of this bug.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27885#discussion_r2467601947


More information about the serviceability-dev mailing list