apache / apache/brpc

服务端分别在两个端口启动protobuf server和 thrift server后,访问任一端口的/vars/* coredump

Open
#2,269 1 comment 0 reactions 0 assignees View on GitHub
bug
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 (更多上下文/截图)**
![image](https://github.com/apache/brpc/assets/38377819/8b0a5e8c-c77d-4a39-9228-e4338a556645)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.