Skip to content

nsim_*_mpu_stack_guard fails if CONFIG_USERSPACE=n but CONFIG_HW_STACK_PROTECTION=y #15163

@andrewboie

Description

@andrewboie

For example, with tests/posix/common:

Console now belongs to UART, hit CRTL-] to return to simulator.
***** Booting Zephyr OS v1.14.0-rc3-100-g94b8f14eca13 *****
Running test suite posix_apis
===================================================================
starting test - test_posix_pthread_execution
Thread 0 starting with scheduling policy 0 & priority 15
Thread 1 starting with scheduling policy 0 & priority 15
Thread 2 starting with scheduling policy 0 & priority 15
Bounce test OK
Barrier test OK
PASS - test_posix_pthread_execution
===================================================================
starting test - test_posix_pthread_termination
Thread 0 starting with a priority of 4
Cancelling thread 0
Thread 1 starting with a priority of 3
Cancelling thread 1
Thread 1 could not be cancelled
Exception vector: 0x6, cause code: 0x2, parameter 0x4
Address 0x8000bbc0
***** Stack Check Fail! *****
Current thread ID = 0x800003ec
Fatal fault in thread 0x800003ec! Aborting.
Thread 3 starting with a priority of 1
Cancelling thread 3
Thread 3 could not be cancelled

    Assertion failed at /home/apboie/projects/zephyr3/zephyr/tests/posix/common/src/pthread.c:419: test_posix_pthread_termination: (ret not equal to ESRCH)
cancelled a terminated thread!
FAIL - test_posix_pthread_termination
===================================================================
starting test - test_posix_multiple_threads_single_key

Different threads set different values to same key:
thread 0: set value = -2147479816 and retrieved value = -2147479816
thread 1: set value = -2147479560 and retrieved value = -2147479560

PASS - test_posix_multiple_threads_single_key
===================================================================
starting test - test_posix_single_thread_multiple_keys

Single thread associates its value with different keys:
Exception vector: 0x6, cause code: 0x2, parameter 0x4
Address 0x8000d3e4
***** Stack Check Fail! *****
Current thread ID = 0x8000064c
Fatal fault in thread 0x8000064c! Aborting.

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions