Description of problem: 执行/usr/bin/lp5250d 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、安装tn5250软件包 2、执行/usr/bin/lp5250d help命令 Steps to Reproduce: # gdb /usr/bin/lp5250d -c core-lp5250d-35437 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/lp5250d...Reading symbols from /usr/bin/lp5250d...(no debugging symbols found)...done. (no debugging symbols found)...done. [New LWP 35437] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `/usr/bin/lp5250d help'. Program terminated with signal 6, Aborted. #0 0x0000ffffaa855238 in raise () from /usr/lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install tn5250-0.17.4-10.an7.aarch64 (gdb) bt #0 0x0000ffffaa855238 in raise () from /usr/lib64/libc.so.6 #1 0x0000ffffaa8568b0 in abort () from /usr/lib64/libc.so.6 #2 0x0000ffffaa89517c in __libc_message () from /usr/lib64/libc.so.6 #3 0x0000ffffaa9191b4 in __fortify_fail () from /usr/lib64/libc.so.6 #4 0x0000ffffaa917014 in __chk_fail () from /usr/lib64/libc.so.6 #5 0x0000ffffaa919120 in __fdelt_warn () from /usr/lib64/libc.so.6 #6 0x0000ffffaac655c8 in tn5250_print_session_waitevent.isra.0 () from /usr/lib64/lib5250.so.0 #7 0x0000ffffaac65964 in tn5250_print_session_main_loop () from /usr/lib64/lib5250.so.0 #8 0x00000000004016f4 in main () (gdb) quit Actual results: 产生coredump Expected results: 不应该coredmp Additional info: 软件包信息: # yum info tn5250 已加载插件: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 可安装的软件包 名称 :tn5250 架构 :aarch64 版本 :0.17.4 发布 :10.an7 大小 :191 k 源 :os/aarch64 简介 : 5250 Telnet protocol and Terminal 网址 :http://tn5250.sourceforge.net/ 协议 : LGPLv2+ 描述 : tn5250 is an implementation of the 5250 Telnet protocol. : It provides the 5250 library and a 5250 terminal emulation. x86 也有相同问题
Created attachment 204 [details] centos7.9 test pic centos7.9 x86_64/aarch64存在相同问题 暂时降低优先级
Created attachment 226 [details] centos7.9 test pic centos7.9 x86_64/aarch64存在相同问题 暂时降低优先级
没有/usr/bin/lp5250d help命令,help被认为是一个目录,传入index_parse中来解析--help目录下的bdmv文件因此报出error opening --help/BDMV/index.bdmv错误。 这个命令没有 help参数请正确使用