服务端分别在两个端口启动protobuf server和 thrift server后,访问任一端口的/vars/* coredump
- Dominant language
- C++
- Stars
- 17.6k
- Forks
- 4.1k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 69
Description
**Describe the bug (描述bug)**
服务端分别在两个端口启动brpc server和 thrift server后,访问任一端口的/vars/* coredump
**To Reproduce (复现方法)**
1、主线程启动protobuf server;
2、另外创建一个线程,在新的端口启动thrift server;
3、curl 任一端口的 /vars/*
**Expected behavior (期望行为)**
1、正常返回brpc的统计信息
**Versions (各种版本)**
OS:
centos7.2
Compiler:
gcc 11
brpc:
0.9.6
protobuf:
3.8.0
thrift
0.16.0
**Additional context/screenshots (更多上下文/截图)**

Contributor guide
Research direction
Reproduce the crash by starting a protobuf server and a thrift server on separate ports, then curling /vars/* on each port. Start by collecting the crash backtrace and tracing the /vars/* handling and server startup paths. Done means both ports return brpc statistics without a coredump.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100