Skip to content

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

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

Closed
andrewboie opened this issue Feb 13, 2019 · 0 comments
Closed
Assignees
Labels
area: ARM ARM (32-bit) Architecture area: Memory Protection bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Milestone

Comments

@andrewboie
Copy link
Contributor

andrewboie commented Feb 13, 2019

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.

@andrewboie andrewboie added the bug The issue is a bug, or the PR is fixing a bug label Feb 13, 2019
@ioannisg ioannisg added the area: ARM ARM (32-bit) Architecture label Feb 13, 2019
@ioannisg ioannisg added this to the v1.14.0 milestone Feb 13, 2019
@nashif nashif added the priority: medium Medium impact/importance bug label Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARM ARM (32-bit) Architecture area: Memory Protection bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants