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

Fix: Backtraces will NULL Addresses #3502

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Aug 21, 2023

Summary

The handing of invalid stack addresses in backtraces was incomplete, failing to run for stack addresses down a nullptr address with the error:

sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `/usr/bin/addr2line -Cpfie /gpfs/alpine/aph114/proj-shared/huebl/2023-08-21_ms-debugging-rz/002_btd_patch_pr4208/./warpx.rz (nil)'
  • seen on Summit (OLCF)
  • tested to fix the issue

Additional background

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

The handing of invalid stack addresses in backtraces was incomplete,
failing to run for stack addresses down a nullptr address with the
error:
```
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `/usr/bin/addr2line -Cpfie /gpfs/alpine/aph114/proj-shared/huebl/2023-08-21_ms-debugging-rz/002_btd_patch_pr4208/./warpx.rz (nil)'
```
@ax3l ax3l added the bug label Aug 21, 2023
@WeiqunZhang WeiqunZhang merged commit e633084 into AMReX-Codes:development Aug 22, 2023
66 checks passed
@ax3l ax3l deleted the fix-backtrace-nullptrs branch August 22, 2023 01:23
@ax3l
Copy link
Member Author

ax3l commented Aug 22, 2023

@WeiqunZhang oops, I was not yet done testing this (see little check in PR description) :)

I think it might not write a Backtrace now at all 😅

@ax3l
Copy link
Member Author

ax3l commented Aug 22, 2023

Working on a patch... #3505

@ax3l ax3l mentioned this pull request Aug 22, 2023
6 tasks
WeiqunZhang pushed a commit that referenced this pull request Aug 22, 2023
Follow-up to #3502.
- [x] now tested :)
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