Skip to content

Improve logging of abort #52633

Closed
Closed
@Thomasdezeeuw

Description

@Thomasdezeeuw

While trying to debug #52629, I've hit an abort() condition when an Arc count wrapped around (it was being dropped twice). At least on macOS it causes the following message to be printed when testing:

error: process didn't exit successfully: `/binary/path` (signal: 4, SIGILL: illegal instruction)

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions