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、 安装libbluray 软件包 2、 执行clpi_dump help\hdmv_test --help 命令 Steps to Reproduce: # clpi_dump help Failed to open help 段错误(吐核) # # ll 总用量 1220 -rw------- 1 root root 1376256 4月 22 17:07 core-clpi_dump-26676 # # gdb clpi_dump -c core-clpi_dump-26676 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/clpi_dump...Reading symbols from /usr/bin/clpi_dump...(no debugging symbols found)...done. (no debugging symbols found)...done. [New LWP 26676] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `clpi_dump help'. Program terminated with signal 11, Segmentation fault. #0 0x0000ffff9e696bc4 in strncpy () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install libbluray-0.2.3-6.an7.aarch64 (gdb) bt #0 0x0000ffff9e696bc4 in strncpy () from /lib64/libc.so.6 #1 0x0000000000404884 in clpi_parse () #2 0x0000000000400f80 in main () (gdb) quit # hdmv_test --help libbluray/bdnav/index_parse.c:162: indx_parse(): error opening --help/BDMV/index.bdmv libbluray/bdnav/index_parse.c:162: indx_parse(): error opening --help/BDMV/BACKUP/index.bdmv Running first play movie object 段错误(吐核) # gdb hdmv_test -c core-hdmv_test-26760 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/hdmv_test...Reading symbols from /usr/bin/hdmv_test...(no debugging symbols found)...done. (no debugging symbols found)...done. [New LWP 26760] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `hdmv_test --help'. Program terminated with signal 11, Segmentation fault. #0 0x0000ffff916639d8 in _play_title () from /usr/lib64/libbluray.so.1 Missing separate debuginfos, use: debuginfo-install libbluray-0.2.3-6.an7.aarch64 (gdb) bt #0 0x0000ffff916639d8 in _play_title () from /usr/lib64/libbluray.so.1 #1 0x0000000000400da8 in main () (gdb) Actual results: 产生coredump Expected results: 不应该coredmp Additional info: 软件包信息: # yum info libbluray 已加载插件: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 已安装的软件包 名称 :libbluray 架构 :aarch64 版本 :0.2.3 发布 :6.an7 大小 :946 k 源 :installed 来自源:os 简介 : Library to access Blu-Ray disks for video playback 网址 :http://www.videolan.org/developers/libbluray.html 协议 : LGPLv2+ 描述 : This package is aiming to provide a full portable free open source bluray : library, which can be plugged into popular media players to allow full bluray : navigation and playback on Linux. It will eventually be compatible with all : current titles, and will be easily portable and embeddable in standard players : such as mplayer and vlc. x86有同样的问题
Created attachment 195 [details] centos7.9 test pic centos7.9 x86_64/aarch64存在相同问题 暂时降低优先级
Created attachment 214 [details] centos7.9 test pic centos7.9 x86_64/aarch64存在相同问题 暂时降低优先级
Created attachment 217 [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参数,请正确使用。