-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Behavior on uncaught exception is different between -C panic=abort and -C panic=unwind #33812
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
To be clear, I think this should read "and the program calls |
I'm not sure I understand what this issue is about, unfortunately. The information about stack traces above seems irrelevant, and otherwise it seems obvious that the behavior of a panic changes when you change the panic runtime? Panicking with |
I'd really prefer if we called |
Call |
@briangreenery Of course |
In any case as I mentioned before the behavior of If there's something Windows-specific that should happen here, it would be best to open a new issue. |
I opened a separate issue for that #34502 |
When a program compiled with
-C panic=abort
panicks, the stack trace is printed and an illegal instruction is triggered (with theud2
opcode).When a program compiled with
-C panic=unwind
doesn't catch a panic in the main thread, the stack trace is printed and the program aborts.I don't have any strong opinion in favor of triggering an illegal instruction vs aborting, but I think the behavior should be the same between
panic=abort
andpanic=unwind
.The text was updated successfully, but these errors were encountered: