hujun260 commented on PR #13863:
URL: https://github.com/apache/nuttx/pull/13863#issuecomment-2451133423

   > > > Hi @hujun260 ,
   > > > `esp32s3-devkit:sta_softap` eventually asserts at 
`DEBUGASSERT(tcb->cpu == this_cpu` 
(https://github.com/apache/incubator-nuttx/blob/a56714888868399b5148ab84f8a100505bd3e974/sched/sched/sched_removereadytorun.c#L291)
 when running iPerf server for a while (some minutes). Do you have any idea 
why? (or what should we look for to solve this problem?)
   > > > @tmedicci
   > > > Please give your crash call stack? so that I can analyze it.
   > 
   > The crash call stack:
   > 
   > ```
   > nsh> iperf -s -p 11111 -i 5 -B 0.0.0.0 -t 600 &
   > iperf [15:100]
   > nsh>      IP: 0.0.0.0
   > 
   >  mode=tcp-server sip=0.0.0.0:11111,dip=0.0.0.0:5001, interval=5, time=600
   > accept: 10.0.0.2:56070
   > 
   >            Interval         Transfer         Bandwidth
   > 
   >    0.00-   5.01 sec    4268216 Bytes    6.82 Mbits/sec
   >    5.01-  10.02 sec    3904300 Bytes    6.23 Mbits/sec
   >   10.02-  15.03 sec    2544302 Bytes    4.06 Mbits/sec
   >   15.03-  20.04 sec    3863134 Bytes    6.17 Mbits/sec
   >   20.04-  25.05 sec    3993092 Bytes    6.38 Mbits/sec
   >   25.05-  30.06 sec    3131298 Bytes    5.00 Mbits/sec
   >   30.06-  35.07 sec    4182710 Bytes    6.68 Mbits/sec
   >   35.07-  40.08 sec    3930936 Bytes    6.28 Mbits/sec
   >   40.08-  45.09 sec    3357936 Bytes    5.36 Mbits/sec
   >   45.09-  50.10 sec    4144182 Bytes    6.62 Mbits/sec
   > [CPU0] dump_assert_info: Current Version: NuttX  10.4.0 d1e5b38b9b Oct 31 
2024 15:18:36 xtensa
   > [CPU0] dump_assert_info: Assertion failed tcb->cpu == up_cpu_index(): at 
file: sched/sched_removereadytorun.c:291 task(CPU0): wifi process: Kernel 
0x4037e4b8
   > [CPU0] up_dump_register:    PC: 4206ac56    PS: 00060c22
   > [CPU0] up_dump_register:    A0: 80379b01    A1: 3fc987e4    A2: 3fcb83e0   
 A3: 3fc9a9e0
   > [CPU0] up_dump_register:    A4: 00060c22    A5: 00000000    A6: 3fc987c0   
 A7: 00000001
   > [CPU0] up_dump_register:    A8: 3fc995b4    A9: 3fc987d4   A10: 3fc995b4   
A11: 00000001
   > [CPU0] up_dump_register:   A12: 00000001   A13: 00060a22   A14: 00000001   
A15: 00000001
   > [CPU0] up_dump_register:   SAR: 0000001f CAUSE: 00000000 VADDR: 00000000
   > [CPU0] up_dump_register:  LBEG: 400570e8  LEND: 400570f3  LCNT: 00000000
   > [CPU0] dump_stackinfo: IRQ Stack:
   > [CPU0] dump_stackinfo:   base: 0x3fc98214
   > [CPU0] dump_stackinfo:   size: 00002048
   > [CPU0] dump_stackinfo:     sp: 0x3fc987e4
   > [CPU0] stack_dump: 0x3fc987c4: 82047cad 3fc98804 3c010b95 3fcb6c58 
000019d8 3fcb8720 deadbeef deadbeef
   > [CPU0] stack_dump: 0x3fc987e4: 3fc98214 3fc987e4 00000000 00000000 
82045377 3fc988f4 3c010b95 00000123
   > [CPU0] stack_dump: 0x3fc98804: 00000000 3fcb6d04 3c017424 4037e4b8 
7474754e dead0058 deadbeef deadbeef
   > [CPU0] stack_dump: 0x3fc98824: deadbeef dead00ef deadbeef deadbeef 
deadbeef deadbeef deadbeef deadbeef
   > [CPU0] stack_dump: 0x3fc98844: deadbeef 2e303100 00302e34 deadbeef 
deadbeef deadbeef 3164beef 33623565
   > [CPU0] stack_dump: 0x3fc98864: 62396238 74634f20 20313320 34323032 
3a353120 333a3831 3fc90036 ffffffff
   > [CPU0] stack_dump: 0x3fc98884: 00000001 deadbeef deadbeef 657478ef 
0061736e deadbeef deadbeef deadbeef
   > [CPU0] stack_dump: 0x3fc988a4: deadbeef 3fcb6c58 3fc9a9e0 3c010c1c 
3c010b95 00000123 00000001 deadbeef
   > [CPU0] stack_dump: 0x3fc988c4: 00000006 00060222 00000123 00000000 
3c010c1c 3fc9a9e0 3c017600 4037e4b8
   > [CPU0] stack_dump: 0x3fc988e4: 820459d0 3fc98914 3fcc8108 00000001 
3c010c1c 00000004 3fc981f4 0000001f
   > [CPU0] stack_dump: 0x3fc98904: 8206457d 3fc98934 3fcc8108 00000064 
00040023 3fc98a14 00000001 00018044
   > [CPU0] stack_dump: 0x3fc98924: 82063b5c 3fc98954 3fc90930 3fcb6c58 
00000001 3fcb85b0 3fcb6c58 3fcb5560
   > [CPU0] stack_dump: 0x3fc98944: 8204b1ae 3fc98974 00060023 00008209 
00060022 3fcc8108 3fcae250 ffffffff
   > [CPU0] stack_dump: 0x3fc98964: 8037a00e 3fc98994 0000003e 3fcb83e0 
00000001 3fc917c8 00060023 00060120
   > [CPU0] stack_dump: 0x3fc98984: 80379538 3fc989b4 0000003e 3fcb83e0 
00000000 3fcb8610 3fcae250 fffffffc
   > [CPU0] stack_dump: 0x3fc989a4: 80378cc0 3fc989d4 0000003e 3fcb83e0 
00000001 3fcb8540 00000000 3fcc8510
   > [CPU0] stack_dump: 0x3fc989c4: 40374d08 3fc989f4 00000004 3fcb83e0 
3fc995b4 3fc90930 3fcb6c58 00000001
   > [CPU0] stack_dump: 0x3fc989e4: 00040023 3fc98a14 00000001 00018044 
00000002 00000004 3fc981f4 0000001f
   > [CPU0] stack_dump: 0x3fc98a04: deadbeef deadbeef deadbeef 00000000 
00000000 00000000 00000000 00000000
   > [CPU0] dump_stackinfo: User Stack:
   > [CPU0] dump_stackinfo:   base: 0x3fcb6d48
   > [CPU0] dump_stackinfo:   size: 00006616
   > [CPU0] dump_stackinfo:     sp: 0x3fcb8590
   > [CPU0] stack_dump: 0x3fcb8570: 00000000 00000000 00000000 00000000 
82047e25 3fcb85b0 3fcb6c58 3fcb5560
   > [CPU0] stack_dump: 0x3fcb8590: 00000000 00000000 3fc90700 3fcc8860 
82049644 3fcb85d0 3fcae250 ffffffff
   > [CPU0] stack_dump: 0x3fcb85b0: 00060120 00000000 00000000 3fcc8510 
8204980c 3fcb85f0 3fcae250 00060120
   > [CPU0] stack_dump: 0x3fcb85d0: 3c0106e6 3fc98924 00000000 00000001 
8204983d 3fcb8610 3fcae250 fffffffc
   > [CPU0] stack_dump: 0x3fcb85f0: 00000000 00060122 00000000 00000000 
8204938c 3fcb8630 3fcae250 3fcc8510
   > [CPU0] stack_dump: 0x3fcb8610: 00000000 00000000 00000000 00000001 
82076c00 3fcb8650 3fcc8510 00060120
   > [CPU0] stack_dump: 0x3fcb8630: 420757e4 3fca17ac 00000000 3fcb84e0 
8037cc68 3fcb8670 3fcc8510 3fcc8526
   > [CPU0] stack_dump: 0x3fcb8650: 8037956a 3fc989c4 3fc995b4 3fcb84e0 
820c5338 3fcb8690 00000005 00000001
   > [CPU0] stack_dump: 0x3fcb8670: 00000001 ffffefff 3fcb6bd0 00000001 
8037e580 3fcb86b0 00000000 00000000
   > [CPU0] stack_dump: 0x3fcb8690: 3fcef940 42076bf4 00000001 3fcef954 
82044700 3fcb86d0 3fcef940 3fcef904
   > [CPU0] stack_dump: 0x3fcb86b0: 00000001 00000001 00000000 3fcc8510 
00000000 3fcb8700 00000002 4037e4b8
   > [CPU0] stack_dump: 0x3fcb86d0: 00000010 00000000 00000000 00000000 
00000000 4037e577 3fc90700 000000b1
   > [CPU0] stack_dump: 0x3fcb86f0: 00000000 3fcb8720 00000000 00000000 
00050020 00000000 00000000 00000000
   > [CPU0] stack_dump: 0x3fcb8710: 00000000 00000000 00000000 00000000 
00000000 00000000 00000000 00000000
   > [CPU0] dump_fatal_info: Dump CPU1: RUNNING
   > [CPU0] dump_tasks:    PID GROUP   CPU PRI POLICY   TYPE    NPX STATE   
EVENT      SIGMASK          STACKBASE  STACKSIZE      USED   FILLED    COMMAND
   > [CPU0] dump_tasks:   ----   ---     0 --- -------- ------- --- ------- 
---------- ---------------- 0x3fc98214      2048      1292    63.0%    irq
   > [CPU0] dump_tasks:   ----   ---     1 --- -------- ------- --- ------- 
---------- ---------------- 0x3fc98a14      2048        76     3.7%    irq
   > [CPU0] dump_task:       0     0     0   0 FIFO     Kthread -   Assigned    
       0000000000000000 0x3fcaa280      3056       672    21.9%    CPU0 IDLE
   > [CPU0] dump_task:       1     0     1   0 FIFO     Kthread -   Assigned    
       0000000000000000 0x3fcae420      3056       864    28.2%    CPU1 IDLE
   > [CPU0] dump_task:       2     0     1 100 RR       Kthread -   Assigned    
       0000000000000000 0x3fcaf260      4032      1168    28.9%    lpwork 
0x3fcaae70 0x3fcaae94
   > [CPU0] dump_task:       3     3     0 100 RR       Task    -   Waiting 
Semaphore  0000000000000000 0x3fcb06a0      8144      1952    23.9%    nsh_main
   > [CPU0] dump_task:       4     0     0 255 RR       Kthread -   Waiting 
Semaphore  0000000000000000 0x3fcb2a30       704       560    79.5%    
spiflash_op 0x3fcb253c
   > [CPU0] dump_task:       5     0     1 255 RR       Kthread -   Waiting 
Semaphore  0000000000000000 0x3fcb2e08       696       560    80.4%!   
spiflash_op 0x3fcb253c
   > [CPU0] dump_task:       6     0     1 223 RR       Kthread -   Assigned    
       0000000000000000 0x3fcb5660      4048       912    22.5%    rt_timer
   > [CPU0] dump_task:       7     0     0 253 RR       Kthread -   Running     
       0000000000000000 0x3fcb6d48      6616      2288    34.5%    wifi
   > [CPU0] dump_task:      24    15     1 100 RR       pthread -   Running     
       0000000000000000 0x3fcc97b0      4080      1744    42.7%    
iperf_traffic 0x4206dcc0 0x3fcc0e00
   > [CPU0] dump_task:      25    15     0 100 RR       pthread -   Waiting 
Signal     0000000000000000 0x3fcca7b8      4072      1440    35.3%    
iperf_report 0x4206e1a8 0x3fcc0e00
   > [CPU0] dump_task:      11    11     1 100 RR       Task    -   Waiting 
Semaphore  0000000000000000 0x3fcc2fb8      4040      1200    29.7%    
DHCPD_daemon wlan1
   > [CPU0] dump_task:      15    15     1 100 RR       Task    -   Waiting 
Semaphore  0000000000000000 0x3fcbffd8      3976      1008    25.3%    iperf -s 
-p 11111 -i 5 -B 0.0.0.0 -t 600
   > ```
   > 
   > The firmware: 
[nuttx.zip](https://github.com/user-attachments/files/17591792/nuttx.zip)
   
   i  just want to know call stack  like this 
   for example:
   #0  nxsched_remove_readytorun (tcb=tcb@entry=0x40452150) at 
sched/sched_removereadytorun.c:289
   #1  0x00000000402ee484 in nxtask_reset_task (tcb=tcb@entry=0x40452150, 
remove=true) at task/task_restart.c:120
   #2  0x00000000402ee68c in nxtask_restart (pid=8) at task/task_restart.c:260
   #3  task_restart (pid=pid@entry=8) at task/task_restart.c:313
   #4  0x00000000402e4148 in restart_test () at restart.c:199
   #5  0x00000000402e2728 in user_main (argc=argc@entry=5, 
argv=argv@entry=0x4044e150) at ostest_main.c:361
   #6  0x00000000402c33f0 in nxtask_startup (entrypt=0x402e253c <user_main>, 
argc=argc@entry=5, argv=0x4044e150) at sched/task_startup.c:72
   #7  0x00000000402bd8a8 in nxtask_start () at task/task_start.c:116
   #8  0x0000000000000000 in ?? ()
   


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