From a76cdfda47da66f9a865290b3b427b59212ec791 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 9 Jan 2025 16:57:11 +0900 Subject: [PATCH] rv-virt:citest64: bump CONFIG_INIT_STACKSIZE Fix crashes with "popen" example. ``` dump_tasks: PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND dump_tasks: ---- --- --- -------- ------- --- ------- ---------- ---------------- 0x800525e0 2048 1016 49.6% irq dump_task: 0 0 0 FIFO Kthread - Ready 0000000000000000 0x80056550 2032 1168 57.4% Idle_Task dump_task: 1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0x80057500 1968 768 39.0% hpwork 0x80051470 0x800514b8 dump_task: 2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0x80057e48 1960 720 36.7% lpwork 0x80051400 0x80051448 dump_task: 3 3 100 RR Task - Waiting Semaphore 0000000000000000 0x80058ca0 3024 3008 99.4%! nsh_main dump_task: 4 4 100 RR Task - Ready 0000000000000000 0x8005a2f0 2000 1376 68.8% popen riscv_exception: EXCEPTION: Load access fault. MCAUSE: 0000000000000005, EPC: 000000008000594e, MTVAL: fffffffffffffffc riscv_exception: PANIC!!! Exception = 0000000000000005 ``` --- boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig b/boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig index 1117984af1..3f0e9db20e 100644 --- a/boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig +++ b/boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig @@ -43,7 +43,7 @@ CONFIG_FS_PROCFS=y CONFIG_HAVE_CXX=y CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_INIT_ENTRYPOINT="nsh_main" -CONFIG_INIT_STACKSIZE=3072 +CONFIG_INIT_STACKSIZE=4096 CONFIG_INTELHEX_BINARY=y CONFIG_LIBC_ENVPATH=y CONFIG_LIBC_EXECFUNCS=y