-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Improve logging of abort #52633
Copy link
Copy link
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Type
Fields
Give feedbackNo fields configured for issues without a type.
While trying to debug #52629, I've hit an
abort()condition when anArccount wrapped around (it was being dropped twice). At least on macOS it causes the following message to be printed when testing:To me this doesn't say that the process was aborted, in fact I though this was a problem with the code being generated. Only after running the code with lldb did I find out that this was actually caused by a call to
abort.So my suggestion is to add some minimal logging that the process was aborted, atleast in debug mode. Just a minimal "aborted process" would done. Maybe this needs a RFC, but I though to start small.
P.S: is the printed error message any better on other Oses?