nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nuttx] btashton commented on issue #954: x86_64 fails ostest if PRIORITY_INHERITANCE is enabled
Date Sun, 03 May 2020 21:51:56 GMT

btashton commented on issue #954:
URL: https://github.com/apache/incubator-nuttx/issues/954#issuecomment-623188117


   @patacongo If I place a breakpoint at the end of the waiter function this is what I see
on the first hit (thread 1).  The semaphore still had thread 1 in its holder.  I see the priority
is returned to what I would expect for the thread, but it should not be attached to the semaphore
anymore.
   ```
   Breakpoint 1, waiter_func (parameter=0x1) at sem.c:111
   111	  printf("waiter_func: Thread %d done\n",  id);
   (gdb) p sem
   $1 = {semcount = -1, flags = 0 '\000', hhead = 0x10097bca0 <g_holderalloc>}
   (gdb) p *sem->hhead
   $2 = {flink = 0x0, htcb = 0x101988290, counts = 1}
   (gdb) p *sem->hhead->htcb
   $3 = {flink = 0x102188bd0, blink = 0x0, group = 0x101587650, pid = 4, start = 0x10090d639
<pthread_start>, 
     entry = {pthread = 0x10094472e <waiter_func>, main = 0x10094472e <waiter_func>},

     sched_priority = 191 '\277', init_priority = 191 '\277', npend_reprio = 0 '\000', 
     pend_reprios = '\000' <repeats 15 times>, base_priority = 191 '\277', task_state
= 3 '\003', flags = 1, 
     lockcount = 0, waitdog = 0x0, adj_stack_size = 4194288, stack_alloc_ptr = 0x101988710,

     adj_stack_ptr = 0x101d886f8, waitsem = 0x0, sigprocmask = 0, sigwaitmask = 0, sigpendactionq
= {
       head = 0x0, tail = 0x0}, sigpostedq = {head = 0x0, tail = 0x0}, sigunbinfo = {si_signo
= 0 '\000', 
       si_code = 0 '\000', si_errno = 0 '\000', si_value = {sival_int = 0, sival_ptr = 0x0},
si_pid = 0, 
       si_status = 0}, msgwaitq = 0x0, pthread_data = {0x0, 0x0, 0x0, 0x0}, pterrno = 0, xcp
= {
       sigdeliver = 0x0, saved_rip = 0, saved_rflags = 0, saved_rsp = 0, regs = {64, 3843995729920,
0, 
         281470681751424, 0 <repeats 63 times>, 16, 16, 1, 0, 4325934624, 0 <repeats
13 times>, 4304610883, 8, 
         6, 4325934592, 16}}, name = "<pthread>", '\000' <repeats 22 times>}
   (gdb) 
   ```


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

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



Mime
View raw message