问题描述]: avahi-ui-tools软件包的avahi-discover命令执行产生coredump 具体执行过程: [root@iZbp12nj7zzd2hcr70xlilZ tone-cli]# yum install avahi-ui-tools Last metadata expiration check: 1:23:05 ago on Mon 09 Jan 2023 01:49:48 PM CST. Dependencies resolved. ========================================================================================================================================================================================================================= Package Architecture Version Repository Size ========================================================================================================================================================================================================================= Installing: avahi-ui-tools x86_64 0.8-3.an23 AppStream 33 k Installing dependencies: avahi x86_64 0.8-3.an23 AppStream 436 k avahi-glib x86_64 0.8-3.an23 BaseOS 17 k avahi-ui-gtk3 x86_64 0.8-3.an23 AppStream 31 k fltk x86_64 1.3.8-1.an23 AppStream 714 k python3-avahi x86_64 0.8-3.an23 AppStream 13 k tigervnc x86_64 1.12.0-3.an23 AppStream 320 k tigervnc-icons noarch 1.12.0-3.an23 AppStream 21 k tigervnc-license noarch 1.12.0-3.an23 BaseOS 13 k Transaction Summary ========================================================================================================================================================================================================================= Install 9 Packages Total download size: 1.6 M Installed size: 9.8 M Is this ok [y/N]: y Downloading Packages: (1/9): avahi-glib-0.8-3.an23.x86_64.rpm 1.4 MB/s | 17 kB 00:00 (2/9): avahi-ui-gtk3-0.8-3.an23.x86_64.rpm 4.4 MB/s | 31 kB 00:00 (3/9): tigervnc-license-1.12.0-3.an23.noarch.rpm 385 kB/s | 13 kB 00:00 (4/9): fltk-1.3.8-1.an23.x86_64.rpm 25 MB/s | 714 kB 00:00 (5/9): avahi-ui-tools-0.8-3.an23.x86_64.rpm 756 kB/s | 33 kB 00:00 (6/9): python3-avahi-0.8-3.an23.x86_64.rpm 2.6 MB/s | 13 kB 00:00 (7/9): avahi-0.8-3.an23.x86_64.rpm 4.9 MB/s | 436 kB 00:00 (8/9): tigervnc-icons-1.12.0-3.an23.noarch.rpm 502 kB/s | 21 kB 00:00 (9/9): tigervnc-1.12.0-3.an23.x86_64.rpm 5.2 MB/s | 320 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 12 MB/s | 1.6 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: avahi-0.8-3.an23.x86_64 1/9 Installing : avahi-0.8-3.an23.x86_64 1/9 Running scriptlet: avahi-0.8-3.an23.x86_64 1/9 Installing : avahi-glib-0.8-3.an23.x86_64 2/9 Installing : avahi-ui-gtk3-0.8-3.an23.x86_64 3/9 Installing : python3-avahi-0.8-3.an23.x86_64 4/9 Installing : tigervnc-icons-1.12.0-3.an23.noarch 5/9 Installing : fltk-1.3.8-1.an23.x86_64 6/9 Installing : tigervnc-license-1.12.0-3.an23.noarch 7/9 Installing : tigervnc-1.12.0-3.an23.x86_64 8/9 Installing : avahi-ui-tools-0.8-3.an23.x86_64 9/9 Running scriptlet: avahi-ui-tools-0.8-3.an23.x86_64 9/9 Verifying : avahi-glib-0.8-3.an23.x86_64 1/9 Verifying : tigervnc-license-1.12.0-3.an23.noarch 2/9 Verifying : avahi-0.8-3.an23.x86_64 3/9 Verifying : avahi-ui-gtk3-0.8-3.an23.x86_64 4/9 Verifying : avahi-ui-tools-0.8-3.an23.x86_64 5/9 Verifying : fltk-1.3.8-1.an23.x86_64 6/9 Verifying : python3-avahi-0.8-3.an23.x86_64 7/9 Verifying : tigervnc-1.12.0-3.an23.x86_64 8/9 Verifying : tigervnc-icons-1.12.0-3.an23.noarch 9/9 Installed: avahi-0.8-3.an23.x86_64 avahi-glib-0.8-3.an23.x86_64 avahi-ui-gtk3-0.8-3.an23.x86_64 avahi-ui-tools-0.8-3.an23.x86_64 fltk-1.3.8-1.an23.x86_64 python3-avahi-0.8-3.an23.x86_64 tigervnc-1.12.0-3.an23.x86_64 tigervnc-icons-1.12.0-3.an23.noarch tigervnc-license-1.12.0-3.an23.noarch Complete! [root@iZbp12nj7zzd2hcr70xlilZ tone-cli]# /usr/bin/avahi-discover --help (avahi-discover:71510): Gtk-CRITICAL **: 15:14:25.735: _gtk_css_lookup_resolve: assertion '(((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((provider)); GType __t = ((_gtk_style_provider_private_get_type ())); gboolean __r; if (!__inst) __r = (0); else if (__inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))' failed /usr/bin/avahi-discover:71: Warning: g_object_set_data_full: assertion 'G_IS_OBJECT (object)' failed self.ui.add_from_file(path) (avahi-discover:71510): Gtk-ERROR **: 15:14:25.735: Can't create a GtkStyleContext without a display connection Trace/breakpoint trap (core dumped) [环境信息]: 内核信息: # uname -r 5.17.0-1.an23.x86_64 操作系统信息: # 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/" [问题发生概率]:必现 [期望结果]: 正常执行 [实际结果]: 执行失败 [复现步骤]: 1、yum install avahi-ui-tools 2、/usr/bin/avahi-discover --help
(avahi-discover:71510): Gtk-ERROR **: 15:14:25.735: Can't create a GtkStyleContext without a display connection Trace/breakpoint trap (core dumped) 当前23不支持图形化。
Created attachment 775 [details] 在桌面环境下测试未出现 coredump 在桌面环境下测试未出现 coredump,如附件图
avahi-ui-tools 软件需要在桌面场景使用。