Skip to content

arm: user thread stack overflows do not report _NANO_ERR_STACK_CHK_FAIL #13342

@andrewboie

Description

@andrewboie

Describe the bug
A stack overflow of a user thread on ARM should report to _NanoFatalErrorHandler() a reason code of _NANO_ERR_STACK_CHK_FAIL. Instead it is reporting _NANO_ERR_HW_EXCEPTION.

To Reproduce
Run tests/kernel/fatal, with pr #13343 and the ifdefs for CONFIG_ARM removed.

Expected behavior
Passing test.

Impact
Stack overflows are not reported as such, wasting or confounding developer time.

I expect this issue affects both ARM and NXP MPUs.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions