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

Improve native stack traces on Linux #6345

Merged
merged 1 commit into from
Feb 9, 2022
Merged

Conversation

keithc-ca
Copy link
Member

Using dl_iterate_phdr(3) we can find the loaded program element containing a given address. When the absolute file name is available, we can then open the ELF shared library or executable to find the symbol table section and related string table section to derive a name and offset for that address.

Fixes: eclipse-openj9/openj9#7995.

@keithc-ca
Copy link
Member Author

jenkins build all

Using dl_iterate_phdr(3) we can find the loaded program element
containing a given address. When the absolute file name is
available, we can then open the ELF shared library or executable
to find the symbol table section and related string table section
to derive a name and offset for that address.

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@keithc-ca
Copy link
Member Author

Updated: can't declare local variable in for loop in C code.

@keithc-ca
Copy link
Member Author

jenkins build all

@keithc-ca
Copy link
Member Author

I don't think the riscv failure is related to this, in fact, the earlier build passed.

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

Successfully merging this pull request may close these issues.

No symbol names in javacore native callstack (backtrace) on Linux
2 participants