tmedicci commented on issue #14808: URL: https://github.com/apache/nuttx/issues/14808#issuecomment-2539145682
> NuttX `ps` is crashing inside QEMU RISC-V 32-bit, causing CI Test to fail. But why is `ps` crashing for `rv-virt:citest`, but not other configs? 🤔 > > ```shell > ## Start Docker Container for NuttX > sudo docker run \ > -it \ > ghcr.io/apache/nuttx/apache-nuttx-ci-linux:latest \ > /bin/bash > > ## Inside Docker: > ## We compile rv-virt:citest > cd > git clone https://github.com/apache/nuttx > git clone https://github.com/apache/nuttx-apps apps > pushd nuttx ; echo NuttX Source: https://github.com/apache/nuttx/tree/$(git rev-parse HEAD) ; popd > pushd apps ; echo NuttX Apps: https://github.com/apache/nuttx-apps/tree/$(git rev-parse HEAD) ; popd > cd nuttx > tools/configure.sh rv-virt:citest > make -j > qemu-system-riscv32 \ > -M virt \ > -bios ./nuttx \ > -nographic > > NuttShell (NSH) NuttX-12.7.0 > nsh> uname -a > NuttX 12.7.0 5607eece84 Dec 11 2024 07:05:48 risc-v rv-virt > > nsh> ps > PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND > 0 0 0 FIFO Kthread - Ready 0000000000000000 0001952 0000908 46.5% Idle_Task > 1 0 224 RR Kthread - Waiting Semaphore 0000000000000000 0001904 0000508 26.6% hpwork 0x8014b1e4 0x8014b210 > 2 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0001896 0000508 26.7% lpwork 0x8014b1a0 0x8014b1cc > riscv_exception: EXCEPTION: Load access fault. MCAUSE: 00000005, EPC: 80008bfe, MTVAL: 01473e00 > riscv_exception: PANIC!!! Exception = 00000005 > dump_assert_info: Current Version: NuttX 12.7.0 5607eece84 Dec 11 2024 07:05:48 risc-v > dump_assert_info: Assertion failed panic: at file: common/riscv_exception.c:131 task: nsh_main process: nsh_main 0x8000a806 > up_dump_register: EPC: 80008bfe > ``` > > [See the Complete Log](https://gist.github.com/lupyuen/4ec0df33c2b4b569c010fade5f471940) > > [See the CI Test Log](https://gist.github.com/lupyuen/399d2ba7d964ba88cdbeb97f64778a0e) Apparently, https://github.com/apache/nuttx/pull/15075 decreased the size of the available stack size and this makes `ps` fail on `rv-virt:citest`. I'm running some tests to confirm and submit a PR increasing the init task stack size. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org