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

   Sorry @hujun260 I think we might have a Race Condition that's intermittently 
hanging and failing the Signals Test in OSTest. Yesterday Milk-V Duo S SBC 
(SG2000) tested OK. But today it's hanging:
   https://github.com/lupyuen/nuttx-sg2000/releases/tag/nuttx-sg2000-2024-09-23
   ```text
   nsh> ostest
   ...
   user_main: nested signal handler test
   signest_test: Starting signal waiter task at priority 101
   waiter_main: Waiter started
   signest_test: Started waiter_main pid=52
   waiter_main: Setting signal mask
   signest_test: Starting interfering task at priority 102
   waiter_main: Registering signal handler
   interfere_main: Waiting on semaphore
   waiter_main: Waiting on semaphore
   signest_test: Started interfere_main pid=53
   [Hangs here]
   ```
   
   knsh64 fails the Signal Test with a Segmentation Fault (it was OK yesterday):
   
https://github.com/lupyuen/nuttx-riscv64/releases/tag/qemu-riscv-knsh64-2024-09-23
   ```text
   $ tools/configure.sh rv-virt:knsh64
   ...
   $ qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -kernel nuttx 
-nographic
   QEMU emulator version 9.0.2
   OpenSBI v1.4
   nsh> ostest
   ...
   user_main: nested signal handler test
   signest_test: Starting signal waiter task at priority 101
   waiter_main: Waiter started
   waiter_main: Setting signal mask
   waiter_main: Registering signal handler
   waiter_main: Waiting on semaphore
   signest_test: Started waiter_main pid=51
   signest_test: Starting interfering task at priority 102
   interfere_main: Waiting on semaphore
   signest_test: Started interfere_main pid=52
   signest_test: Simple case:
     Total signalled 1240  Odd=620 Even=620
     Total handled   1240  Odd=620 Even=620
     Total nested    0    Odd=0   Even=0  
   [   55.393000] riscv_exception: EXCEPTION: Instruction page fault. MCAUSE: 
000000000000000c, EPC: 0000000000000000, MTVAL: 0000000000000000
   [   55.393000] riscv_exception: Segmentation fault in PID 10: ostest
   ostest_main: Exiting with status 2816
   ```
   
   Are you able to reproduce this problem when you re-run knsh64 a few times? 
Thanks!


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to