已关闭
syscare编译nginx热补丁失败 #249
xianshizhang创建于 8月24日关闭于 9月6日
8月24日 添加了label:sig/sig-ops
openeuler-ci-bot
8月24日 评论:
8月24日 评论:
Welcome To openEuler Community
Hey @xianshizhang , 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 .


8月24日 修改了issue 的描述
8月24日 修改了issue 的描述
8月25日 关联了里程碑:openEuler-26.09-DevStation-round2
9月3日 关联了pull request:upatch-diff: ignore .gnu.debuglto_ debug sections
9月6日 关闭了 issue
9月6日 issue状态由 待办的 改变为 已完成
【缺陷所属的os版本】
cat /etc/os-release
NAME="openEuler"
VERSION="26.09 (DevStation)"
ID="openEuler"
VERSION_ID="26.09"
PRETTY_NAME="openEuler 26.09 (DevStation)"
ANSI_COLOR="0;31"
【内核版本】
6.6.0-163.0.0.1.oe2609.x86_64
【缺陷所属软件及版本号】
rpm -qa|grep syscare syscare-1.2.2-8.oe2609.x86_64 syscare-build-1.2.2-8.oe2609.x86_64
【环境信息】
硬件信息
arm64、x86架构均涉及
软件信息
[root@openEuler ~]# rpm -qa|grep syscare
syscare-1.2.2-8.oe2609.x86_64
syscare-build-1.2.2-8.oe2609.x86_64
[root@openEuler ~]#
[root@openEuler ~]# rpm -qa|grep kpatch
kpatch-0.9.9-22.oe2609.x86_64
kpatch-runtime-0.9.9-22.oe2609.noarch
[root@openEuler ~]#
[root@openEuler ~]# rpm -qa|grep gcc
libgcc-12.3.1-105.oe2609.x86_64
gcc-12.3.1-105.oe2609.x86_64
gcc-c++-12.3.1-105.oe2609.x86_64
【问题复现步骤】
执行:syscare build --patch-name patch_nginx_0001 --source nginx-1.21.5-4.src.rpm --debuginfo nginx-debuginfo-1.21.5-4.x86_64.rpm --patch 0001-add-free-mem.patch
cat ./common/patch/0001-add-free-mem.patch
From caf1256c0f0327f36defc6034db35085c28e0371 Mon Sep 17 00:00:00 2001
From: l00455942 linmengmeng@huawei.com
Date: Mon, 20 Nov 2023 17:27:18 +0800
Subject: [PATCH] add free mem
src/http/ngx_http_request.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 013b715..77e4db2 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -8,6 +8,7 @@
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
+#include <stdlib.h>
static void ngx_http_wait_request_handler(ngx_event_t *ev);
@@ -387,6 +388,10 @@ ngx_http_wait_request_handler(ngx_event_t *rev)
volatile char *mem = malloc(sizeof(char) * 10 * 1024 * 1024);
mem[0] = mem[0];
free(mem);
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http wait request handler");
if (rev->timedout) {
--
2.27.0
【实际结果】
upatch-diff: ERROR: 0082-nginx.o: replace_section_syms:491: .gnu.debuglto_.debug_info+0x8: Cannot find replacement symbol for '.gnu.debuglto_.debug_abbrev+0' reference.
Error: Failed to build patch 'nginx.so'
Caused by:
0: Failed to create diff objects for nginx.so
1: Process upatch-diff (87815) exited unsuccessfully, exit_code=1
For more information, please check /root/syscare-build.77459/patch/build/upatch-build.77505/build.log
Process upatch-build (77505) exited, exit_code=255
Error: Process upatch-build (77505) exited unsuccessfully, exit_code=255
【期望结果】
编译成功