-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Calling std::abort()
yields unusable stacktrace in Windows 10 Release builds
#1126
Comments
An |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Description
Calling
std::abort()
yields unusable stacktrace in Windows 10 Release buildsWhen does the problem happen
Environment
/MD
/DEBUG
/O2
+/Ob2
Steps To Reproduce
When run in Release build, this code yields a mostly unusable and seemingly incorrect stack trace:

The same code with

throw std::runtime_error("abort")
instead ofstd::abort()
yields a usable stack trace:In Debug build, both types of errors yield a usable stack trace
Our Runtime Library flag is
/MD
in the Release build and/MDd
in Debug buildLog output
The text was updated successfully, but these errors were encountered: