Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile JitDump from crashed PC for application thread crashes #12311

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

fjeremic
Copy link
Contributor

The stack walker may not be able to walk the stack if the crash did
not happen on a transition frame. In such cases the stack walker
will resume walking the stack on the last known valid point, which
will be a transition frame further up the stack (ex. INT -> JIT
transition frame). This will result in the stack walker potentially
skipping some JIT methods on the backtrace. This is not desirable.
Chances are high that the crash happen because of a miscompilation
in the first JIT compiled method on the stack, so it is imperative
that we recompile the method we actually crashed in.

Signed-off-by: Filip Jeremic [email protected]

The stack walker may not be able to walk the stack if the crash did
not happen on a transition frame. In such cases the stack walker
will resume walking the stack on the last known valid point, which
will be a transition frame further up the stack (ex. INT -> JIT
transition frame). This will result in the stack walker potentially
skipping some JIT methods on the backtrace. This is not desirable.
Chances are high that the crash happen because of a miscompilation
in the first JIT compiled method on the stack, so it is imperative
that we recompile the method we actually crashed in.

Signed-off-by: Filip Jeremic <[email protected]>
@fjeremic
Copy link
Contributor Author

Suggesting @dsouzai for review. @VermaSh FYI this fixes the reason why a JitDump couldn't be generated for the unit test you described in #11531 (comment). After this fix I have verified the JitDump does get generated.

@fjeremic fjeremic mentioned this pull request Mar 26, 2021
23 tasks
@dsouzai
Copy link
Contributor

dsouzai commented Mar 29, 2021

jenkins test sanity zlinux jdk11

@dsouzai dsouzai self-assigned this Mar 29, 2021
@fjeremic
Copy link
Contributor Author

This one should be ready.

@dsouzai dsouzai merged commit 5efc43c into eclipse-openj9:master Mar 30, 2021
@fjeremic fjeremic deleted the jitdump-from-pc branch March 30, 2021 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants