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

BLBackTrace: Check for addr2line in path first #4079

Merged
merged 4 commits into from
Aug 14, 2024

Conversation

mirenradia
Copy link
Contributor

Summary

This fixes #4077 by first checking if addr2line or eu-addr2line is in the PATH first and then falls back to /usr/bin/addr2line or /usr/bin/eu-addr2line if not.

Additional background

See #4077 for why using the hardcoded path is a problem.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

Also alphabetize some of the includes. This fixes AMReX-Codes#4077.
This would probably work on macOS but it's not currently used there.
Copy link
Member

@WeiqunZhang WeiqunZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could we use 4 spaces for indentation?

Src/Base/AMReX_BLBackTrace.cpp Outdated Show resolved Hide resolved
Src/Base/AMReX_BLBackTrace.cpp Outdated Show resolved Hide resolved
@WeiqunZhang WeiqunZhang merged commit 6890ce0 into AMReX-Codes:development Aug 14, 2024
71 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hardcoded path to addr2line or eu-addr2line in BLBackTrace
2 participants