jamesge commented on issue #903: tools: add gdb_bthread_stack.py
URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-533451396
@lorinlee 上面提及的改进有进展么?
This is an automated message from the Apache Git Service.
jamesge commented on issue #903: tools: add gdb_bthread_stack.py
URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525118852
目前这个脚本还会时不时报个内部错误,进而把attach的进程杀死,这样加到tools目录下的话万一被其他用户对线上进程使用,风险还是很高。
This is an
jamesge commented on issue #903: tools: add gdb_bthread_stack.py
URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525118553
bthread_list中显示的数目和bthread_num的不一致
```
(gdb) bthread_begin
Active bthreads: 25, will display 25 bthreads
Enter bthread debug mode, do
jamesge commented on issue #903: tools: add gdb_bthread_stack.py
URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525117338
```
(gdb) bthread_meta
Python Exception invalid literal for int() with base
10: '':
Error occurred in Python command: invalid literal
jamesge commented on issue #903: tools: add gdb_bthread_stack.py
URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-524727431
就是example/multi_threaded_echo_c++用Makefile编译后按上述流程操作的结果。os: ubuntu
16.04,gcc: 5.4, gdb:7.11.1, python: 2.7.12
jamesge commented on issue #903: tools: add gdb_bthread_stack.py
URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-524717659
```
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".