avgoor commented on issue #16133:
URL: https://github.com/apache/nuttx/issues/16133#issuecomment-2833369160

   I must correct myself. I've rerun the fresh `master` with 
`CONFIG_SMP_NCPUS=1` and it's very unstable now. With enabled extra debug 
output it gets stuck randomly here and there, as if the UART I/O procedure 
itself interferes with other lock operations.
   
   ```
   >>> bt
   #0  spin_lock_notrace (lock=0x20003b0d <g_cpu_irqlock> "\001") at 
nuttx/include/nuttx/spinlock.h:199
   #1  enter_critical_section_wo_note () at irq/irq_csection.c:183
   #2  0x1000d37e in uart_xmitchars (dev=0x20000fc8 <g_uart0port>) at 
serial/serial_io.c:62
   #3  0x10000dd4 in up_interrupt (irq=49, context=0x0, arg=0x20000fc8 
<g_uart0port>) at chip/rp23xx_serial.c:617
   #4  0x10002bb6 in irq_dispatch (irq=49, context=0x0) at 
irq/irq_dispatch.c:144
   #5  0x10001cf4 in exception_direct () at armv8-m/arm_doirq.c:62
   #6  <signal handler called>
   #7  0x10002cf0 in enter_critical_section_wo_note () at irq/irq_csection.c:184
   #8  0x100226ac in nxsched_process_scheduler () at 
sched/sched_processtimer.c:132
   #9  0x100226e6 in nxsched_process_timer () at sched/sched_processtimer.c:193
   #10 0x100116e0 in rp23xx_timerisr (irq=15, regs=0x0, arg=0x0) at 
chip/rp23xx_timerisr.c:82
   #11 0x10002bb6 in irq_dispatch (irq=15, context=0x0) at 
irq/irq_dispatch.c:144
   #12 0x10001cf4 in exception_direct () at armv8-m/arm_doirq.c:62
   #13 <signal handler called>
   #14 up_idle () at chip/rp23xx_idle.c:94
   #15 0x100028be in nx_start () at init/nx_start.c:782
   #16 0x100001ec in __start () at chip/rp23xx_start.c:192
   
   [2] id 2 name rp2350.dap.core1 from 0x000000ec
   [1] id 1 name rp2350.dap.core0 from 0x10002cd0 in spin_lock_notrace+8 at 
nuttx/include/nuttx/spinlock.h:199
   ```
   
   Output in the console looks unfinished:
   ```
   [CPU0] nxsig_tcbdispatch: TCB=0x2000adb0 pid=46 signo=39 code=0 value=0 
masked=NO
   [CPU0] nxsig_tcbdispatch: TCB=0x2000adb0 pid=46 signo=41 code=0 value=0 
masked=NO
   [CPU0] nxsig_tcbdispatch: TCB=0x2000adb0 pid=46 signo=42 code=0 value=0 
masked=NO
   [CPU0] nxsig_tcbdispatch: TCB=0x2000adb0 pid=46 
   ```


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