Bug 4646 - [Anolis 23 Nightly][x86/aarch64]wireshark-cli软件包提供的tshark工具报错
Summary: [Anolis 23 Nightly][x86/aarch64]wireshark-cli软件包提供的tshark工具报错
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: xuchunmei
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-30 14:08 UTC by gitpush
Modified: 2023-04-23 22:05 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gitpush alibaba_cloud_group 2023-03-30 14:08:03 UTC
[问题描述]:
wireshark-cli软件包提供的tshark工具报错
[root@iZbp10c42cb8dvhjyxifgmZ ~]# tshark -c 50
tshark: symbol lookup error: /lib64/libwsutil.so.14: undefined symbol: g_string_free_and_steal

[环境信息]:
内核信息:
[root@iZbp10c42cb8dvhjyxifgmZ ~]# uname -r
5.10.134-12.1.an23.aarch64

操作系统信息:
[root@iZbp10c42cb8dvhjyxifgmZ ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

软件包信息:
[root@iZbp10c42cb8dvhjyxifgmZ ~]# yum info wireshark-cli
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 3:20:57 ago on Thu Mar 30 10:19:47 2023.
Installed Packages
Name         : wireshark-cli
Epoch        : 1
Version      : 4.0.4
Release      : 1.an23
Architecture : aarch64
Size         : 129 M
Source       : wireshark-4.0.4-1.an23.src.rpm
Repository   : @System
From repo    : AppStream-Test
Summary      : Network traffic analyzer
URL          : http://www.wireshark.org/
License      : GPL+
Description  : This package contains command-line utilities, plugins, and documentation for
             : Wireshark.
[问题发生概率]:必现
[复现步骤]:
yum install wireshark-cli
tshark -c 50
Comment 1 xuchunmei alibaba_cloud_group 2023-04-03 09:26:17 UTC
$git show 58dd3d3965
commit 58dd3d39655ebae5c71cc62df4f27eac7c3a6d78
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Thu Jan 19 14:47:11 2023 +0000

    Add g_string_free_and_steal

$git tag --contains 58dd3d3965
2.75.3
2.75.4
2.76.0
2.76.1

当前Anolis OS 23上glib2版本最新版本为2.76.1。
升级glib2至最新版本应该可以解决问题。

当然wireshark需要写好版本依赖。
Comment 2 扣肉 2023-04-23 22:05:36 UTC
wireshark 的源代码中找不到 g_string_free_and_steal 的调用,源头不在 wireshark。