Bug 896 - [Anolis7.9-iso][rhck][x86_64/aarch_64]安装liborcus-tools软件包后执行/usr/bin/orcus-zip-dump进制发生core dump
Summary: [Anolis7.9-iso][rhck][x86_64/aarch_64]安装liborcus-tools软件包后执行/usr/bin/orcus-zi...
Status: CONFIRMED
Alias: None
Product: Anolis OS 7
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 7.9
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: layne-yang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-24 14:42 UTC by yunmeng365524
Modified: 2022-05-07 17:56 UTC (History)
3 users (show)

See Also:


Attachments
centos7.9 test pic (2.81 MB, image/jpeg)
2022-04-29 17:20 UTC, 刘小平
Details
centos7.9 test pic (586.34 KB, image/jpeg)
2022-05-05 17:45 UTC, 刘小平
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yunmeng365524 2022-04-24 14:42:37 UTC
Description of problem:
执行/usr/bin/orcus-zip-dump --help命令会产生coredump

Version-Release number of selected component (if applicable):

uname -r
4.18.0-193.28.1.an7.aarch64

cat /etc/anolis-release
Anolis OS release 7.9

cat /etc/os-release
NAME="Anolis OS"
VERSION="7.9"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.9"
PRETTY_NAME="Anolis OS 7.9"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugs.openanolis.cn/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

问题发生概率:必现

How reproducible:
1、安装liborcus-tools软件包
2、执行/usr/bin/orcus-zip-dump --help命令

Steps to Reproduce:
# /usr/bin/orcus-zip-dump --help
terminate called after throwing an instance of 'orcus::zip_error'
  what():  zip error: failed to open --help for reading
已放弃(吐核)
# gdb /usr/bin/orcus-zip-dump -c core-orcus-zip-dump-32003
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.an7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/orcus-zip-dump...Reading symbols from /usr/bin/orcus-zip-dump...(no debugging symbols found)...done.
(no debugging symbols found)...done.
[New LWP 32003]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/orcus-zip-dump --help'.
Program terminated with signal 6, Aborted.
#0  0x0000ffffabc15238 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install liborcus-tools-0.12.1-2.an7.aarch64
(gdb) bt
#0  0x0000ffffabc15238 in raise () from /lib64/libc.so.6
#1  0x0000ffffabc168b0 in abort () from /lib64/libc.so.6
#2  0x0000ffffabf116ec in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6
#3  0x0000ffffabf0f540 in ?? () from /lib64/libstdc++.so.6
#4  0x0000ffffabf0f564 in std::terminate() () from /lib64/libstdc++.so.6
#5  0x0000ffffabf0f800 in __cxa_throw () from /lib64/libstdc++.so.6
#6  0x0000ffffac00d7a4 in orcus::zip_archive_stream_fd::zip_archive_stream_fd(char const*) () from /lib64/liborcus-parser-0.12.so.0
#7  0x0000000000400c58 in main ()
(gdb) quit

Actual results:
产生coredump

Expected results:
不应该coredmp

Additional info:
软件包信息:
# yum info liborcus-tools
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
已安装的软件包
名称    :liborcus-tools
架构    :aarch64
版本    :0.12.1
发布    :2.an7
大小    :477 k
源    :installed
来自源:os
简介    : Tools for working with liborcus
网址    :https://gitlab.com/orcus/orcus
协议    : MPLv2.0
描述    : Helper tools for liborcus and converters of various file formats to HTML
         : and text.

x86有同样的问题
Comment 1 刘小平 alibaba_cloud_group 2022-04-29 17:20:35 UTC
Created attachment 201 [details]
centos7.9 test pic

centos7.9 x86_64/aarch64存在相同问题 暂时降低优先级
Comment 2 刘小平 alibaba_cloud_group 2022-05-05 17:45:45 UTC
Created attachment 223 [details]
centos7.9 test pic

centos7.9 x86_64/aarch64存在相同问题 暂时降低优先级
Comment 3 pq12345 uniontech_group 2022-05-07 17:42:46 UTC
没有/usr/bin/orcus-zip-dump --help命令,--help被认为是一个文件,由于--help不是文件传入orcus::zip_error中报>出failed to open --help for reading错误
Comment 4 pq12345 uniontech_group 2022-05-07 17:56:01 UTC
orcus-zip-dump命令没有--help参数,请正确使用