Skip to content

core/panic: make reboot on panic configurable#20630

Merged
maribu merged 1 commit intoRIOT-OS:masterfrom
benpicco:core_panic-reboot
Apr 26, 2024
Merged

core/panic: make reboot on panic configurable#20630
maribu merged 1 commit intoRIOT-OS:masterfrom
benpicco:core_panic-reboot

Conversation

@benpicco
Copy link
Copy Markdown
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 fabian18 and maribu 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
Copy Markdown

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
Copy Markdown
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
@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