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

core/panic: make reboot on panic configurable #20630

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

benpicco
Copy link
Contributor

Contribution description

Currently a core_panic() will reboot the system with DEVELHELP=0 and print a crash trace and lock up the system with DEVELHELP=1.

There can be situations where this is not what's wanted, e.g. we might want to make a crash that only happens with DEVELHELP=0 more visible or we want to run with DEVELHELP=1 and still auto reboot on a crash because we want to debug something unrelated.

So add a config variable to toggle the behavior - the current configuration is kept as the default.

Testing procedure

The system should now auto-restart with DEVELHELP=1 and CFLAGS += -DCONFIG_CORE_REBOOT_ON_PANIC=1

Issues/PRs references

@benpicco benpicco requested a review from kaspar030 as a code owner April 26, 2024 13:49
@github-actions github-actions bot added the Area: core Area: RIOT kernel. Handle PRs marked with this with care! label Apr 26, 2024
@benpicco benpicco requested review from maribu and fabian18 April 26, 2024 13:49
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 26, 2024
@riot-ci
Copy link

riot-ci commented Apr 26, 2024

Murdock results

✔️ PASSED

9e0a32e core/panic: make reboot on panic configurable

Success Failures Total Runtime
10065 0 10066 12m:56s

Artifacts

Copy link
Contributor

@fabian18 fabian18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor change, not breaking the default behavior

@maribu maribu enabled auto-merge April 26, 2024 16:56
@maribu maribu added this pull request to the merge queue Apr 26, 2024
Merged via the queue into RIOT-OS:master with commit 420ee3f Apr 26, 2024
28 checks passed
@benpicco benpicco deleted the core_panic-reboot branch April 27, 2024 21:24
@mguetschow mguetschow added this to the Release 2024.07 milestone Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: core Area: RIOT kernel. Handle PRs marked with this with care! CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants