fdcavalcanti commented on PR #16673:
URL: https://github.com/apache/nuttx/pull/16673#issuecomment-3113434882

   I found issues on ESP32S3, can you check please?
   
   This error happened on: `esp32s3-lcd-ev:audio`, 
`esp32s3-devkit:fastboot_tcp` and a few others.
   
   ```
   2025-07-24 12:49:06 *** Booting NuttX ***
   2025-07-24 12:49:06 I (58) boot: chip revision: v0.1
   2025-07-24 12:49:06 I (58) boot: efuse block revision: v1.2
   2025-07-24 12:49:06 I (58) boot.esp32s3: Boot SPI Speed : 40MHz
   2025-07-24 12:49:06 I (59) boot.esp32s3: SPI Mode       : DIO
   2025-07-24 12:49:06 I (62) boot.esp32s3: SPI Flash Size : 16MB
   2025-07-24 12:49:06 I (66) boot: Enabling RNG early entropy source...
   2025-07-24 12:49:06 dram: lma 0x00000020 vma 0x3fc968f0 len 0x1420   (5152)
   2025-07-24 12:49:06 iram: lma 0x00001448 vma 0x40374000 len 0x6d30   (27952)
   2025-07-24 12:49:06 padd: lma 0x00008188 vma 0x00000000 len 0x7e70   (32368)
   2025-07-24 12:49:06 imap: lma 0x00010000 vma 0x42010000 len 0x6ab40  (437056)
   2025-07-24 12:49:06 padd: lma 0x0007ab48 vma 0x00000000 len 0x54b0   (21680)
   2025-07-24 12:49:06 dmap: lma 0x00080000 vma 0x3c090000 len 0x16fb0  (94128)
   2025-07-24 12:49:06 total segments stored 6
   2025-07-24 12:49:06 AB[CPU0] dump_assert_info: Current Version: NuttX  
10.4.0 bd5dda19d4 Jul 24 2025 12:46:36 xtensa
   2025-07-24 12:49:06 [CPU0] dump_assert_info: Assertion failed (1 << cpu) & 
tcb->affinity: at file: chip/esp32s3_spiflash.c:942 task(CPU0): F? ?9e  <049 
process: Kernel 0x4037778c
   2025-07-24 12:49:06 [CPU0] up_dump_register:    PC: 42039803    PS: 00060a22
   2025-07-24 12:49:06 [CPU0] up_dump_register:    A0: 8037816c    A1: 3fc9ca20 
   A2: 00000000    A3: 3fc94df0
   2025-07-24 12:49:06 [CPU0] up_dump_register:    A4: 00000000    A5: 3fc9c790 
   A6: 00000000    A7: 3fc93bc0
   2025-07-24 12:49:06 [CPU0] up_dump_register:    A8: 00000000    A9: 00060a22 
  A10: 00000000   A11: 00000000
   2025-07-24 12:49:06 [CPU0] up_dump_register:   A12: 3fc93bc0   A13: 00060022 
  A14: 3fc8b034   A15: 3fc9c7c0
   2025-07-24 12:49:06 [CPU0] up_dump_register:   SAR: 0000001f CAUSE: 00706f5f 
VADDR: 66337830
   2025-07-24 12:49:06 [CPU0] up_dump_register:  LBEG: 00000000  LEND: 00000000 
 LCNT: 00000000
   2025-07-24 12:49:06 [CPU0] dump_stacks: ERROR: Stack pointer 3fc9ca20is not 
within the stack
   2025-07-24 12:49:06 [CPU0] dump_stackinfo: IRQ Stack:
   ...
   2025-07-24 12:49:07 [CPU0] dump_tasks:    PID GROUP   CPU PRI POLICY   TYPE  
  NPX STATE   EVENT      SIGMASK          STACKBASE  STACKSIZE   COMMAND
   2025-07-24 12:49:07 [CPU0] dump_tasks:   ----   ---     0 --- -------- 
------- --- ------- ---------- ---------------- 0x3fc928e8      2048   irq
   2025-07-24 12:49:07 [CPU0] dump_tasks:   ----   ---     1 --- -------- 
------- --- ------- ---------- ---------------- 0x3fc930e8      2048   irq
   2025-07-24 12:49:07 [CPU0] dump_task:       0     0     0   0 FIFO     
Kthread -   Assigned           0000000000000000 0x3fc95d00      3056   CPU0 IDLE
   2025-07-24 12:49:07 [CPU0] dump_task:       1     0     1   0 FIFO     
Kthread -   Assigned           0000000000000000 0x3fc97ef0      3056   CPU1 IDLE
   2025-07-24 12:49:07 [CPU0] dump_task:       2     0     0 100 RR       
Kthread -   Waiting Semaphore  0000000000000000 0x3fc98d98      4024   lpwork 
0x3fc968f0 0x3fc9693c
   2025-07-24 12:49:07 [CPU0] dump_task:       3     3     1 100 RR       Task  
  -   Running            0000000000000000 0x3fc9a160      8144   nsh_main
   2025-07-24 12:49:07 [CPU0] dump_task:       4     0     0 255 RR       
Kthread -   Waiting Semaphore  0000000000000000 0x3fc9c4f8       696   
spiflash_op 0x3fc9bffc
   2025-07-24 12:49:07 [CPU0] xtensa_user_panic: User Exception: EXCCAUSE=0003 
task: 3fc9bffc
   2025-07-24 12:49:07  0000000000000000 0x3fc9c4f8       696   spifla
   ```
   
   The following crash is happening `esp32s3-devkit:smp` and `esp32-devkitc` 
ostest:
   ```
   fordblks    59770    58760
   user_main: task_restart test
   Test task_restart()
   restart_main: setenv(VarName, VarValue, TRUE)
   restart_main: Started restart_main at PID=22
   restart_main: Started with argc=4
   restart_main: argv[0]="ostest"
   restart_main: argv[1]="This is argument 1"
   restart_main: argv[2]="Argument 2 here"
   restart_main: argv[3]="Lastly, the 3rd argument"
   restart_main: Variable=VarName has value=VarValue
   restart_main: I am still here
   restart_main: I am still here
   [CPU0] dump_assert_info: Current Version: NuttX  10.4.0 bd5dda19d4 Jul 24 
2025 12:47:18 xtensa
   [CPU0] dump_assert_info: Assertion failed tasklist == (&g_readytorun): at 
file: sched/sched_removereadytorun.c:190 task(CPU0): ostest process: ostest 
0x420276ac
   [CPU0] up_dump_register:    PC: 4202684f    PS: 00060222
   [CPU0] up_dump_register:    A0: 80377cac    A1: 3fc94c20    A2: 00000000    
A3: 3fc8cdc0
   [CPU0] up_dump_register:    A4: 00000000    A5: 00000002    A6: 00000001    
A7: 3fc8ea20
   [CPU0] up_dump_register:    A8: 00000000    A9: 00060222   A10: 00000000   
A11: 0000007e
   [CPU0] up_dump_register:   A12: 8201880e   A13: 3fc8c218   A14: 6002306c   
A15: 00000000
   [CPU0] up_dump_register:   SAR: 00000020 CAUSE: 00000000 VADDR: 8201f8ea
   [CPU0] up_dump_register:  LBEG: 40056f5c  LEND: 40056f72  LCNT: ffffffff
   [CPU0] dump_stackinfo: User Stack:
   [CPU0] dump_stackinfo:   base: 0x3fc92ed8
   [CPU0] dump_stackinfo:   size: 00008072
   [CPU0] dump_stackinfo:     sp: 0x3fc94c20
   [CPU0] stack_dump: 0x3fc94c00: 820154b9 3fc94c40 3c050b1f 3fc94c50 3fc94c20 
000000be 3c050b1f 3fc8aaa8
   [CPU0] stack_dump: 0x3fc94c20: 00001f88 3fc92ed8 3fc8babc 3fc94e60 82014ae5 
3fc94d30 3c050b1f 000000be
   [CPU0] stack_dump: 0x3fc94c40: 00000000 3fc92af8 3fc92af8 420276ac 7474754e 
3c050058 0000000c 3fc94ce0
   [CPU0] stack_dump: 0x3fc94c60: 8202540a 3fc900b0 3fc94ce0 3c056a4d 00000000 
3fc94da0 3fc94d80 3c0582ea
   [CPU0] stack_dump: 0x3fc94c80: 00000000 2e303100 00302e34 00000000 00000008 
3c0582e9 64620008 61646435
   [CPU0] stack_dump: 0x3fc94ca0: 34643931 6c754a20 20343220 35323032 3a323120 
313a3734 00000038 3fc90af0
   [CPU0] stack_dump: 0x3fc94cc0: 8202f2a0 3fc94d00 3c0561cd 65747870 0061736e 
3fc94d80 00000004 3fc92c14
   [CPU0] stack_dump: 0x3fc94ce0: 8203052a 3fc92a48 3fc8cdc0 3c050b3e 3c050b1f 
000000be 3c0561cd 00000064
   [CPU0] stack_dump: 0x3fc94d00: 00060222 000000be 3fc92a48 3c05f6c0 3c050b3e 
3fc8cdc0 00000006 3fc92a48
   [CPU0] stack_dump: 0x3fc94d20: 8202f36a 3fc94d50 3fc94e70 3fc8b960 3c050b3e 
00000002 00000000 00000000
   [CPU0] stack_dump: 0x3fc94d40: 8202f481 3fc94d70 3fc94e70 00000001 00000000 
00000008 00060222 3fc94e70
   [CPU0] stack_dump: 0x3fc94d60: 82028a4d 3fc94d90 00000016 00000016 3fc94d98 
3fc94d90 00000004 00000016
   [CPU0] stack_dump: 0x3fc94d80: 82027842 3fc94dc0 0000001e 00000000 00000000 
00000000 00000005 00000000
   [CPU0] stack_dump: 0x3fc94da0: 00002000 42028898 00060220 3fc94e70 82015685 
3fc94de0 00000000 3fc92eac
   [CPU0] stack_dump: 0x3fc94dc0: 00000000 3fc94e70 3fc8d26c 00000016 820137f0 
3fc94e20 420276ac 00000005
   [CPU0] stack_dump: 0x3fc94de0: 0005f220 00000001 00000021 00059fc0 00005260 
00059fc0 000076a0 00000000
   [CPU0] stack_dump: 0x3fc94e00: 00000000 3fc92ec6 00000004 3fc8d218 00000000 
3fc94e40 00000000 00000000
   [CPU0] stack_dump: 0x3fc94e20: 3fc92e98 00000004 3fc8ab1c 3fc8cd55 00000000 
3fc94e60 00000000 00000000
   [CPU0] stack_dump: 0x3fc94e40: 00000000 00000000 3fc92a48 00000000 00000000 
00000000 00000000 00000000
   [CPU0] stack_dump: 0x3fc94e60: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   ostest_main: Exiting with status 256
   nsh> 
   ```
   
   And for `esp32-devkitc:wifi_smp_hw`:
   ```
   2025-07-24 12:21:16 *** Booting NuttX ***
   2025-07-24 12:21:16 I (85) boot: chip revision: v3.0
   2025-07-24 12:21:16 I (85) boot.esp32: SPI Speed      : 40MHz
   2025-07-24 12:21:16 I (85) boot.esp32: SPI Mode       : DIO
   2025-07-24 12:21:16 I (87) boot.esp32: SPI Flash Size : 4MB
   2025-07-24 12:21:16 I (90) boot: Enabling RNG early entropy source...
   2025-07-24 12:21:16 dram: lma 0x00001020 vma 0x3ffc50f0 len 0x36f8   (14072)
   2025-07-24 12:21:16 iram: lma 0x00004720 vma 0x40080000 len 0x22430  (140336)
   2025-07-24 12:21:16 rtc: lma 0x00026b58 vma 0x50000000 len 0x18     (24)
   2025-07-24 12:21:16 padd: lma 0x00026b88 vma 0x00000000 len 0x9470   (38000)
   2025-07-24 12:21:16 imap: lma 0x00030000 vma 0x40100000 len 0x85fdc  (548828)
   2025-07-24 12:21:16 padd: lma 0x000b5fe4 vma 0x00000000 len 0xa014   (40980)
   2025-07-24 12:21:16 dmap: lma 0x000c0000 vma 0x3f410000 len 0x229dc  (141788)
   2025-07-24 12:21:16 total segments stored 7
   2025-07-24 12:21:16 A[    0.000000] [CPU0] __esp32_start: ESP32 chip 
revision is v3.0
   2025-07-24 12:21:16 B[    0.010000] [CPU0] dump_assert_info: Current 
Version: NuttX  10.4.0 bd5dda19d4 Jul 24 2025 12:16:39 xtensa
   2025-07-24 12:21:16 [    0.010000] [CPU0] dump_assert_info: Assertion failed 
(1 << cpu) & tcb->affinity: at file: chip/esp32_spiflash.c:2473 task(CPU0): 
4??jA?0742??7pA? process: Kernel 0x4009909c
   2025-07-24 12:21:16 [    0.010000] [CPU0] up_dump_register:    PC: 40099bff  
  PS: 00060622
   2025-07-24 12:21:16 [    0.010000] [CPU0] up_dump_register:    A0: 8009a175  
  A1: 3ffafdd0    A2: 00000000    A3: 3ffbadd0
   2025-07-24 12:21:16 [    0.010000] [CPU0] up_dump_register:    A4: 00000000  
  A5: 3ffafb40    A6: 00000000    A7: 3ffb97e4
   2025-07-24 12:21:16 [    0.010000] [CPU0] up_dump_register:    A8: 00000000  
  A9: 00060622   A10: 00000000   A11: 00000000
   ...
   ```
   


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