fdcavalcanti commented on issue #16368:
URL: https://github.com/apache/nuttx/issues/16368#issuecomment-2971309293

   Hi all, this is still an issue.
   
   I've been debugging it but have found no answers so far (on branch b6f2729)
   One thing I noticed is enabling `CONFIG_DEBUG_SCHED_INFO`  makes the 
`ostest` pass, otherwise it gets stuck on signal handler test.
   
   Logging changing the behavior could be indicative of some race condition, 
right? Since we are on a SMP environment.
   
   Here's output of `ostest` with SCHED_INFO enabled:
   ```
   user_main: signal handler test
   sighand_test: Initializing semaphore to 0
   sighand_test: Starting waiter task
   waiter_main: Waiter started
   sighand_test: Started waiter_main pid=54
   waiter_main: Unmasking signal 32
   waiter_main: Registering signal handler
   waiter_main: oact.sigaction=0 oact.sa_flags=0 oact.sa_mask=0000000000000000
   waiter_main: Waiting on semaphore
   sighand_test: Signaling pid=54 with signo=32 sigvalue=42
   [CPU0] nxsig_queue: pid=0x00000036 signo=32 value=42
   [CPU0] nxsig_tcbdispatch: TCB=0x3ffe3138 pid=54 signo=32 code=1 value=42 
masked=NO
   [CPU0] up_schedule_sigaction: tcb=0x3ffe3138, rtcb=0x3ffe0ca8 current_regs=0
   [CPU1] xtensa_sig_deliver: rtcb=0x3ffe3138 sigpendactionq.head=0x3ffb14f0
   [CPU1] nxsig_deliver: Deliver signal 32 to PID 54
   [CPU1] xtensa_sig_deliver: Resuming
   [CPU1] nx_pthread_exit: exit_value=0
   [CPU1] pthread_completejoin: pid=54 exit_value=0
   [CPU1] nxtask_exit: ostest pid=54,TCB=0x3ffe3138
   waiter_main: sem_wait() successfully interrupted by signal
   waiter_main: done
   sighand_test: done
   ```
   
   And without it:
   ```
   user_main: signal handler test
   sighand_test: Initializing semaphore to 0
   sighand_test: Starting waiter task
   sighand_test: Started waiter_main pid=54
   waiter_main: Waiter started
   waiter_main: Unmasking signal 32
   waiter_main: Registering signal handler
   waiter_main: oact.sigaction=0 oact.sa_flags=0 oact.sa_mask=0000000000000000
   waiter_main: Waiting on semaphore
   sighand_test: Signaling pid=54 with signo=32 sigvalue=42
   sighand_test: ERROR waiter task did not exit
   [CPU0] dump_assert_info: Current Version: NuttX  10.4.0 b6f2729730-dirty Jun 
13 2025 15:43:52 xtensa
   [CPU0] dump_assert_info: Assertion failed (_Bool)0: at file: sighand.c:318 
task(CPU0): ostest process: ostest 0x400f79bc
   ```


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