Description of problem: 执行clpi_dump help和hdmv_test --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、安装ORBit2-devel软件包 2、执行typelib-dump --help命令 Steps to Reproduce: # /usr/bin/typelib-dump --help ** (process:28671): ERROR **: 17:47:10.458: Can't find typelib of name '--help' in path Trace/breakpoint trap(吐核) # gdb typelib-dump -c core-typelib-dump-28671 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/typelib-dump...Reading symbols from /usr/bin/typelib-dump...(no debugging symbols found)...done. (no debugging symbols found)...done. [New LWP 28671] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `/usr/bin/typelib-dump --help'. Program terminated with signal 5, Trace/breakpoint trap. #0 0x0000ffffa0970850 in raise () from /lib64/libpthread.so.0 Missing separate debuginfos, use: debuginfo-install ORBit2-devel-2.14.19-13.an7.aarch64 (gdb) bt #0 0x0000ffffa0970850 in raise () at /lib64/libpthread.so.0 #1 0x0000ffffa09f7ea0 in g_log_default_handler () at /lib64/libglib-2.0.so.0 #2 0x0000ffffa09f80a8 in g_logv () at /lib64/libglib-2.0.so.0 #3 0x0000ffffa09f82e4 in g_log () at /lib64/libglib-2.0.so.0 #4 0x0000000000400d80 in main () Actual results: 产生coredump Expected results: 不应该coredmp Additional info: 软件包信息: # yum info ORBit2-devel-2.14.19-13.an7.aarch64 已加载插件: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 已安装的软件包 名称 :ORBit2-devel 架构 :aarch64 版本 :2.14.19 发布 :13.an7 大小 :1.4 M 源 :installed 来自源:os 简介 : Development libraries, header files and utilities for ORBit 网址 :http://www.gnome.org/projects/ORBit2 协议 : LGPLv2+ and GPLv2+ 描述 : ORBit is a high-performance CORBA (Common Object Request Broker : Architecture) ORB (object request broker) with support for the : C language. : : This package contains the header files, libraries and utilities : necessary to write programs that use CORBA technology. If you want to : write such programs, you'll also need to install the ORBIT package. x86有同样的问题
Created attachment 196 [details] centos7.9 test pic centos7.9 x86_64/aarch64存在相同问题 暂时降低优先级
Created attachment 218 [details] centos7.9 test pic centos7.9 x86_64/aarch64存在相同问题 暂时降低优先级
1.没有clpi_dump help 命令,help被认为是一个bdmv文件,因此报出Failed to open help错误。 2.没有hdmv_test --help命令,--help 被认为是一个目录,传入index_parse中来解析--help目录下的bdmv文件因此报出error opening --help/BDMV/index.bdmv错误。 clpi_dump命令没有help参数,hdmv_test命令没有--help参数,请正确使用。
(In reply to pq12345 from comment #3) > 1.没有clpi_dump help 命令,help被认为是一个bdmv文件,因此报出Failed to open help错误。 > 2.没有hdmv_test --help命令,--help > 被认为是一个目录,传入index_parse中来解析--help目录下的bdmv文件因此报出error opening > --help/BDMV/index.bdmv错误。 > clpi_dump命令没有help参数,hdmv_test命令没有--help参数,请正确使用。
(In reply to pq12345 from comment #3) > > 1.没有clpi_dump help 命令,help被认为是一个bdmv文件,因此报出Failed to open help错误。 > > 2.没有hdmv_test --help命令,--help > > 被认为是一个目录,传入index_parse中来解析--help目录下的bdmv文件因此报出error opening > > --help/BDMV/index.bdmv错误。 > > clpi_dump命令没有help参数,hdmv_test命令没有--help参数,请正确使用。 “错误”的输入,应该给出提示,以纠正用户的输入,直接coredump是比较明显的bug;好比qq这个app,输入错误的用户名密码,qq后台直接退出了。