Skip to content

8382392: Mixed jstack does not work on Alpine#30815

Open
YaSuenag wants to merge 7 commits intoopenjdk:masterfrom
YaSuenag:sa-debug_frame-v2
Open

8382392: Mixed jstack does not work on Alpine#30815
YaSuenag wants to merge 7 commits intoopenjdk:masterfrom
YaSuenag:sa-debug_frame-v2

Conversation

@YaSuenag
Copy link
Copy Markdown
Member

@YaSuenag YaSuenag commented Apr 19, 2026

After JDK-8377946, we can see test failure on ClhsdbPstack.java. But the failure was happened before JDK-8377946 - test is passed, but we can see the exception and the function symbol was not been resolved. (You can see .jtr files in JBS)

DwarfParser should scan .eh_frame first. but .debug_frame should be scanned as fallback if target PC was not found in .eh_frame.

According to System V ABI for AMD64, frame information should be included in .eh_frame (See 6.3 Unwinding Through Assembler Code)

In musl C, I found out the discussion for .eh_frame vs .debug_frame: https://www.openwall.com/lists/musl/2021/07/17/13
musl C does not seem to want to support .eh_frame - they seem to want to use .debug_frame for stack unwinding in debugging. But it could be different from ABI spec in above.

This PR is not small, but commit history might help to review.

Note that all of mixed jstack tests have been disabled on Alpine (musl C) since JDK-8382327. They are re-enabled in this PR.



Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8382392: Mixed jstack does not work on Alpine (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/30815/head:pull/30815
$ git checkout pull/30815

Update a local copy of the PR:
$ git checkout pull/30815
$ git pull https://git.openjdk.org/jdk.git pull/30815/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 30815

View PR using the GUI difftool:
$ git pr show -t 30815

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30815.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Apr 19, 2026

👋 Welcome back ysuenaga! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 19, 2026

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk Bot added the serviceability serviceability-dev@openjdk.org label Apr 19, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 19, 2026

@YaSuenag The following label will be automatically applied to this pull request:

  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Apr 19, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Apr 19, 2026

Webrevs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rfr Pull request is ready for review serviceability serviceability-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

1 participant