(2022-12-09更新)Ubuntu 20.04 Meld,thunar/nemo/nautilus 启动崩溃排查记录


2022-12-09

最近几天事情有了新的进展,本来是遇到了 thunar打开某些文件夹就崩溃的问题,一通排查和发问后定位到了原因,和WPS Officexdgmime配置有关;

卸载WPS Office可以不再崩溃,用永中Office替代一下;还不会解决,想上博客记录另一件事的时候发现了过去写过这篇,一看现象还一样……更新一下

这次遇到的问题是 thunar打开某些文件夹崩溃,此外NemoNautilus一打开就崩溃,而且Firefox一打开下载对话框也崩溃

由于我一开始以为崩溃是gio的,我把排查记录整理了下发到了GLib去……那边的大佬帮忙做了分析,非常感谢。

Crash due to infinite recursion in MIME subclassing (#2833) · Issues · GNOME / GLib · GitLab
issue单好像要登录才能看,这里抄一份排查记录如下(英文)

Crash due to infinite recursion in MIME subclassing

Base info

If you’re reporting a bug make sure to list:

which version of GLib are you using? (2.72.4-0ubuntu1)
which operating system are you using? (See section My computer info)
the necessary steps to reproduce the issue (See below)
the expected outcome (don't crash)
a description of the behavior (what behavior?)
a small, self-contained example exhibiting the behavior (See below)

If the issue includes a crash, you should also include:

the eventual warnings printed on the terminal (No warings, just[1]    156410 segmentation fault (core dumped)  thunar)
a backtrace, obtained with tools such as GDB or LLDB (See below)

My computer info

!w /usr/share > neofetch                  
            .-:/++oooo++/:-.               xys@xys-OptiPlex-3046 
        `:/oooooooooooooooooo/-`           --------------------- 
      -/oooooooooooooooooooo+ooo/-         OS: Ubuntu Cinnamon 22.04.1 LTS x86_64 
    .+oooooooooooooooooo+/-`.ooooo+.       Host: OptiPlex 3046 
   :oooooooooooo+//:://++:. .ooooooo:      Kernel: 5.15.0-56-generic 
  /oooooooooo+o:`.----.``./+/oooooooo/     Uptime: 5 hours, 19 mins 
 /ooooooooo+. +ooooooooo+:``/ooooooooo/    Packages: 4632 (dpkg), 13 (snap) 
.ooooooooo: .+ooooooooooooo- -ooooooooo.   Shell: zsh 5.8.1 
/oooooo/o+ .ooooooo:`+oo+ooo- :oooooooo/   Resolution: 1920x1080 
ooo+:. .o: :ooooo:` .+/. ./o+:/ooooooooo   DE: Cinnamon 
oooo/-`.o: :ooo/` `/+.     ./.:ooooooooo   WM: Mutter (Muffin) 
/oooooo+o+``++. `:+-          /oooooooo/   WM Theme: Mcata-light (Mcata-light) 
.ooooooooo/``  -+:`          :ooooooooo.   Theme: Mcata-light [GTK2/3] 
 /ooooooooo+--+/`          .+ooooooooo/    Icons: McMojave-circle [GTK2/3] 
  /ooooooooooo+.`      `.:++:oooooooo/     Terminal: konsole 
   :oooooooooooooo++++oo+-` .ooooooo:      Terminal Font: MesloLGS NF 9 
    .+ooooooooooooooooooo+:..ooooo+.       CPU: Intel i5-6500 (4) @ 3.600GHz 
      -/oooooooooooooooooooooooo/-         GPU: Intel HD Graphics 530 
        `-/oooooooooooooooooo/:`           Memory: 7836MiB / 15902MiB 
            .-:/++oooo++/:-.

Description

When I open thunar/nemo/nautilus on Ubuntu(22.04), all of them crash. What's more, when I download something on Firefox(107.0.1), firefox crashes while opening dialog Save As... at $HOME/Download.
thunar

I use gdb and find out that they crash at libgio-2.0.so.0.

Thread 1 "thunar" received signal SIGSEGV, Segmentation fault.
0x00007ffff70aa81a in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
(gdb) bt
#0  0x00007ffff70aa81a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#1  0x00007ffff70aac28 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#2  0x00007ffff70aae63 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#3  0x00007ffff70aae63 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0

I try to build glib with glib_debug=enabled, and the detail shows:

Thread 1 "thunar" received signal SIGSEGV, Segmentation fault.
0x00007ffff709fc4d in cache_alias_lookup (alias=alias@entry=0x7fffecb1cfe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow") at ../../gio/xdgmime/xdgmimecache.c:333
333               cmp = strcmp (ptr, alias);
(gdb) bt
#0  0x00007ffff709fc4d in cache_alias_lookup (alias=alias@entry=0x7fffecb1cfe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow") at ../../gio/xdgmime/xdgmimecache.c:333
#1  0x00007ffff70a06f2 in __gio_xdg_cache_unalias_mime_type (mime=0x7fffecb1cfe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow") at ../../gio/xdgmime/xdgmimecache.c:988
#2  __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1cfe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:911
#3  0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1e2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971
#4  0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1cfe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971
#5  0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1e2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971
#6  0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1cfe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971
#7  0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1e2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971
#8  0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1cfe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971
#9  0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1e2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971
#10 0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1cfe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971
#11 0x00007ffff70a093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffecb1e2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffecb1cfc4 "application/zip") at ../../gio/xdgmime/xdgmimecache.c:971

naltilus

Thread 3 "pool-org.gnome." received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff2942640 (LWP 77914)]
__gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffe00512b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffe004f758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:911
911       umime = _xdg_mime_cache_unalias_mime_type (mime);
(gdb) bt
#0  __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffe00512b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffe004f758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:911
#1  0x00007ffff707093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffe004ffe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7fffe004f758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#2  0x00007ffff707093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffe00512b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffe004f758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#3  0x00007ffff707093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffe004ffe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7fffe004f758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#4  0x00007ffff707093b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7fffe00512b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7fffe004f758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971

nemo

Thread 11 "pool-nemo" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe37fe640 (LWP 78345)]
__gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff121b2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:911
911       umime = _xdg_mime_cache_unalias_mime_type (mime);
(gdb) bt
#0  __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff121b2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:911
#1  0x00007ffff714d93b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff1219fe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#2  0x00007ffff714d93b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff121b2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#3  0x00007ffff714d93b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff1219fe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#4  0x00007ffff714d93b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff121b2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#5  0x00007ffff714d93b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff1219fe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#6  0x00007ffff714d93b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff121b2b8 "application/vnd.openxmlformats-officedocument.presentationml.presentation", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971
#7  0x00007ffff714d93b in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff1219fe0 "application/vnd.openxmlformats-officedocument.presentationml.slideshow", base=base@entry=0x7ffff1219758 "application/x-ole-storage") at ../../gio/xdgmime/xdgmimecache.c:971

Apps

the MIME in stacktrace seems to show that the bug maybe related to my office environment. I have install these office apps:

~/Download > dpkg -l | grep -i office                                                                                                                                                                                                                        
ii  catdoc                                        1:0.95-5                                            amd64        text extractor for MS-Office files
rc  deepin.com.qq.office:i386                     2.0.0deepin4                                        i386         Tencent TIM Client on Deepin Wine
ii  libreoffice-base-core                         1:7.3.7-0ubuntu0.22.04.1                            amd64        office productivity suite -- shared library
rc  libreoffice-calc                              1:7.3.6-0ubuntu0.22.04.1                            amd64        office productivity suite -- spreadsheet
ii  libreoffice-common                            1:7.3.7-0ubuntu0.22.04.1                            all          office productivity suite -- arch-independent files
ii  libreoffice-core                              1:7.3.7-0ubuntu0.22.04.1                            amd64        office productivity suite -- arch-dependent files
rc  libreoffice-draw                              1:7.3.6-0ubuntu0.22.04.1                            amd64        office productivity suite -- drawing
rc  libreoffice-impress                           1:7.3.6-0ubuntu0.22.04.1                            amd64        office productivity suite -- presentation
ii  libreoffice-kf5                               1:7.3.7-0ubuntu0.22.04.1                            amd64        office productivity suite -- KDE Frameworks 5 integration
ii  libreoffice-math                              1:7.3.7-0ubuntu0.22.04.1                            amd64        office productivity suite -- equation editor
ii  libreoffice-plasma                            1:7.3.7-0ubuntu0.22.04.1                            amd64        office productivity suite -- some Plasma integration
ii  libreoffice-qt5                               1:7.3.7-0ubuntu0.22.04.1                            amd64        office productivity suite -- Qt 5 integration
ii  libreoffice-style-breeze                      1:7.3.7-0ubuntu0.22.04.1                            all          office productivity suite -- Breeze symbol style
ii  libreoffice-style-colibre                     1:7.3.7-0ubuntu0.22.04.1                            all          office productivity suite -- colibre symbol style
rc  libreoffice-style-tango                       1:7.3.6-0ubuntu0.22.04.1                            all          transitional package for Tango symbol style
ii  libreoffice-writer                            1:7.3.7-0ubuntu0.22.04.1                            amd64        office productivity suite -- word processor
ii  libuno-cppu3                                  1:7.3.7-0ubuntu0.22.04.1                            amd64        LibreOffice UNO runtime environment -- CPPU public library
ii  libuno-cppuhelpergcc3-3                       1:7.3.7-0ubuntu0.22.04.1                            amd64        LibreOffice UNO runtime environment -- CPPU helper library
ii  libuno-purpenvhelpergcc3-3                    1:7.3.7-0ubuntu0.22.04.1                            amd64        LibreOffice UNO runtime environment -- "purpose environment" helper
ii  libuno-sal3                                   1:7.3.7-0ubuntu0.22.04.1                            amd64        LibreOffice UNO runtime environment -- SAL public library
ii  libuno-salhelpergcc3-3                        1:7.3.7-0ubuntu0.22.04.1                            amd64        LibreOffice UNO runtime environment -- SAL helpers for C++ library
ii  mythes-en-us                                  1:7.2.0-2                                           all          English (USA) Thesaurus for LibreOffice
ii  openoffice.org-hyphenation                    0.10                                                all          Hyphenation patterns for OpenOffice.org - dummy transitional package
ii  uno-libs-private                              1:7.3.7-0ubuntu0.22.04.1                            amd64        LibreOffice UNO runtime environment -- private libraries used by public ones
ii  ure                                           1:7.3.7-0ubuntu0.22.04.1                            amd64        LibreOffice UNO runtime environment
ii  wps-office                                    11.1.0.11664                                        amd64        WPS Office, is an office productivity suite.
ii  yozo-office                                   8.0.1331.101ZH.S1                                   amd64        Yozo Office -- Fully Functional Office Suite

~/Download > snap list                                
名称                  版本               修订版本   追踪             发布者            注记
bare                1.0              5      latest/stable  canonical✓     base
chromium-ffmpeg     0.1              30     latest/stable  canonical✓     -
core                16-2.57.6        14399  latest/stable  canonical✓     core
core18              20221103         2632   latest/stable  canonical✓     base
core20              20221123         1738   latest/stable  canonical✓     base
cups                2.4.2-4          836    latest/stable  openprinting✓  -
fontvuer            1.0.4            18     latest/stable  tommysouta     -
gnome-3-38-2004     0+git.6f39565    119    latest/stable  canonical✓     -
gtk-common-themes   0.1-81-g442e511  1535   latest/stable  canonical✓     -
gtk2-common-themes  0.1              13     latest/stable  canonical✓     -
snapd               2.57.6           17883  latest/stable  canonical✓     snapd
wps-2019-snap       11.2.0.9505      2      latest/stable  cyrpaut        -

Other info

When I open thunar, thunar shows home directory, and it doesn't crash. Then I open ~/Download directory, it crashes. I think there are *.doc* & *.ppt* files in ~/Download/, maybe they are the reason. So I make a dir ~/Download/docs and move *.doc* & *.ppt* files into the new direcotry. Then thunar runs normally at ~/Download but crashes at ~/Download/docs

I try to remove yozo-office package and wps-2019-snap snap package, and open thunar again, it still crashes at ~/Download/docs

Activity

    pwithnall ·         Maintainer

This looks quite similar to #1875, but the fix for that is already in the version of GLib you’re using. Try removing wps-office and see if the crashes stop. From some quick googling, it looks like wps-office still has some malformed xdg-mime data.

    imxys ·             Author

Thanks a lot! I remove wps-office, and all of thunar/nemo/nautilus run normally now.

I reinstall wps-office and thunar crashes again.

I'm not sure where the malformed xdg-mime data is, I'll try to send an email to wps team with this issue and fix the config file by myself later.

    pwithnall ·         Maintainer

OK, that’s pinned the error down a bit. I don’t think fixing the recursion in GLib will be easy --- really the issue is that WPS Office is installing invalid MIME data.

Can you please file an issue against WPS Office about fixing their MIME data so that ```application/vnd.openxmlformats-officedocument.presentationml.presentationandapplication/vnd.openxmlformats-officedocument.presentationml.slideshow` are not defined as being recursive subtypes of each other?

感觉自己废话有点多什么都要记。。。算了


2022-07-07

Ubuntu 20.04 KDE之前meld还好好的,突然打开就崩溃了

15:09:39 ~ > meld
[1]    63483 segmentation fault (core dumped)  meld

开始时候还不知道哪里看崩溃栈,用gdb直接运行meld,后面找到/var/log/apport.log记录,崩溃文件放在了/var/lib/apport/coredump
gdb看的话是一个gio的死循环

08:48:36 ~/my-projects/meld #3.21.2 ?4 > gdb python3 /var/lib/apport/coredump/core._usr_bin_python3_8.1000.f1f44689-a2e5-46fc-a8cd-e4793d49b851.2750166.16280638                                                 4s
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...
(No debugging symbols found in python3)

warning: core file may not match specified executable file.
[New LWP 2750166]
[New LWP 2750176]
[New LWP 2750177]
[New LWP 2750175]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `python3 ./bin/meld'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007ff76a44be59 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
[Current thread is 1 (Thread 0x7ff76b4a6740 (LWP 2750166))]
(gdb) bt
#0  0x00007ff76a44be59 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#1  0x00007ff76a44ca62 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#2  0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#3  0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#5  0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#7  0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#8  0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#9  0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#10 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#11 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#12 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#13 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#14 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#15 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#16 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#17 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#18 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#19 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#20 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#21 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#22 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#23 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#24 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#25 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#26 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#27 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#28 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#29 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#30 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#31 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#32 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#33 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#34 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#35 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#36 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#37 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#38 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#39 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#40 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#41 0x00007ff76a44ccc4 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--q
(gdb) info threads 
  Id   Target Id                           Frame 
* 1    Thread 0x7ff76b4a6740 (LWP 2750166) 0x00007ff76a44be59 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
  2    Thread 0x7ff765c3c700 (LWP 2750176) 0x00007ff76b78499f in __GI___poll (fds=0x233ed10, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  3    Thread 0x7ff76543b700 (LWP 2750177) 0x00007ff76b78499f in __GI___poll (fds=0x7ff758017100, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  4    Thread 0x7ff76643d700 (LWP 2750175) 0x00007ff76b78499f in __GI___poll (fds=0x233d2c0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
(gdb) q

看不懂啊
然后尝试重装libglib2.0-0:amd64,重装meld都不行
最开始还看了/var/log/apport.log里面写

ERROR: apport (pid 2583320) Wed Jul  6 20:58:49 2022: called for pid 2583316, signal 11, core limit 0, dump mode 1
ERROR: apport (pid 2583320) Wed Jul  6 20:58:49 2022: script: /usr/bin/meld, interpreted by /usr/bin/python3.8 (command line "/usr/bin/python3 /usr/bin/meld")
ERROR: apport (pid 2583320) Wed Jul  6 20:58:50 2022: gdbus call error: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

ERROR: apport (pid 2583320) Wed Jul  6 20:58:50 2022: debug: session gdbus call: 
ERROR: apport (pid 2583320) Wed Jul  6 20:58:50 2022: apport: report /var/crash/_usr_bin_meld.1000.crash already exists and unseen, skipping to avoid disk usage DoS 
ERROR: apport (pid 2583382) Wed Jul  6 20:58:59 2022: called for pid 2583376, signal 11, core limit 0, dump mode 1
ERROR: apport (pid 2583382) Wed Jul  6 20:58:59 2022: script: /usr/bin/meld, interpreted by /usr/bin/python3.8 (command line "/usr/bin/python3 /usr/bin/meld")

还以为为啥org.gnome.SessionManager没有会不会是这个导致的,但是KDE可能确实没这玩意
后来看了哪个帖子,说不一定是这个问题,说用strace命令去跟系统调用,也看不懂
还尝试git clone了项目源码,更新了mesonninja来编译
然后用

PYTHONPATH=`pwd`/out/lib/python/dist-packages python3 ./bin/meld

运行,结果也崩溃了
突然想到/usr/bin/meld打开是个python脚本,能不能换一个python运行一下
我原来安装的是python3.8,换了python3.9,报错依赖库gtk+3.20以上……烦
原来博客园有 Markdown 实时预览编辑器了,好耶

posted @ 2022-07-07 09:44  ItsShowTime  阅读(537)  评论(0编辑  收藏  举报