apache / apache/brpc

brpc使用clang编译时,运行example/streaming_echo_c++会出现core dump

Open
#2,781 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

**Describe the bug (描述bug)**
brpc使用clang编译时,运行example/streaming_echo_c++会出现core dump

**To Reproduce (复现方法)**
编译brpc:
`mkdir build && cd build
export CXX=clang++
cmake .. -G Ninja && ninja
`
编译/example/streaming_echo_c++
`mkdir build && cd build
cmake .. -G Ninja && ninja `

**Expected behavior (期望行为)**
程序正常运行

**Versions (各种版本)**
OS: ubuntu
Compiler: Ubuntu clang version 15.0.7
brpc: 1.10.0及以上版本
protobuf:

**Additional context/screenshots (更多上下文/截图)**
![image](https://github.com/user-attachments/assets/163b180e-81dc-4204-9473-f8615482e156)

Contributor guide

Open the contributing guide

Research direction

Start by building brpc and example/streaming_echo_c++ with CMake, Ninja, and Ubuntu clang 15.0.7 as described, then reproduce the core dump and capture the crash location and stack trace; compare the runtime behavior with another compiler if useful. Done means the example runs normally without a core dump when built with clang.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.