chirping78 opened a new issue, #8616: URL: https://github.com/apache/nuttx/issues/8616
Here are some steps to reproduce the issue: 1. build a cortex-m board for qemu ``` ./tools/configure.sh -E lm3s6965-ek:qemu-flat make ``` 2. start qemu ``` qemu-system-arm -M lm3s6965evb -device loader,file=nuttx -serial mon:stdio -nographic -s ``` 3. gdb attach ``` gdb-multiarch -ix tools/nuttx-gdbinit nuttx (gdb) target extended-remote localhost:1234 (gdb) info_nxthreads saved current_tcb (pid=0) * 0 Thread 0x20001538 (Name: Idle Task, State: Running, Priority: 0, Stack: 456/1000) PC: 0x96b2 in up_idle() saved current_tcb (pid=0) 1 Thread 0x20005060 (Name: hpwork, State: Waiting,Semaphore, Priority: 224, Stack: 344/1992) PC: 0x487d in work_thread() saved current_tcb (pid=0) 2 Thread 0x20005c30 (Name: nsh_main, State: Waiting,Semaphore, Priority: 100, Stack: 1080/2000) PC: 0x1 in _vectors() saved current_tcb (pid=0) 3 Thread 0x200069f0 (Name: NTP daemon, State: Waiting,Semaphore, Priority: 100, Stack: 1688/1952) PC: 0x1 in _vectors() saved current_tcb (pid=0) 4 Thread 0x20008430 (Name: telnetd, State: Waiting,Semaphore, Priority: 100, Stack: 616/2008) PC: 0x20008ec4 in No() saved current_tcb (pid=0) saved current_tcb (pid=0) saved current_tcb (pid=0) saved current_tcb (pid=0) (gdb) ``` You can see the PC of thread 2 and 3 is `0x1`, that is an invalid address. Try the gdb function `nxthread_all_bt` will show incorrect backtrace for these threads. -- 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.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org