Skip to content

tests/lib/mem_alloc newlibnano target run time error #20598

@hakehuang

Description

@hakehuang

Describe the bug
ASSERTION FAIL [(options & ((1UL << (2)))) == 0] @ ZEPHYR_BASE/kernel/thread.c:581
Platform is capable of user mode, and test thread created with K_USER option, but neither CONFIG_TEST_USERSPACE nor CONFIG_USERSPACE is set

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build; cd build
  2. cmake -DBOARD=frdm_k64f ..
  3. make
  4. make flash
  5. see log

Expected behavior
runs sucessfully

Impact
test coverage

Screenshots or console output

***** Booting Zephyr OS version 2.1.0-rc1 *****
Running test suite test_c_lib_dynamic_memalloc
===================================================================
starting test - test_malloc
ASSERTION FAIL [(options & ((1UL << (2)))) == 0] @ ZEPHYR_BASE/kernel/thread.c:581
       Platform is capable of user mode, and test thread created with K_USER option, but neither CONFIG_TEST_USERSPACE nor CONFIG_USERSPACE is set
E: r0/a1:  0x00000004  r1/a2:  0x00000245  r2/a3:  0x00800000
E: r3/a4:  0x600095d2 r12/ip:  0x150b0000 r14/lr:  0x60006cd5
E:  xpsr:  0x61000000
E: Faulting instruction address (r15/pc): 0x60007732
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x2000017c (main)
E: Halting system

Environment (please complete the following information):

  • OS: (Linux)
  • Toolchain (Zephyr SDK, ...)
  • Commit SHA or Version used: v2.1.0-rc1

Metadata

Metadata

Labels

area: Test FrameworkIssues related not to a particular test, but to the framework insteadarea: TestsIssues related to a particular existing or missing testbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions