leducp commented on issue #14002:
URL: https://github.com/apache/nuttx/issues/14002#issuecomment-2404554278

   OK this is better but it still crash:
   
   ```
   nsh> cxxtest
   task_spawn: name=cxxtest entry=0xc0481a9 file_actions=0x200141d0 
attr=0x200141d4 argv=0x200142cc
   spawn_execattrs: Setting policy=2 priority=100 for pid=2
   nxtask_activate: cxxtest pid=2,TCB=0x20014758
   Test ofstream ================================
   printf: Starting test_ostream
   printf: Successfully opened /dev/console
   cout: Successfully opened /dev/console
   Writing this to /dev/console
   Test iostream ================================
   Hello, this is only a test
   Print an int: 190
   Print a char: d
   Test std::vector =============================
   v1=1 2 3
   Hello World Good Luck 
   Test std::map ================================
   Test C++17 features ==========================
   pthread_mutex_timedlock: mutex=0x200001a0
   pthread_mutex_timedlock: Returning 0
   dump_assert_info: Current Version: NuttX  12.7.0-RC0 1c2856dfcb-dirty Oct 10 
2024 11:13:46 arm
   dump_assert_info: Assertion failed panic: at file: :0 task: `2 �2 `2 �2 `2 
�2 �2 7 �2 �2 7 �2 �2 �2 �2 �2 Ձ
                                                                                
                              `( process: Kernel 0xc0481a9
   up_dump_register: R0: 20014758 R1: 20016d68 R2: 00000005  R3: 4870e2bb
   up_dump_register: R4: 200169e4 R5: 200029ec R6: 0c0e2278  FP: 2000299c
   up_dump_register: R8: 00000020 SB: 00000000 SL: 00000000 R11: 00000000
   up_dump_register: IP: a0000000 SP: 20016200 LR: 0c017bc9  PC: 0c006144
   up_dump_register: xPSR: 21000000 PRIMASK: 00000001 CONTROL: 00000000
   up_dump_register: EXC_RETURN: ffffffed
   dump_stackinfo: User Stack:
   dump_stackinfo:   base: 0x20014bb8
   dump_stackinfo:   size: 00008144
   dump_stackinfo:     sp: 0x20016200
   stack_dump: 0x200161e0: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 20001558
   stack_dump: 0x20016200: 20016d68 20014758 00000000 20014758 00640000 
4870e2bb 200162a8 20016d64
   stack_dump: 0x20016220: 200001a8 200162a0 0c0e58d0 00000000 20014758 
0c008b1b 20016254 0c008b7d
   stack_dump: 0x20016240: 200169e4 20016d64 a0000000 20016d64 0c008b6e 
0c008d2d 20014b88 20016d64
   stack_dump: 0x20016260: 00000000 00000000 00000000 0c00aba1 00000000 
20016d60 00004c08 0c04eea5
   stack_dump: 0x20016280: 20016d60 0000000b 00000001 0c0e5030 00000000 
00000002 00000000 0c0d88c1
   stack_dump: 0x200162a0: 0c0daccd 20003334 00000000 0c0dad41 0c0e5278 
20016274 00004c08 00000001
   stack_dump: 0x200162c0: 0c0daccd 20003334 00000001 0c0db945 0c0dad15 
2000019c 0c0e2278 0c0dadd5
   stack_dump: 0x200162e0: 0000000e 00000000 0c0dad15 2000019c 2000429c 
0c0d9ce9 00000001 00000000
   stack_dump: 0x20016300: 20002bb0 0c0daac7 00002000 0c0daab1 00002000 
0c050f01 2000429c 20016410
   stack_dump: 0x20016320: 00000001 0c0e2278 20003270 0000000e 00000002 
0c0534f9 00000002 2000299c
   stack_dump: 0x20016340: 2000299c 2000299c 2000299c 2000299c 200169e4 
0c04a70f 0c0e2286 20014aa4
   stack_dump: 0x20016360: 200169d4 200169d0 20012cd4 20012ccc 20016b90 
20016ba0 00000004 20016ba0
   stack_dump: 0x20016380: 20016ba0 20016b90 20016ba0 20016b90 20016b90 
20016ba0 200132c0 20016b90
   stack_dump: 0x200163a0: 20016b90 20016b90 20016ba0 ffffffff 20012c18 
ffffffff ffffffff ffffffff
   stack_dump: 0x200163c0: 00000001 20012cdc 20012cdc 20012cb4 200132c0 
200132c0 20016ba4 20016b90
   stack_dump: 0x200163e0: 20016b94 200132c0 200132c0 200132b8 20016b94 
20016b94 20016b94 20016b90
   stack_dump: 0x20016400: 200132b8 200132c0 200132c0 200029ec 20013201 
20002998 20013200 20013200
   stack_dump: 0x20016420: 20016b90 200132b8 200132c0 200132c0 200132b8 
200132b8 20016b90 200132b8
   stack_dump: 0x20016440: 20016b90 200132b8 200132b8 200132b8 200132c8 
20016ba4 00000004 20016ba4
   stack_dump: 0x20016460: 20016ba4 200132c8 20016ba4 200132c8 200029ec 
200029ec 20003268 200132c8
   stack_dump: 0x20016480: 20016ba4 20012d04 20012d04 20012cf8 00000008 
00000000 00000000 2000299c
   stack_dump: 0x200164a0: 0000000e 0c0e2278 200029ec 200132c0 00000002 
200132c0 00000002 200132c0
   stack_dump: 0x200164c0: 20012d08 20012d04 20012cf8 200132c0 200132c0 
20012d08 200132c0 200133bc
   stack_dump: 0x200164e0: 200133bc 20012d04 200133bc 200132c0 20012d04 
200132c0 00000001 00000002
   stack_dump: 0x20016500: 200132b8 20012bf0 200133b8 20012bf0 200133b8 
00000001 200132c0 0000000e
   stack_dump: 0x20016520: 00000000 2000299c 0000000e 20adbeef 2000299c 
0c0e2286 0c0e2278 0c0e2278
   stack_dump: 0x20016540: 200133b4 20003130 200133b0 2000299c ffffffff 
ffffffff 2000299c 2000299c
   stack_dump: 0x20016560: 2000299c 2000299c 20002998 0000000e 0c0e2278 
20002998 200132c8 0c0e2278
   stack_dump: 0x20016580: 0c0e2278 0c0e2278 deadbeef deadbeef 200028b4 
deadbe01 20002860 200028b4
   stack_dump: 0x200165a0: 200028b4 deadbeef deadbeef deadbeef 200028b4 
200028b4 deadbeef deadbeef
   stack_dump: 0x200165c0: deadbeef 200028b4 200028b4 deadbeef deadbeef 
deadbeef 200132c0 200132c0
   stack_dump: 0x200165e0: 200132b8 deadbeef deadbeef 200028b4 200028b4 
deadbeef deadbeef deadbeef
   stack_dump: 0x20016600: deadbeef deadbeef deadbeef deadbeef 00000000 
00000000 20002864 0000002e
   stack_dump: 0x20016620: 0c0e2074 200028b4 deadbeef deadbeef deadbeef 
deadbeef deadbeef deadbeef
   stack_dump: 0x20016640: deadbeef deadbeef deadbeef deadbeef deadbeef 
deadbeef deadbeef deadbeef
   stack_dump: 0x20016660: deadbeef deadbeef deadbeef deadbeef deadbeef 
00000000 20012bc8 00000000
   stack_dump: 0x20016680: 20012bc8 20012bc8 20016b94 20016b94 20016b94 
20016b90 200132b8 20016b90
   stack_dump: 0x200166a0: 200132b8 200132c0 200132c0 200132b8 200132b8 
20016b90 200132b8 200132c0
   stack_dump: 0x200166c0: 200132c0 200132b8 200132b8 20016b90 200132b8 
20016b90 200132b8 00000001
   stack_dump: 0x200166e0: 200132b8 200132b8 20012bd4 200132c0 200167c8 
00000001 0c059db7 0c0e216c
   stack_dump: 0x20016700: 20002864 0c0e219a 00000000 00000000 00000000 
00000000 00000000 ffffffed
   stack_dump: 0x20016720: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   stack_dump: 0x20016740: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   stack_dump: 0x20016760: 00000002 200147f4 20003c68 200147f4 a0000000 
0c017bc9 0c017bf8 01000000
   stack_dump: 0x20016780: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 0000e800
   stack_dump: 0x200167a0: 00000040 20000000 00010001 0000e802 00010000 
40030040 00000000 20000000
   stack_dump: 0x200167c0: 00000114 20000000 00000040 2000004c 10001108 
00000000 00010000 0c0086b1
   stack_dump: 0x200167e0: 00010001 20000014 00000000 00000001 00000001 
00000000 0100000a 0c008c29
   stack_dump: 0x20016800: 00000000 2000004c 00000000 00000000 00000000 
0c007e99 200168a7 00000000
   stack_dump: 0x20016820: 20004283 20014aa4 00000000 00000000 01000000 
20000014 20003f68 0a008c29
   stack_dump: 0x20016840: 00000000 0000002f 00000001 0c015a9d 20016880 
20014aa4 00000000 2000421c
   stack_dump: 0x20016860: 0000002f 00000000 200132b8 0c015ae7 00000001 
0000002f 00004254 00000001
   stack_dump: 0x20016880: 00000001 00000000 00000000 0c008c29 0c059db7 
2000421c 20004254 00000000
   stack_dump: 0x200168a0: 20016918 0c008db5 00000000 2000421c 0c00a6e8 
00000000 20004218 0c00abb9
   stack_dump: 0x200168c0: 0000002f 20004218 00000000 0c00ab87 00000000 
20004218 00000000 00000000
   stack_dump: 0x200168e0: 20004218 0c00a9c7 00000001 20004218 20016920 
00000000 200028e4 0c0534b9
   stack_dump: 0x20016900: 20016914 2001694c ffffffff 200028b4 0c0e219a 
20016958 00003300 20004218
   stack_dump: 0x20016920: 20016920 20016918 200028e4 20003148 00000000 
20002864 20002864 20002864
   stack_dump: 0x20016940: 20002864 20002864 200028b4 0c050dc5 20002860 
20002860 20003201 20002860
   stack_dump: 0x20016960: 00000002 20002864 20002864 20002860 20002864 
20002864 20002864 20002864
   stack_dump: 0x20016980: 0000000a 0c048253 200132c0 20002860 20002860 
20016418 200169e4 0c0e21d8
   stack_dump: 0x200169a0: 20002864 0c0e219a 00000000 0c0465f9 200132c4 
200132b8 200132c4 0000000e
   stack_dump: 0x200169c0: 00000000 200028b4 00000001 20002860 20002864 
0c0e219c 0000000d 0c0e21ac
   stack_dump: 0x200169e0: 00000008 0c0e21b8 0000000d deadbeef 200028b4 
200028b4 20002864 20002864
   stack_dump: 0x20016a00: 20002864 200169d4 200169d4 200169d4 200169d4 
200169ec 200169d4 0c0481d5
   stack_dump: 0x20016a20: 20002860 0c0e20d0 0c0e1f30 200028b4 deadbeef 
00000000 00000000 20002864
   stack_dump: 0x20016a40: 0000002e 0c0e216c 200028b4 200028b4 deadbeef 
deadbeef deadbeef deadbeef
   stack_dump: 0x20016a60: deadbeef deadbeef deadbeef deadbeef deadbeef 
deadbeef deadbeef deadbeef
   stack_dump: 0x20016a80: deadbeef deadbeef deadbeef deadbeef deadbeef 
deadbeef deadbeef deadbeef
   stack_dump: 0x20016aa0: 0000002e 00000000 20002864 0000002e 20016b88 
20002864 0c0e1f5e 0000002e
   stack_dump: 0x20016ac0: 00000000 20002864 0000002e 20000001 20002864 
0c0e219a 0c0e216c 0c0e216c
   stack_dump: 0x20016ae0: 2001651b 20002864 20002864 20002860 00000020 
ffffffff 20002864 20002864
   stack_dump: 0x20016b00: 20002864 20002864 20002860 0000002e 0c0e216c 
20002860 20002860 0c0e216c
   stack_dump: 0x20016b20: 0c0e216c 0c0e216c 00000000 00000000 00000000 
00000000 00000000 0c0481c1
   stack_dump: 0x20016b40: 20014ba8 00000001 00000000 0c008f37 00000000 
20014ba8 00000001 0c0481a9
   stack_dump: 0x20016b60: 00000000 0c0051f5 00000000 20014ba8 00000000 
20014758 00000001 00000001
   stack_dump: 0x20016b80: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   dump_tasks:    PID GROUP PRI POLICY   TYPE    NPX STATE   EVENT      SIGMASK 
         STACKBASE  STACKSIZE      USED   FILLED    COMMAND
   dump_tasks:   ----   --- --- -------- ------- --- ------- ---------- 
---------------- 0x200004d8      4096      1192    29.1%    irq
   dump_task:       0     0   0 FIFO     Kthread -   Running            
0000000000000000 0x20003588      2016       936    46.4%    Idle_Task
   dump_task:       1     1 100 RR       Task    -   Waiting Semaphore  
0000000000000000 0x20004488     65472      7668    11.7%    nsh_main
   ```
   
   Note: I had to increase drastically the default stack value to have 
something working, so maybe it is also the problem for the C++ toolchain 
version. I'll give it a try
   


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