Skip to content

Conversation

wearyzen
Copy link
Contributor

Fixes #97473 by:

  • Marking the test as passed if the hardware executes user threads for a while without triggering a stack corruption, instead of waiting indefinitely.
  • Adding a timeout to ensure the test exists gracefully if the issue is not reproduced.

Also fixes a stack corruption issue on QEMU targets, caused by insufficient stack size and revealed by the timer change.

Fixes zephyrproject-rtos#97473 by:
- Marking the test as passed if the hardware executes user threads for a
  while without triggering a stack corruption, instead of waiting
    indefinitely.
- Adding a timeout to ensure the test exists gracefully if the issue is
  not reproduced.

Also fixes a stack corruption issue on QEMU targets, caused by
insufficient stack size and revealed by the timer change.

Signed-off-by: Sudan Landge <[email protected]>
@wearyzen wearyzen force-pushed the fix_user_stack_fails branch from 88df564 to e30f47b Compare October 16, 2025 13:58
@sonarqubecloud
Copy link

Copy link
Contributor

@hakehuang hakehuang left a comment

Choose a reason for hiding this comment

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

regression pass on NXP platforms

@mathieuchopstm
Copy link
Contributor

@djiatsaf-st can you try running it on our test bench please?

@wearyzen wearyzen added this to the v4.3.0 milestone Oct 21, 2025
@wearyzen
Copy link
Contributor Author

@djiatsaf-st can you try running it on our test bench please?

@mathieuchopstm @djiatsaf-st , do you have any updates on this?
I think this should fix the issue but given the code freeze this week, it would be good to get a confirmation and a +1 from you :) .

@jhedberg jhedberg merged commit a55053b into zephyrproject-rtos:main Oct 22, 2025
24 checks passed
@wearyzen wearyzen added backport v3.7-branch Request backport to the v3.7-branch backport v4.1-branch Request backport to the v4.1-branch backport v4.2-branch Request backport to the v4.2-branch labels Oct 22, 2025
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: Boards/SoCs area: Tests Issues related to a particular existing or missing test backport v3.7-branch Request backport to the v3.7-branch backport v4.1-branch Request backport to the v4.1-branch backport v4.2-branch Request backport to the v4.2-branch platform: ARM Arm Limited

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Branch 3.7: arch.arm.user.stack fails on frdm_k64f and npcx9m6f_evb (Timeout)

6 participants