mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 08:53:15 +00:00
A full ostest run never reached the end on esp32-devkitc:knsh. It stopped in the barrier test: barrier_test: ERROR thread 6 create, status=12 ostest_main: Exiting with status 256 The cause is the interaction of two settings that are each reasonable on their own. CONFIG_TLS_ALIGNED is set and CONFIG_TLS_LOG2_MAXSTACK is 13, so every pthread stack must start on an 8 KiB boundary. The barrier threads take the 2 KiB default stack, so each one occupies an 8 KiB aligned slot. Eight of them do not fit the 96 KiB user heap of a protected build once the tests before them have fragmented it, and up_create_stack() fails: up_create_stack: ERROR: Failed to allocate stack, size 2048 The flat build has the same two settings and passes, because its heap is 320 KiB against 96 KiB here. So this lowers the barrier thread count for this configuration only. Four threads still test a barrier, and they leave margin: six was the most that ever started, so six would pass with none. The user heap cannot grow far. User data has to sit in the MMU governed window of SRAM2, which is 128 KiB in total, and the kernel holds the first 32 KiB of it. Verified on an ESP32-DevKitC V4, ESP32-D0WD-V3 revision 3.1. All four threads reach the barrier and ostest reports "Exiting with status 0". Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| dummy | ||
| hc/m9s12 | ||
| mips | ||
| misoc/lm32/misoc | ||
| or1k/mor1kx/or1k | ||
| renesas | ||
| risc-v | ||
| sim/sim/sim | ||
| sparc | ||
| tricore | ||
| x86/qemu/qemu-i486 | ||
| x86_64/qemu/qemu-intel64 | ||
| xtensa | ||
| z16/z16f/z16f2800100zcog | ||
| z80 | ||
| .gitignore | ||
| Board.mk | ||
| boardctl.c | ||
| CMakeLists.txt | ||
| dummy.c | ||
| Kconfig | ||
| Makefile | ||