chxj19 commented on issue #900: 如何在bthread_mutex_t死锁问题时查看bthread的堆栈
URL: https://github.com/apache/incubator-brpc/issues/900#issuecomment-524751456
 
 
   非常感谢,刚刚我试了一下,可以看到死锁bthread的堆栈信息了。
   但是有部分的bthread frame出现了如下的报错:
   
   ```
   (gdb) bthread_frame 4
   Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 
0x8: 
   Error occurred in Python command: Cannot access memory at address 0x8
   (gdb) bt
   #0  0x0000000000922b0b in jump_stack (to=<optimized out>, from=<optimized 
out>) at /root/incubator-brpc-0.9.5/src/bthread/stack_inl.h:129
   #1  bthread::TaskGroup::sched_to (pg=0x0, next_meta=0x7ffd67ea77f0) at 
/root/incubator-brpc-0.9.5/src/bthread/task_group.cpp:601
   (gdb) bthread_frame 5
   Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 
0x8: 
   Error occurred in Python command: Cannot access memory at address 0x8
   (gdb) bt
   #0  0x0000000000922b3f in bthread::TaskGroup::sched_to (pg=0x0, 
pg@entry=<error reading variable: Cannot access memory at address 0x8>, 
next_meta=<error reading variable: Cannot access memory at address 0x8>)
       at /root/incubator-brpc-0.9.5/src/bthread/task_group.cpp:626
   Cannot access memory at address 0x8
   ```
   看上去像是计算地址时出现了一点问题?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to