已关闭
【26.09-alpha】syscare build 制作 Redis 热补丁失败 #40
wang-kun-1005创建于  9月2日关闭于  25 天前
wang-kun-1005
wang-kun-1005成员
9月2日 创建

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

当软件编译同时开启LTO 链接时优化 和 debuginfo 调试信息时,产物会生成 .gnu.debuglto_.debug_info、.gnu.debuglto_.debug_abbrev 特殊调试段。
使用 syscare-build 制作热补丁时,upatch‑diff 在符号重定位阶段解析失败,热补丁构建终止,返回码 255。

一、缺陷信息

syscare-1.2.2-8.oe2609

【缺陷所属的os版本】

openEuler-26.09

【内核版本】

openEuler-26.09

【缺陷所属软件及版本号】

syscare-1.2.2-8.oe2609

【环境信息】

硬件信息

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

软件信息

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

网络信息

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

【问题复现步骤】

  1. 安装依赖并构建redis6-6.0.11-4:
    dnf install -y elfutils-libelf-devel openssl-devel flex python3-devel rpm-build bison cmake make gcc kpatch-runtime telnet perl-devel bind-utils syscare syscare-build wget
    systemctl start syscare.service
    rpmdev-setuptree
    wget https://dl-cdn.openeuler.openatom.cn/openEuler-20.03-LTS-SP2/update/source/Packages/redis6-6.0.11-4.oe1.src.rpm
    rpm -ivh redis6-6.0.11-4.oe1.src.rpm
    cd /root/rpmbuild/SPECS
    dnf -y builddep redis6.spec
    rpmbuild -ba redis6.spec
    cp /root/rpmbuild/SRPMS/* /root/
    cp "/root/rpmbuild/RPMS/$(arch)"/* /root/
    cd /root
    rpm -ivh redis6-6.0.11-4.riscv64.rpm
  2. 应用热补丁:
    wget https://github.com/redis/redis/commit/5674b0057ff2903d43eaff802017eddf37c360f8.patch -O redis.patch

syscare build --patch-name patch_redis_0001 --source redis6-6.0.11-4.src.rpm --debuginfo redis6-debuginfo-6.0.11-4.riscv64.rpm --patch redis.patch

【实际结果】

执行 syscare-build 构建热补丁,upatch‑diff 报错:Cannot find replacement symbol for '.gnu.debuglto_.debug_abbrev+0' reference.,热补丁构建失败,退出码 255。

【期望结果】

syscare-build 正常生成热补丁包。

【其他相关附件信息】

image.png

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

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

缺陷严重等级:(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
wang-kun-1005wang-kun-1005成员
9月2日 关联了里程碑:openEuler-26.09-DevStation-alpha
openeuler-ci-botopeneuler-ci-bot成员
9月2日 修改了issue 的描述
openeuler-ci-bot
openeuler-ci-bot成员
9月2日 评论:

以下的要求不是强制性的, 未按模板评论时对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://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://docs.atomgit.com/docs/help/home/org_project/pullrequests/pr-related-issue

likedislike
openeuler-ci-botopeneuler-ci-bot成员
9月2日 将 wang-kun-1005 设为负责人
openeuler-ci-botopeneuler-ci-bot成员
9月2日 添加了label:DEFECT/UNFIXED
openeuler-ci-botopeneuler-ci-bot成员
9月2日 添加了label:sig/sig-ops
openeuler-ci-bot
openeuler-ci-bot成员
9月2日 评论:

Welcome To openEuler Community

Hey @wang-kun-1005 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: sig-ops ,
and any of the maintainers: @Gemshunter, @MrRlu, @byrobins, @hjx_gitff, @lostway1, @luanjianhai, @snoweay, @solarhu, @yangzhao_kl ,
and any of the committers: @jvle, @renoseven .

likedislike
eshinereshiner
26 天前 关联了pull request:ignore GCC LTO generated sections
openeuler-ci-botopeneuler-ci-bot成员
25 天前 关闭了 issue
openeuler-ci-botopeneuler-ci-bot成员
25 天前 issue状态由 待办的 改变为 已完成
openeuler-ci-botopeneuler-ci-bot成员
25 天前 移除了负责人 wang-kun-1005
openeuler-ci-botopeneuler-ci-bot成员
25 天前 删除了label:DEFECT/UNFIXED
openeuler-ci-bot
openeuler-ci-bot成员
25 天前 评论:

@wayne1901 未对受影响版本排查/abi变化进行分析

likedislike
openeuler-ci-botopeneuler-ci-bot成员
25 天前 关联了pull request:[sync] PR-286: ignore GCC LTO generated sections
wang-kun-1005
wang-kun-1005成员
5 天前 评论:

image.png验收通过

likedislike
wang-kun-1005wang-kun-1005成员
5 天前 issue状态由 已完成 改变为 已验收
openeuler-ci-bot
openeuler-ci-bot成员
5 天前 评论:

@wayne1901 未对受影响版本排查/abi变化进行分析

likedislike