Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法使用brpc_print_bthread #1

Open
kof02guy opened this issue Oct 12, 2021 · 10 comments
Open

无法使用brpc_print_bthread #1

kof02guy opened this issue Oct 12, 2021 · 10 comments

Comments

@kof02guy
Copy link

我使用这个工具

(gdb) source coroutine_print/brpc_coroutine_view.gdb
(gdb) brpc_print_bthread
value requires 524288 bytes, which is more than max-value-size
(gdb) set max-value-size 524288
(gdb) brpc_print_bthread
Cannot access memory at address 0x0
看起来无法打印出bthread。请问这一般是由于什么原因造成的呢?

@hnwyllmm
Copy link
Owner

非常感谢你的反馈。
仅仅通过这个信息不能确定是哪里出了问题。
能不能帮我调试一下,可以在脚本中加 printf 信息,看看是哪里出了问题。
我现在已经没有brpc的环境可以用。
感谢

@hnwyllmm
Copy link
Owner

再额外问一下,这个gdb脚本中提供的函数 叫 brpc_print_bthreads,但是你的信息中显示的是 brpc_print_bthread,少了一个s,为什么可以正常执行?

@kof02guy
Copy link
Author

kof02guy commented Oct 12, 2021 via email

@hnwyllmm
Copy link
Owner

梦幻小百科_虾米_17173梦幻西游2游戏专区

???

@kof02guy
Copy link
Author

kof02guy commented Oct 12, 2021 via email

@hnwyllmm
Copy link
Owner

邮件签名牛逼啊。
core文件能不能调试出来?
core文件不大的话,也可以发给我,我来调试一下。不知道BRPC这么久了,升级后会不会影响到gdb脚本

@kof02guy
Copy link
Author

这个core文件,几十G,不太方便了

@hnwyllmm
Copy link
Owner

你的服务器是ARM还是x86_64?

@kof02guy
Copy link
Author

是x86_64的架构

@feng-y
Copy link

feng-y commented Mar 3, 2023

No type "ResourcePoolbthread::TaskMeta" within class or namespace "butil"
使用这个脚本报错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants