Bug 3662 - [Anolis23 GA][Anolis23-iso][anck][x86_64]dwarves软件包命令执行产生coredump
Summary: [Anolis23 GA][Anolis23-iso][anck][x86_64]dwarves软件包命令执行产生coredump
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-09 15:42 UTC by gitpush
Modified: 2023-06-05 14:53 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gitpush alibaba_cloud_group 2023-01-09 15:42:35 UTC
问题描述]:
dwarves软件包命令执行产生coredump
具体执行过程:

[root@iZbp12nj7zzd2hcr70xlilZ tone-cli]# yum install dwarves
Last metadata expiration check: 1:47:03 ago on Mon 09 Jan 2023 01:49:48 PM CST.
Dependencies resolved.
=========================================================================================================================================================================================================================
 Package                                              Architecture                                     Version                                                 Repository                                           Size
=========================================================================================================================================================================================================================
Installing:
 dwarves                                              x86_64                                           1.23-1.an23                                             AppStream                                            94 k
Installing dependencies:
 libdwarves                                           x86_64                                           1.23-1.an23                                             AppStream                                           220 k

Transaction Summary
=========================================================================================================================================================================================================================
Install  2 Packages

Total download size: 313 k
Installed size: 817 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): dwarves-1.23-1.an23.x86_64.rpm                                                                                                                                                    1.5 MB/s |  94 kB     00:00
(2/2): libdwarves-1.23-1.an23.x86_64.rpm                                                                                                                                                 3.5 MB/s | 220 kB     00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                    4.8 MB/s | 313 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                 1/1
  Installing       : libdwarves-1.23-1.an23.x86_64                                                                                                                                                                   1/2
  Installing       : dwarves-1.23-1.an23.x86_64                                                                                                                                                                      2/2
  Running scriptlet: dwarves-1.23-1.an23.x86_64                                                                                                                                                                      2/2
  Verifying        : dwarves-1.23-1.an23.x86_64                                                                                                                                                                      1/2
  Verifying        : libdwarves-1.23-1.an23.x86_64                                                                                                                                                                   2/2

Installed:
  dwarves-1.23-1.an23.x86_64                                                                                libdwarves-1.23-1.an23.x86_64

Complete!
[root@iZbp12nj7zzd2hcr70xlilZ tone-cli]# /usr/bin/dtagnames --help
Segmentation fault (core dumped)
[root@iZbp12nj7zzd2hcr70xlilZ tone-cli]# /usr/bin/prefcnt --help
Segmentation fault (core dumped)







[环境信息]:
内核信息:
# uname -r
5.17.0-1.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 install dwarves
2、/usr/bin/dtagnames --help
3、/usr/bin/prefcnt --help
Comment 1 xuchunmei alibaba_cloud_group 2023-01-10 21:23:30 UTC
upstream最新版本也是一样的问题,怀疑是与使用方式有关,当然发生coredump确实是因为空指针访问。对upstream提了bugfix,等待社区回复。
https://github.com/acmel/dwarves/pull/36