anjiahao1 commented on PR #11207: URL: https://github.com/apache/nuttx/pull/11207#issuecomment-1818883640
@masayuki2009 i push newset patch,and test on qemu arm64 run ubuntu with arm64 sim. ``` ajh@arm64-mikasa:~/work/nuttx$ gdb-multiarch nuttx -ex "source tools/gdb/__init__.py" GNU gdb (Ubuntu 13.1-2ubuntu2) 13.1 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from nuttx... set pagination off source /home/ajh/work/nuttx/tools/gdb/memdump.py source /home/ajh/work/nuttx/tools/gdb/lists.py if use thread command, please don't use 'continue', use 'c' instead !!! source /home/ajh/work/nuttx/tools/gdb/thread.py source /home/ajh/work/nuttx/tools/gdb/utils.py "handle SIGUSR1 "nostop" "pass" "noprint" (gdb) r Starting program: /home/ajh/work/nuttx/nuttx [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". NuttShell (NSH) NuttX-10.1.0 MOTD: username=admin password=Administrator nsh> Program received signal SIGSTOP, Stopped (signal). 0x0000fffff7e831e8 in __GI___clock_nanosleep (clock_id=<optimized out>, clock_id@entry=0, flags=flags@entry=0, req=req@entry=0xfffffffff048, rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78 78 ../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory. (gdb) info threads Id Thread Info Frame *0 Thread 0x4703d0 (Name: Idle_Task, State: Running, Priority: 0, Stack: 69616) 0xfffff7e831e8 clock_nanosleep() at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78 1 Thread 0xfffff3ed14f0 (Name: loop_task, State: Waiting,Signal, Priority: 224, Stack: 67536) 0x413530 up_switch_context() at sim/sim_switchcontext.c:94 2 Thread 0xfffff3ee2630 (Name: hpwork, State: Waiting,Semaphore, Priority: 224, Stack: 67504) 0x413530 up_switch_context() at sim/sim_switchcontext.c:94 3 Thread 0xfffff3ef3560 (Name: nsh_main, State: Waiting,Semaphore, Priority: 100, Stack: 67536) 0x413530 up_switch_context() at sim/sim_switchcontext.c:94 (gdb) thread 2 (gdb) bt #0 0x0000000000413530 in up_switch_context (tcb=0xfffff3ed14f0, rtcb=0xfffff3ee2630) at sim/sim_switchcontext.c:94 #1 0x0000000000406804 in nxsem_wait (sem=0x470ec0 <g_hpwork+16>) at semaphore/sem_wait.c:176 #2 0x0000000000406850 in nxsem_wait_uninterruptible (sem=0x470ec0 <g_hpwork+16>) at semaphore/sem_wait.c:248 #3 0x0000000000405cf8 in work_thread (argc=3, argv=0xfffff3ee2d60) at wqueue/kwork_thread.c:207 #4 0x00000000004076f0 in nxtask_start () at task/task_start.c:129 #5 0x0000000000413098 in pre_start () at sim/sim_initialstate.c:52 #6 0x0000000000413070 in up_getsp () at /home/ajh/work/nuttx/include/arch/irq.h:138 Backtrace stopped: previous frame identical to this frame (corrupt stack?) ``` look like run well. -- 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]
