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

Add CONFIG_NOABORT to avoid runtime unrecoverable errors #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trufae
Copy link

@trufae trufae commented Jan 16, 2023

No description provided.

@oleavr
Copy link
Member

oleavr commented Apr 26, 2023

Thanks! Wouldn't it be better to do something like:

#ifdef CONFIG_NOABORT
# define abort() while (TRUE) {}
#endif

(Or a statement that triggers a crash.)

If an API is used incorrectly or something internally is corrupted, it seems better to hang/crash as early as possible instead of letting the code potentially do more damage and be trickier to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants