kvcache-ai / kvcache-ai/ktransformers

[Bug] 使用Release编译的balance_serv,运行时卡在sched_rpc started with PID: ,dmesg查看出现段错误

Open
#1,464 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
19.5k
Forks
1.6k
Avg merge
19h 32m
Merged PRs (30d)
27

Description

### 检查清单

- [ ] 1. 我已经搜索过相关问题,但未能获得预期的帮助
- [x] 2. 该问题在最新版本中尚未修复
- [ ] 3. 请注意,如果您提交的BUG相关 issue 缺少对应环境信息和最小可复现示例,我们将难以复现和定位问题,降低获得反馈的可能性
- [ ] 4. 如果您提出的不是bug而是问题,请在讨论区发起讨论 https://github.com/kvcache-ai/ktransformers/discussions。否则该 issue 将被关闭
- [ ] 5. 为方便社区交流,我将使用中文/英文或附上中文/英文翻译(如使用其他语言)。未附带翻译的非中文/英语内容可能会被关闭

### 问题描述

[Bug] 使用Release编译的balance_serv,运行时卡在sched_rpc started with PID: ,dmesg查看出现段错误
project(balance_serve VERSION 0.1.0)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "-Og -march=native -Wall -Wextra -g -fPIC")
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS "-O3 -march=native -Wall -Wextra -fPIC ")
set(CMAKE_BUILD_TYPE "Release")

### 复现步骤

用Release 编译 balance_serve 然后运行会出错,用Debug则不会。

### 环境信息

rocky linux 9.5

Contributor guide

Open the contributing guide

Research direction

Start with the balance_serve build configuration and its sched_rpc startup path, then reproduce the Release-only crash on Rocky Linux 9.5 and inspect the dmesg segmentation-fault output. Compare the Release and Debug builds to isolate the cause; done means balance_serve starts successfully in Release without a segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, linux
Domain
backend, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.