Bug 8966 - [Anolis23.1 GA][Beta][23.1核心软件包-libcomps]安装libcomps及libcomps-devel后,对比下载的源码./src下的文件发现/usr/include/libcomps/下缺少部分头文件
Summary: [Anolis23.1 GA][Beta][23.1核心软件包-libcomps]安装libcomps及libcomps-devel后,对比下载的源码./...
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.1
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaochang
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords: Function
Depends on:
Blocks:
 
Reported: 2024-05-08 15:47 UTC by wangyaru01
Modified: 2024-05-10 11:03 UTC (History)
1 user (show)

See Also:


Attachments
只单纯引入头文件,编译 (112.59 KB, image/jpeg)
2024-05-08 15:47 UTC, wangyaru01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wangyaru01 2024-05-08 15:47:02 UTC
Created attachment 1148 [details]
只单纯引入头文件,编译

[问题描述]:
Anolis23环境,libsigsegv软件包,安装 libsigsegv 的段错误处理程序sigsegv_install_handler后,栈溢出导致的段错误没有被成功捕捉而是程序直接退出了

[环境信息]:
机器类型:ECS

[内核信息]:
# uname -r
5.10.134-15.an23.x86_64

[操作系统信息]:
#  cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[重现步骤]:
1、yum -y install libcomps libcomps-devel 
2、cd /user/include/libcomps检查相关头文件,
3、yumdownloader --source libcomps下载源码包,解压并进入/root/rpmbuild/SOURCES/libcomps-0.1.19/libcomps/src
4、对比src下的文件和/user/include/libcomps下的文件

[实际结果]
缺少部分头文件导致部分功能用例无法编译,例如:/usr/include/libcomps下的部分头文件中引入了comps_types.h,但yum -y install libcomps libcomps-devel 后/usr/include/libcomps下无comps_types.h导致编译失败,尝试手动将下载的源码包下的
comps_types.h拷贝到/usr/include/libcomps后,涉及到parse功能的C程序可正常解析


[问题发生概率]:必现
Comment 1 wangyaru01 2024-05-08 15:52:05 UTC
ubuntn环境尝试装包后发现现象同anolis 23
Comment 2 yunmeng365524 2024-05-08 15:55:23 UTC
comps_types.h 是重要的头文件,请研发帮忙确认,安装devel包后,把对应的头文件给拷贝,否则可能会影响正常使用。
Comment 3 wangyaru01 2024-05-10 11:03:03 UTC
bug 单正文中 [问题描述]有误,修改如下:
安装libcomps、libcomps-devel包后,/usr/include/libcomps下缺少部分头文件如:comps_type.h导致部分功能无法直接使用,若将源码包下的comps_type.h拷贝到/usr/include/libcomps后,解析COMPS XML等功能可正常使用