You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/08 00:44:11 UTC

[GitHub] [incubator-nuttx] masayuki2009 commented on pull request #5929: sched/pthread:need check pthread is DETACHED

masayuki2009 commented on PR #5929:
URL: https://github.com/apache/incubator-nuttx/pull/5929#issuecomment-1092331522

   @anjiahao1 @Ouss4 
   I noticed that the ostest failed with esp32-devkitc:smp (real board, not QEMU).
   If I revert this PR locally, it works.
   
   ```
   sem_waiter: Starting wait for condition
   cancel_test: Canceling thread
   cancel_test: Joining
   cancel_test: PASS pthread_join failed with status=ESRCH
   cancel_test: Test 5: Non-cancelable threads
   cancel_test: Re-starting thread (non-cancelable)
   restart_thread: Destroying cond
   restart_thread: Destroying mutex
   restart_thread: Re-starting thread
   start_thread: Initializing mutex
   start_thread: Initializing cond
   start_thread: Starting thread
   start_thread: Yielding
   sem_waiter: Taking mutex
   sem_waiter: Starting wait for condition
   sem_waiter: Setting non-cancelable
   cancel_test: Canceling thread
   [CPU0] xtensa_panic: Unhandled Exception 2 task: pt-0x400e196c
   [CPU0] xtensa_dumpstate: CPU0:
   [CPU0] xtensa_registerdump:    PC: 4008010f    PS: 00040536
   [CPU0] xtensa_registerdump:    A0: 00000002    A1: 3ffeb5a0    A2: 00000002    A3: 3ffe52dc
   [CPU0] xtensa_registerdump:    A4: 3ffb01fc    A5: 20000000    A6: 3ffb0178    A7: 00000001
   [CPU0] xtensa_registerdump:    A8: 3ffe52dc    A9: 3ffeb580   A10: 00000000   A11: 00000002
   [CPU0] xtensa_registerdump:   A12: 3ffb0344   A13: 3ffb0348   A14: 00060222   A15: 00000000
   [CPU0] xtensa_registerdump:   SAR: 0000001f CAUSE: 0000001d VADDR: ffffffd2
   [CPU0] xtensa_registerdump:  LBEG: 00000000  LEND: 00000000  LCNT: 00000000
   [CPU0] xtensa_dumpstate: sp:     3ffb0e10
   [CPU0] xtensa_dumpstate: IRQ stack:
   [CPU0] xtensa_dumpstate:   base: 3ffb0690
   [CPU0] xtensa_dumpstate:   size: 00000800
   [CPU0] xtensa_dumpstate:   used: 000002d0
   [CPU0] xtensa_stackdump: 3ffb0e00: 800d57a6 3ffb0e50 00000000 3f4001db 00000000 3ffb0e70 00000002 3ffeb518
   [CPU0] xtensa_stackdump: 3ffb0e20: 3ffe96d8 3ffb0e30 00000008 3ffb3018 3ffb1690 00001ff8 3ffb0690 3ffe5258
   [CPU0] xtensa_stackdump: 3ffb0e40: 40080945 3ffb0e70 00000002 3ffeb518 3f40023e 00000002 3ffe53a0 00000001
   [CPU0] xtensa_stackdump: 3ffb0e60: 00040023 3ffb0e90 00040536 00040026 3ffe52dc 3ffeb580 00000000 00000002
   [CPU0] xtensa_dumpstate: sp:     3ffeb5a0
   [CPU0] xtensa_dumpstate: User stack:
   [CPU0] xtensa_dumpstate:   base: 3ffe96d8
   [CPU0] xtensa_dumpstate:   size: 00001ff8
   [CPU0] xtensa_dumpstate:   used: 00000248
   [CPU0] xtensa_stackdump: 3ffeb5a0: 800de6b3 3ffeb5e0 ffffffff 3ffe5258 00000000 3ffeb5e0 ffffffff 3ffe5258
   [CPU0] xtensa_stackdump: 3ffeb5c0: 3ffe70bc 00000001 00000000 00000000 800e6181 3ffeb610 ffffffff 00060220
   [CPU0] xtensa_stackdump: 3ffeb5e0: ffffffff 00000000 00060422 00000084 3ffe96b8 00000000 00060022 00000084
   [CPU0] xtensa_stackdump: 3ffeb600: 800e5c1c 3ffeb630 00001021 00000000 0000001f 3f4043c2 00000000 3ffb3fa6
   [CPU0] xtensa_stackdump: 3ffeb620: 800e19e3 3ffeb650 00000000 00000000 3ffe5258 3ffe71a3 00000000 3ffb0330
   [CPU0] xtensa_stackdump: 3ffeb640: 800de68c 3ffeb670 00000000 3ffb22dc 0000000c 0000001e 3ffb22d8 00000026
   [CPU0] xtensa_stackdump: 3ffeb660: 800e4778 3ffeb690 400e196c 00000000 00060720 3ffe9160 00000000 00000000
   [CPU0] xtensa_stackdump: 3ffeb680: 00000000 3ffeb6b0 3ffe5258 400de684 00000000 3ffe5258 00000001 00000000
   [CPU0] xtensa_stackdump: 3ffeb6a0: 00000000 3ffeb6d0 00000000 00000000 00000001 3ffe70bc 00000000 00000000
   [CPU0] xtensa_showtasks:    PID    PRI   CPU      USED     STACK   FILLED    COMMAND
   [CPU0] xtensa_showtasks:   ----   ----  ----       784      2048    38.2%    irq
   [CPU0] xtensa_dump_task:      0      0     0       560      3040    18.4%    CPU0 IDLE
   [CPU0] xtensa_dump_task:      1      0     1       200      3040     6.5%    CPU1 IDLE
   [CPU0] xtensa_dump_task:      2    100     0      1528      3032    50.3%    nsh_main
   [CPU0] xtensa_dump_task:     38    100     0       584      8184     7.1%    pt-0x400e196c
   [CPU0] xtensa_dump_task:     23    100     0      1096      2024    54.1%    ostest
   [CPU0] xtensa_dump_task:     24    100     0      1112      8120    13.6%    ostest
   ```
   


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org