hartmannathan commented on PR #6318:
URL: https://github.com/apache/incubator-nuttx/pull/6318#issuecomment-1257196243

   Sadly, no joy with `tm4c129e-launchpad:ostest` (+ 
`CONFIG_PRIORITY_INHERITANCE=y` added manually) either.
   
   Although `b-g474e-dpow1` is STM32 and `tm4c129e-launchpad` is Tiva, they are 
both armv7-m. However, they seem to be crashing in different parts of the test.
   
   I am beginning to wonder if the problem is not in priority inheritance, but 
in something else that is manifested because of conditions created in the 
priority inheritance test.
   
   Below is the log.
   
   ```
   user_main: priority inheritance test
   priority_inheritance: Started
   priority_inheritance: Starting lowpri_thread-1 (of 3) at 1
   priority_inheritance: Set lowpri_thread-1 priority to 1
   priority_inheritance: Starting lowpri_thread-2 (of 3) at 1
   lowpri_thread-1: Started
   priority_inheritance: Set lowpri_thread-2 priority to 1
   lowpri_thread-1: initial priority: 1
   priority_inheritance: Starting lowpri_thread-3 (of 3) at 1
   lowpri_thread-2: Started
   priority_inheritance: Set lowpri_thread-3 priority to 1
   lowpri_thread-1: Waiting for the midle pri task to run
   priority_inheritance: Waiting...
   lowpri_thread-2: initial priority: 1
   lowpri_thread-3: Started
       g_middlestate:  0
   lowpri_thread-2: Waiting for the midle pri task to run
   lowpri_thread-3: initial priority: 1
       g_highstate[0]: 0
       g_middlestate:  0
   lowpri_thread-3: Waiting for the midle pri task to run
       I still have a count on the semaphore
       g_highstate[0]: 0
       g_middlestate:  0
       I still have a count on the semaphore
       g_highstate[0]: 0
       I still have a count on the semaphore
   lowpri_thread-1: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   lowpri_thread-2: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   lowpri_thread-3: Waiting for the midle pri task to run
       g_middlestate:  0
       g_highstate[0]: 0
       I still have a count on the semaphore
   priority_inheritance: Starting medpri_thread at 99
   priority_inheritance: Set medpri_thread priority to 99
   priority_inheritance: Waiting...
   medpri_thread: Started ... I won't let go of the CPU!
   priority_inheritance: Starting highpri_thread-1 (of 1) at 255
   priority_inheritance: Set highpri_thread-1 priority to 255
   highpri_thread-1: Started
   priority_inheritance: Waiting for highpri_thread-1 to complete
   highpri_thread-1: Calling sem_wait()
   lowpri_thread-3: Sem count: -1, No. highpri thread: 1
   highpri_thread-1: SUCCESS midpri_thread is still running!
   highpri_thread-1: Okay... I'm done!
   priority_inheritance: Waiting for medpri_thread to complete
   medpri_thread: Okay... I'm done!
   priority_inheritance: Waiting for lowpri_thread-1 to complete
   lowpri_thread-2: Sem count: 1, No. highpri thread: 0
   lowpri_thread-2: SUCCESS the middle priority task has already exitted!
                  g_middlestate:  3 sem count=1
                  g_highstate[0]: 3
   lowpri_thread-2: SUCCESS priority before sem_post: 1
   lowpri_thread-1: Sem count: 2, No. highpri thread: 0
   lowpri_thread-3: SUCCESS priority before sem_post: 255
   lowpri_thread-2: SUCCESS final priority: 1
   lowpri_thread-1: SUCCESS the middle priority task has already exitted!
   lowpri_thread-3: SUCCESS final priority: 1
   lowpri_thread-2: Okay... I'm done!
                  g_middlestate:  3 sem count=2
   lowpri_thread-3: Okay... I'm done!
                  g_highstate[0]: 3
   lowpri_thread-1: SUCCESS priority before sem_post: 1
   lowpri_thread-1: SUCCESS final priority: 1
   lowpri_thread-1: Okay... I'm done!
   priority_inheritance: Waiting for lowpri_thread-2 to complete
   priority_inheritance: Waiting for lowpri_thread-3 to complete
   priority_inheritance: Restoraup_assert: Assertion failed at 
file:assert/lib_sta0
   arm_registerdump: R0: 00000000 R1: 2000876c R2: 000466a4  R3: 2000876c
   arm_registerdump: R4: 00000000 R5: 00000000 R6: 00000000  FP: 200114b0
   arm_registerdump: R8: 00000000 SB: 00000000 SL: 00000000 R11: 00000000
   arm_registerdump: IP: 00000000 SP: 20011478 LR: 000169bf  PC: 0001698c
   arm_registerdump: xPSR: 61000000 PRIMASK: 00000000 CONTROL: 00000000
   arm_registerdump: EXC_RETURN: fffffff9
   arm_dump_stack: User Stack:
   arm_dump_stack: sp:     200114b0
   arm_dump_stack:   base: 20011260
   arm_dump_stack:   size: 000003c0
   arm_stackdump: 200114a0: 000100c2 00016419 00000001 00000000 200114c0 
20012bb0 4
   arm_stackdump: 200114c0: 00000000 0001650d 00000039 20012c30 00000039 
000466a8 4
   arm_stackdump: 200114e0: fffffff5 00011c37 00000039 000466a8 00000001 
000466a4 3
   arm_stackdump: 20011500: deadbeef 000466a4 00000000 0002a113 00000000 
20011594 0
   arm_stackdump: 20011520: 20010000 00000003 0004fc28 200115f4 00000002 
fffffff5 b
   arm_stackdump: 20011540: 00000000 00000000 200115f4 00000003 0000df00 
00000000 4
   arm_stackdump: 20011560: 00016868 000466a4 20010a9c 0000ab25 200115f4 
00000003 0
   arm_stackdump: 20011580: 00000000 000466a4 00000034 000016cb 20011e7c 
00000003 4
   arm_stackdump: 200115a0: 000000c8 000005cb 00000000 00000000 deadbeef 
00000000 3
   arm_stackdump: 200115c0: deadbeef 2001168c 00000002 000466a4 00000000 
00001c5b 0
   arm_stackdump: 200115e0: 2001168c 00000003 2001df00 00000000 40000000 
20011640 0
   arm_stackdump: 20011600: 00000000 00000000 00000000 00000000 00000000 
00000000 9
   arm_showtasks:    PID    PRI     STACK      USED   FILLED    COMMAND
   arm_dump_task:      0      0      1000       880    88.0%!   Idle Task
   arm_dump_task:      1    224      1992       492    24.6%    hpwork 
0x200000a0
   arm_dump_task:      2    100      1992       492    24.6%    lpwork 
0x200000b4
   arm_dump_task:      3    100      2000      1772    88.6%!   nsh_main
   arm_dump_task:      4    100      1984       888    44.7%    Telnet daemon 
0x200
   arm_dump_task:      5     80      2024      1096    54.1%    netinit 0
   arm_dump_task:      6    100      2008      1180    58.7%    ostest
   arm_dump_task:      7    100      8112      1444    17.8%    ostest Arg1 
Arg2 A4
   up_assert: Assertion failed at file:armv7-m/arm_hardfault.c line: 173 task: 
Tas0
   arm_registerdump: R0: dc006160 R1: ffffffff R2: 200113d8  R3: dc006160
   arm_registerdump: R4: 00000000 R5: 00000000 R6: 00000000  FP: 200114b0
   arm_registerdump: R8: 00000000 SB: 00000000 SL: 00000000 R11: 00000000
   arm_registerdump: IP: 00000000 SP: 200112b8 LR: 00012c6b  PC: 000143a4
   arm_registerdump: xPSR: a1000000 PRIMASK: 00000001 CONTROL: 00000000
   arm_registerdump: EXC_RETURN: fffffff9
   arm_dump_stack: User Stack:
   arm_dump_stack: sp:     20011168
   arm_dump_stack:   base: 20011260
   arm_dump_stack:   size: 000003c0
   arm_dump_stack: ERROR: User Stack pointer is not within the stack
   arm_stackdump: 20011260: 0000000a 20000160 20012bb0 200112b8 00000001 
00000000 0
   arm_stackdump: 20011280: 200114b0 00000000 00000000 00000000 00000000 
fffffff9 f
   arm_stackdump: 200112a0: 200113d8 dc006160 00000000 00012c6b 000143a4 
a1000000 0
   arm_stackdump: 200112c0: dc006160 000466a4 01000000 00012c6b 00000038 
20000000 8
   arm_stackdump: 200112e0: 00046b43 00000000 00000000 200113ac 01730383 
000466a4 d
   arm_stackdump: 20011300: 00000000 00000000 dc006160 00000000 00000001 
000466a4 0
   arm_stackdump: 20011320: 00000010 20000160 20012bb0 000466a4 00000000 
000466a4 1
   arm_stackdump: 20011340: 200113d0 00046630 00000010 200113d0 00046b44 
2001137c 4
   arm_stackdump: 20011360: 00000000 000132b1 200113d4 200113a8 00046b44 
200113d4 c
   arm_stackdump: 20011380: 00000000 000466a4 00000058 0001228b 00001420 
00046b40 f
   arm_stackdump: 200113a0: 200113d4 200113ac 00000004 00013e35 00013da9 
00013f61 f
   arm_stackdump: 200113c0: 0000000c 000466a4 000003c0 000161df 00046b40 
dc006160 0
   arm_stackdump: 200113e0: 000005a4 00000011 00000008 00000020 2000e640 
2001141c 4
   arm_stackdump: 20011400: 00000000 20011a40 000003e8 20011e2c 00000033 
000003c0 0
   arm_stackdump: 20011420: 0466a420 46189b20 9a034b05 429a681b f010d001 
b005fab2 0
   arm_stackdump: 20011440: 02092020 012bb020 2061ac20 200466a4 00000000 
00000000 4
   arm_stackdump: 20011460: 00046b7c 00000000 00000000 00000000 200114b0 
000291af 5
   arm_stackdump: 20011480: 00001490 00040000 00000008 000466a4 00046cac 
000162a5 4
   arm_stackdump: 200114a0: 000100c2 0001641d 00000001 00000000 200114c0 
20012bb0 4
   arm_stackdump: 200114c0: 00000000 0001650d 00000039 20012c30 00000039 
000466a8 4
   arm_stackdump: 200114e0: fffffff5 00011c37 00000039 000466a8 00000001 
000466a4 3
   arm_stackdump: 20011500: deadbeef 000466a4 00000000 0002a113 00000000 
20011594 0
   arm_stackdump: 20011520: 20010000 00000003 0004fc28 200115f4 00000002 
fffffff5 b
   arm_stackdump: 20011540: 00000000 00000000 200115f4 00000003 0000df00 
00000000 4
   arm_stackdump: 20011560: 00016868 000466a4 20010a9c 0000ab25 200115f4 
00000003 0
   arm_stackdump: 20011580: 00000000 000466a4 00000034 000016cb 20011e7c 
00000003 4
   arm_stackdump: 200115a0: 000000c8 000005cb 00000000 00000000 deadbeef 
00000000 3
   arm_stackdump: 200115c0: deadbeef 2001168c 00000002 000466a4 00000000 
00001c5b 0
   arm_stackdump: 200115e0: 2001168c 00000003 2001df00 00000000 40000000 
20011640 0
   arm_stackdump: 20011600: 00000000 00000000 00000000 00000000 00000000 
00000000 9
   arm_showtasks:    PID    PRI     STACK      USED   FILLED    COMMAND
   arm_dump_task:      0      0      1000       880    88.0%!   Idle Task
   arm_dump_task:      1    224      1992       492    24.6%    hpwork 
0x200000a0
   arm_dump_task:      2    100      1992       492    24.6%    lpwork 
0x200000b4
   arm_dump_task:      3    100      2000      1772    88.6%!   nsh_main
   arm_dump_task:      4    100      1984       888    44.7%    Telnet daemon 
0x200
   arm_dump_task:      5     80      2024      1096    54.1%    netinit 0
   arm_dump_task:      6    100      2008      1180    58.7%    ostest
   arm_dump_task:      7    100      8112      1444    17.8%    ostest Arg1 
Arg2 A4
   ```
   


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