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

brpcDummyServer成功启动但无法工作问题 #2649

Closed
Georgexzp opened this issue May 23, 2024 · 0 comments
Closed

brpcDummyServer成功启动但无法工作问题 #2649

Georgexzp opened this issue May 23, 2024 · 0 comments

Comments

@Georgexzp
Copy link

我启动了一个带有brpcDummyServer的进程并希望他能够正常工作,启动过程没有异常,brpc也打印了服务已在指定端口号启动,但是通过curl 命令却一直卡住没有回复。
我对比了一个示例程序和我的程序的pstack,两者都包含如下线程的堆栈
#0 0x00007fd1ee58d9fd in nanosleep () from /lib64/libc.so.6
#1 0x00007fd1ee5be2d4 in usleep () from /lib64/libc.so.6
#2 0x00007fd1ef2d0162 in bvar::detail::SamplerCollector::run() () from /lib64/libbrpc.so
#3 0x00007fd1ef2d0ca0 in bvar::detail::SamplerCollector::sampling_thread(void*) () from /lib64/libbrpc.so
#4 0x00007fd1edba8ea5 in start_thread () from /lib64/libpthread.so.0
#5 0x00007fd1ee5c6b0d in clone () from /lib64/libc.so.6

但是能够运行工作的示例程序包含bthread的堆栈,这个我在自己的程序中没有。

我想问下这种情况一般是怎么造成的,我猜测和我cmakelists链接brpc的方式有关但不知道如何定位,本身我自己的程序也没有在dummyserver启动时报错

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

1 participant