lupyuen commented on PR #14859:
URL: https://github.com/apache/nuttx/pull/14859#issuecomment-2487333493

   Sorry @pussuw: 32-bit knsh is failing with a Seg Fault on this PR. Would you 
know why? Thanks!
   https://gist.github.com/lupyuen/a942858e87745f4e18265601fa5fed43
   ```text
   $ git reset --hard e2616e7866ace4c2ce4cd16161c7f7e450d07ac6
   HEAD is now at e2616e7866 addrenv/addrenv.c: Use atomic_ functions to handle 
the reference counter
   NuttX Source: 
https://github.com/apache/nuttx/tree/e2616e7866ace4c2ce4cd16161c7f7e450d07ac6
   NuttX Apps: 
https://github.com/apache/nuttx-apps/tree/1b91e3c4a661ab2e3b8f4aaf04050ac345795e80
   
   $ tools/configure.sh rv-virt:knsh
   $ qemu-system-riscv32 -semihosting -M virt,aclint=on -cpu rv32 -kernel nuttx 
-bios opensbi-1.5-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin 
-nographic
   QEMU emulator version 9.1.1
   OpenSBI v1.5
   nsh> uname -a
   NuttX 12.7.0 e2616e7866 Nov 20 2024 11:32:51 risc-v rv-virt
   nsh> free
         total       used       free    maxused    maxfree  nused  nfree name
       4164028       8380    4155648      20456    4155352     25      4 Kmem
       4194304     606208    3588096    3588096 Page
   nsh> hello
   Hello, World!!
   nsh> getprime
   Set thread priority to 10
   Set thread policy to SCHED_RR
   Start thread #0
   thread #0 started, looking for primes < 10000, doing 10 run(s)
   thread #0 finished, found 1230 primes, last one was 9973
   Done
   getprime took 64 msec
   nsh> hello
   [    0.496000] riscv_exception: EXCEPTION: Store/AMO page fault. MCAUSE: 
0000000f, EPC: 80207a16, MTVAL: 80c00000
   [    0.496000] riscv_exception: Segmentation fault in PID 2: /system/bin/init
   ```
   
   [(Earlier commit is 
OK)](https://gist.github.com/lupyuen/4e3572f7f17dcd771bd30aaea48ef603)
   
   [(knsh64 is also 
OK)](https://gist.github.com/lupyuen/f036cb401ffbe3b9275dec197629b9a1)
   


-- 
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

Reply via email to