Open
bpftoo-debugsource 缺少源文件 #40
过把瘾Add on  Dec 9, 2025
过把瘾
过把瘾
Dec 9, 2025 Create

【缺陷描述】:请补充详细的缺陷问题现象描述

bpftool-debugsource 包缺少部分源文件导致调试异常

已安装对应的bpftool-debuginfo和bpftoo-debugsource包,但缺少源文件

# gdb bpftool
Reading symbols from bpftool...
Reading symbols from /usr/lib/debug//usr/sbin/bpftool-7.2.0-1.oe2403sp2.x86_64.debug...
(gdb) b main
Breakpoint 1 at 0xcf50
(gdb) r
Breakpoint 1, 0x0000555555560f50 in main ()

(gdb) l
1       //===-- WindowsManifestMerger.cpp ------------------------------*- C++ -*-===//
2       //
3       // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4       // See https://llvm.org/LICENSE.txt for license information.
5       // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6       //
7       //===---------------------------------------------------------------------===//
8       //
9       // This file implements the .manifest merger class.
10      //
(gdb) bt
#0  0x0000555555560f50 in main ()
# rpm -ql bpftool-debugsource-7.2.0-1.oe2403sp2.x86_64.rpm
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/linux
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/linux/err.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/linux/ring_buffer.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi/linux
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi/linux/bpf.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi/linux/btf.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi/linux/if_link.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi/linux/netdev.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi/linux/netlink.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi/linux/perf_event.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/include/uapi/linux/pkt_cls.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/bpf.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/bpf.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/bpf_gen_internal.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/bpf_prog_linfo.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/btf.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/btf.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/btf_dump.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/gen_loader.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/hashmap.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/hashmap.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/libbpf.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/libbpf.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/libbpf_errno.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/libbpf_internal.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/libbpf_legacy.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/libbpf_probes.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/linker.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/netlink.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/nlattr.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/nlattr.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/relo_core.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/relo_core.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/skel_internal.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/str_error.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/str_error.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/strset.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/strset.h
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/usdt.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/zip.c
/usr/src/debug/bpftool-7.2.0-1.oe2403sp2.x86_64/libbpf/src/zip.h

main函数位于/usr/src/debug/bpftool-7.2.0-1.x86_64/src/main.c,缺少该文件,原因是bpftool编译时默认没有-g

一、缺陷信息

【缺陷所属的os版本】(如openEuler-22.03-LTS,参考命令"cat /etc/os-release"结果)

实际影响所有版本

# cat /etc/openEuler-release 
openEuler release 24.03 (LTS-SP2)

【内核版本】(如kernel-5.10.0-60.138.0.165,参考命令"uname -r"结果)

与内核无关

【缺陷所属软件及版本号】(如kernel-5.10.0-60.138.0.165,参考命令"rpm -q 包名"结果)

# rpm -qi bpftool-debugsource-7.2.0-1.oe2403sp2.x86_64.rpm 
Name        : bpftool-debugsource
Version     : 7.2.0
Release     : 1.oe2403sp2
Architecture: x86_64
Install Date: (not installed)
Group       : Development/Debug
Size        : 1395412
License     : GPL-2.0-only
Signature   : RSA/SHA256, Thu Jun 19 10:59:12 2025, Key ID 3b477c60b675600b
Source RPM  : bpftool-7.2.0-1.oe2403sp2.src.rpm
Build Date  : Thu Jun 19 10:59:01 2025
Build Host  : dc-64g.compass-ci
Packager    : http://openeuler.org
URL         : https://www.kernel.org/
Summary     : Debug sources for package bpftool
Description :
This package provides debug sources for package bpftool.
Debug sources are useful when developing applications that use this
package or when debugging this package.

【环境信息】
硬件信息

  • 提供跟硬件相关的信息,如架构、cpu和内存规格等
  • 虚拟机场景,额外补充宿主机os版本类型

软件信息

  • 跟缺陷所属软件相关的其它软件版本信息(如软件包构建失败由gcc引起,请填写gcc的版本号)

网络信息

  • 如果有特殊组网,请提供网络拓扑信息以及网络数据走向

【问题复现步骤】:请描述具体的操作步骤

【实际结果】,请描述出问题的结果和影响
【期望结果】,请描述出期望的结果和影响
【其他相关附件信息】
比如系统message日志/组件日志、dump信息、图片等

【缺陷详情及分析指导参考链接】

二、缺陷分析结构反馈
影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

likedislike
过把瘾过把瘾
Dec 9, 2025 创建了缺陷
openeuler-ci-bot
openeuler-ci-botCollaborators
Dec 9, 2025 Comments:

Bug Issue Usage Guide

  • To change the issue status to 已验收, 已挂起, or 已取消, you need to perform the operation by commenting.
  • If the issue is not associated with a milestone, either the issue creator or repository maintainer can change its status to one of the three states by commenting as shown in the table below.
  • If the issue is associated with a milestone, refer to the table below.
Comment Target Status Who Can Do It
/state2accepted 已验收 Issue creator
/state2suspended 已挂起 Release managerment SIG maintainer
/state2cancelled 已取消 QA SIG maintainer

Notice ❗

  • When adding a milestone, if the current issue status is 已验收, 已挂起, or 已取消, manually change the status to 待办的.
likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Dec 9, 2025 Comments:

Hi kiraskyler, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-ebpf, and any of the maintainers: @wonleing , @MrRlu , @weiyj_lk , @DevinRTK , @huyd12 , @happyseeker , @bigclouds99 , any of the committers: @nlgwcy , @bitcoffee , @supercharge , @LemmyHuang , @linford-wu

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Dec 9, 2025 将负责人设置为LemmyHuang
openeuler-ci-botopeneuler-ci-botCollaborators
Dec 9, 2025 修改了描述
openeuler-ci-bot
openeuler-ci-botCollaborators
Dec 9, 2025 Comments:

@wonleing , @MrRlu , @weiyj_lk , @DevinRTK , @huyd12 , @happyseeker , @bigclouds99 , @LemmyHuang , @bitcoffee , @linford-wu , @nlgwcy , @supercharge
以下的要求不是强制性的, 未按模板评论时对issue无任何影响
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:

指令 指令说明 使用权限
/check-issue 触发defect-manager校验 不限
/reason xxx /reason +挂起或取消条件 不限

影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

abi变化(是/否):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

缺陷issue处理具体操作请参考:
https://gitee.com/Coopermassaki/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://gitee.com/help/articles/4142

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Dec 9, 2025 添加了   sig/sig-ebpf 标签
openeuler-ci-botopeneuler-ci-botCollaborators
Dec 9, 2025 将计划截止日期设置为2026-01-09
openeuler-ci-botopeneuler-ci-botCollaborators
Dec 9, 2025 添加了   DEFECT/UNFIXED 标签
openeuler-ci-botopeneuler-ci-botCollaborators
Dec 9, 2025 将计划开始日期设置为2025-12-09
过把瘾过把瘾
Dec 9, 2025 关联了src-openEuler/bpftool Pull Request !15
过把瘾过把瘾
Dec 9, 2025 关联了src-openEuler/bpftool Pull Request !16