Bug 6095 - anolis 23安装完gdb后无法使用gdb
Summary: anolis 23安装完gdb后无法使用gdb
Status: RESOLVED INVALID
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-08-04 13:40 UTC by attendre
Modified: 2023-08-08 13:42 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description attendre 2023-08-04 13:40:41 UTC
Description of problem:
Anolis after installing the GDB, GDB start can't start, error "GDB: symbol lookup error: / lib64 / libbabeltrace. So. 1: undefined symbol: g_string_free_and_steal”


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

5.10.134-12.1.an23.x86_64 #1 SMP Thu Oct 13 11:38:24 CST 2022 x86_64 GNU/Linux


How reproducible:


Steps to Reproduce:
1.yum install gdb
2.gdb


Actual results:
gdb: symbol lookup error: /lib64/libbabeltrace.so.1: undefined symbol: g_string_free_and_steal


Expected results:
gdb 正常运行

Additional info:
Comment 1 扣肉 2023-08-04 15:10:30 UTC
请执行下面两个命令,结果发上来

$ rpm -q libbabeltrace
$ rpm -q glib2
Comment 2 attendre 2023-08-04 16:44:08 UTC
(In reply to 扣肉 from comment #1)
> 请执行下面两个命令,结果发上来
> 
> $ rpm -q libbabeltrace
> $ rpm -q glib2

已经解决了,下载了一个	libbabeltrace-1.5.8-8.el9.x86_64.rpm的安装包强制安装就能正常运行了。
# rpm -q libbabeltrace
libbabeltrace-1.5.11-2.an23.x86_64
libbabeltrace-1.5.8-8.el9.x86_64
[root@ opt]# 
[root@ opt]# 
[root@ opt]# rpm -q glib2
glib2-2.73.2-1.an23.x86_64
Comment 3 扣肉 2023-08-06 03:02:24 UTC
你的glib2 版本太低,不是an23.0正式版里带的版本。请使用 dnf upgrade 全面升级系统。