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

HPX_ASSERT problem #2368

Closed
stevenrbrandt opened this issue Oct 24, 2016 · 4 comments
Closed

HPX_ASSERT problem #2368

stevenrbrandt opened this issue Oct 24, 2016 · 4 comments

Comments

@stevenrbrandt
Copy link
Member

When running this modified intersim benchmark against these modified composable guard files, something strange happens. The HPX_ASSERT(false) on line 113 allows the program to continue running, bypassing the abort() on line 114. This happens for RelWithDebugInfo, but not Debug. The breakme() function is there to give gdb an easy target to attach to.

HPX_ASSERT.zip

@sithhell
Copy link
Member

RelWithDebinfo has asserts disabled. It only includes dwarf symbols. To
allow for debuggers to attach you can use hpx::util::attach_debugger
defined in
https://github.com/STEllAR-GROUP/hpx/blob/master/hpx/util/command_line_handling.hpp

Am 24.10.2016 9:12 nachm. schrieb "Steven R. Brandt" <
notifications@github.com>:

When running this modified intersim benchmark against these modified
composable guard files, something strange happens. The HPX_ASSERT(false) on
line 113 allows the program to continue running, bypassing the abort() on
line 114. This happens for RelWithDebugInfo, but not Debug. The breakme()
function is there to give gdb an easy target to attach to.

HPX_ASSERT.zip
https://github.com/STEllAR-GROUP/hpx/files/548730/HPX_ASSERT.zip


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2368, or mute the thread
https://github.com/notifications/unsubscribe-auth/AADRlyXqo1b0TEoC9aD7hJJfzH_9P4dYks5q3QMugaJpZM4KfK7Q
.

@stevenrbrandt
Copy link
Member Author

Except that the assert does do something, even though it's supposed to be disabled in that mode. Note above, the HPX_ASSERT(false) causes the code to bypass the abort() on the next line.

@hkaiser
Copy link
Member

hkaiser commented Nov 8, 2016

@stevenrbrandt I can't reproduce your problem, sorry. Could you give a more precise description of how to reproduce it?

@hkaiser hkaiser modified the milestones: 1.0.0, 1.1.0 Apr 23, 2017
@hkaiser
Copy link
Member

hkaiser commented Oct 12, 2017

I'll close this as being resolved. Please feel free to reopen if the problem persists.

@hkaiser hkaiser closed this as completed Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants