linuxmint / mintupdate

The Linux Mint Update Manager
309 stars 152 forks source link

Update Manager mintUpdate 6.0.3 keeps crashing the Xserver reproducibly #837

Open dnfoo opened 10 months ago

dnfoo commented 10 months ago

Describe the bug When I open the Update Manager (mintUpdate 6.0.3) from the panel everything seems and responds normal, but as soon as I hit the refresh button it crashes the Xserver and presents me with a new login window afterwards.

To Reproduce Steps to reproduce the behavior:

  1. Open Update Manager from Tray Icon
  2. Click on Refresh
  3. Watch the Xserver crash

Expected behavior Update Manager refreshing without Xserver crashing

Distribution:

Software version: 6.0.3

Logs: Copy & paste the log output from Update Manager > View > Information here.

Update manager Logs before hitting refresh seem normal:

08.23@20:58 ++ Changes to the package cache detected, triggering refresh
08.23@20:58 ++ Initial refresh will happen in 0 day(s), 0 hour(s) and 10 minute(s)
08.23@20:58 ++ Inhibited power management
08.23@20:58 ++ Starting refresh (local only)
08.23@20:58 ++ System is up to date
08.23@20:58 ++ Refresh finished
08.23@20:58 ++ Resumed power management
08.23@21:08 ++ Update Manager is in tray mode, performing initial refresh
08.23@21:08 ++ Inhibited power management
08.23@21:08 ++ Starting refresh (retrieving lists of updates from remote servers)
08.23@21:08 ++ Refreshing available Flatpak updates
08.23@21:09 ++ System is up to date
08.23@21:09 ++ Refresh finished
08.23@21:09 ++ Resumed power management
08.23@21:09 ++ Recurring refresh will happen in 0 day(s), 1 hour(s) and 59 minute(s)

journalctl gives more insight:

Aug 23 12:02:04 dan-ThinkPad-X200s rtkit-daemon[908]: Supervising 8 threads of 5 processes of 1 users.
 Aug 23 12:02:04 dan-ThinkPad-X200s rtkit-daemon[908]: Supervising 8 threads of 5 processes of 1 users.
Aug 23 12:02:32 dan-ThinkPad-X200s sudo[12843]:      dan : PWD=/home/dan ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
Aug 23 12:02:32 dan-ThinkPad-X200s sudo[12843]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Aug 23 12:02:32 dan-ThinkPad-X200s sudo[12843]: pam_unix(sudo:session): session closed for user root
Aug 23 12:02:33 dan-ThinkPad-X200s sudo[12847]:      dan : PWD=/home/dan ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
Aug 23 12:02:33 dan-ThinkPad-X200s sudo[12847]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Aug 23 12:02:33 dan-ThinkPad-X200s sudo[12847]: pam_unix(sudo:session): session closed for user root
Aug 23 12:02:33 dan-ThinkPad-X200s sudo[12850]:      dan : PWD=/home/dan ; USER=root ; COMMAND=/usr/bin/mint-refresh-cache --use-synaptic 88080455
Aug 23 12:02:33 dan-ThinkPad-X200s sudo[12850]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Aug 23 12:02:38 dan-ThinkPad-X200s systemd[1]: Starting Update APT News...
Aug 23 12:02:38 dan-ThinkPad-X200s systemd[1]: Starting Update the local ESM caches...
Aug 23 12:02:38 dan-ThinkPad-X200s systemd[1]: Started Process Core Dump (PID 12891/UID 0).
Aug 23 12:02:39 dan-ThinkPad-X200s systemd[1]: esm-cache.service: Deactivated successfully.
Aug 23 12:02:39 dan-ThinkPad-X200s systemd[1]: Finished Update the local ESM caches.
Aug 23 12:02:40 dan-ThinkPad-X200s systemd-coredump[12892]: Process 7915 (Xorg) of user 0 dumped core.

                                                            Found module linux-vdso.so.1 with build-id: 94f2c4c5b8fcb5a63866a943b8a321ac1458b921
                                                            Found module libpcre.so.3 with build-id: 3982f316c887e3ad9598015fa5bae8557320476a
                                                            Found module libglib-2.0.so.0 with build-id: c74e800dfd5f72649d673b44292f4a817e45150b
                                                            Found module libgobject-2.0.so.0 with build-id: 7c47809b4e688382aab4127a2e07496450c5e6b0
                                                            Found module libgudev-1.0.so.0 with build-id: b8325dee54d53266618de95232d1755edea29006
                                                            Found module libwacom.so.9 with build-id: 478af216bd7d0feaaeda7e367cd3a4e6541ef9a5
                                                            Found module libevdev.so.2 with build-id: 453d5adc374cf78a17327783c6971a44b0e35a9c
                                                            Found module libmtdev.so.1 with build-id: 7bd8926b3f8fdf3b55e54b80c46fc02e1cf0eed9
                                                            Found module libinput.so.10 with build-id: f4bff11649004a950a5f631875fe07b6f5b77588
                                                            Found module libinput_drv.so with build-id: a62d9ac980154584b02609bb6856a2d60d527ac7
                                                            Found module libxcb-sync.so.1 with build-id: 657d8516621c4042b4b221ce1b3525f92467ef7e
                                                            Found module libxcb-present.so.0 with build-id: a4f415af56b06f1f38d5a0339dd9828ff136b115
                                                            Found module libwayland-client.so.0 with build-id: a85980f4efa33fa5cadfbf257349fef99d499427
                                                            Found module libxcb-xfixes.so.0 with build-id: d6f264cc06fb6c92b5ced2c8f373cf5a5bda0e09
                                                            Found module libxcb-randr.so.0 with build-id: 7af27bf3e608d5c06645ad4086788afe8a8447e7
                                                            Found module libxcb-dri2.so.0 with build-id: dc5a2c2b0c9080fff87ea241e7298a7ac2f838e3
                                                            Found module libX11-xcb.so.1 with build-id: f0a537068940d282177d86e6ac358fc7ba5dad97
                                                            Found module libEGL_mesa.so.0 with build-id: fc1b63774e1077067c206cadb31412e44162ec9e
                                                            Found module libEGL.so.1 with build-id: 236d96c92ee2914a0e90e06e01b79dfcba0f7b41
                                                            Found module libresolv.so.2 with build-id: 7fd7253c61aa6fce2b7e13851c15afa14a5ab160
                                                            Found module libkeyutils.so.1 with build-id: ff27227afa5eeddccab180dd29bd7fcff94aea7c
                                                            Found module libkrb5support.so.0 with build-id: 85c1fccae74910b1afbe878af2202ec6139d8fc2
                                                            Found module libcom_err.so.2 with build-id: ce0901f10854b3c9276066b98d9a72303206e0d5
                                                            Found module libk5crypto.so.3 with build-id: 8bc1e44d4148b2b533d5a97335114565d94197f8
                                                                                                                       Found module libkrb5.so.3 with build-id: 62434c49e8118c49a9d60a0795705c806524782d
                                                            Found module libgssapi_krb5.so.2 with build-id: a05177e3a955af79b999bbc081b0f7bf9fb21c87
                                                            Found module libtirpc.so.3 with build-id: 1a361e188043ff5abfdb655af6186b8a0f9b205f
                                                            Found module libnsl.so.2 with build-id: 400d0e5ea8cb66596b2f49bfd0dfe0330ef9f51d
                                                            Found module libnss_nis.so.2 with build-id: 19728f013851322d1aebd3682ca8bd4deef6a3f0
                                                            Found module libnss_compat.so.2 with build-id: afb1eac8ffa86dac183c36720b9ca662a9b5d0f2
                                                            Found module libicudata.so.70 with build-id: b1c2496dd0543023c7a19c961bb7f3abc818f465
                                                            Found module libicuuc.so.70 with build-id: bef3ff1d70aadd68aab07d858a759360c8b919ae
                                                            Found module libxml2.so.2 with build-id: 1cf4a22fbe15a77baca28e9c824592b8b5d852ff
                                                            Found module libtinfo.so.6 with build-id: e22ba7829a55a0dec2201a0b6dac7ba236118561
                                                            Found module libedit.so.2 with build-id: 9fcc3490de1a1f4919b1f6e398c99c7fa25f6863
                                                            Found module libgcc_s.so.1 with build-id: e3a44e0da9c6e835d293ed8fd2882b4c4a87130c
                                                            Found module libstdc++.so.6 with build-id: e37fe1a879783838de78cbc8c80621fa685d58a2
                                                            Found module libxcb-dri3.so.0 with build-id: b6aa69fda711358025ae4dd29fa597866d29b8c5
                                                            Found module libdrm_intel.so.1 with build-id: 78e82902c2a74278a5bac31c6cb8361a78bf7586
                                                            Found module libdrm_nouveau.so.2 with build-id: 717e881b4ee3b0bc2344b0f63c4fc10c84263f13
                                                            Found module libdrm_amdgpu.so.1 with build-id: 55735af4f6152d6148117c98fa6db08ed1d34fe5
                                                            Found module libelf.so.1 with build-id: 0eaf2d056fb292c3da2d99fa16c13d0ec798f121
                                                            Found module libdrm_radeon.so.1 with build-id: 2c199d459f832a915a700e1a9234cf9e14656889
                                                            Found module libsensors.so.5 with build-id: 0d5803327d5e32a301844fb819fd3c762f8e69f6
                                                            Found module libLLVM-15.so.1 with build-id: 5d46c4221e9c32a1695da30bd95956dd9ce00984
                                                            Found module crocus_dri.so with build-id: d04a40e4062a8d444ff6f23d4fe768215b2e32c7
                                                            Found module libglapi.so.0 with build-id: a0ccfe27e38672edb3d602648e22711af960a154
                                                            Found module libffi.so.8 with build-id: 59c2a6b204f74f358ca7711d2dfd349d88711f6a
                                                            Found module libexpat.so.1 with build-id: d212d1f61d04a1e60fccad1a8c118428cfd9be42
                                                            Found module libwayland-server.so.0 with build-id: 75c4598a62c3c6e94868467866488cdfba049e7d
                                                            Found module libepoxy.so.0 with build-id: 5ea53a2b100e4b044eee19d5222881a724abf046
                                                            Found module libgbm.so.1 with build-id: ea71017c17a466d7487e7c49bd1e548d094922f3
                                                            Found module libglamoregl.so with build-id: 94b630bd9e1738b9501d70dc9e7ad185d8dd84cf
                                                            Found module modesetting_drv.so with build-id: cfe5c689bb80d7b69a89e771b54d0b8ec633de05
                                                            Found module libxcb.so.1 with build-id: 1bef862a339557aa16c34c7a4b27f8f3aea90517
                                                            Found module libX11.so.6 with build-id: d1d3345a252a40a004cbd02011a651930e172ccd
                                                            Found module libGLX.so.0 with build-id: ac8b68a74f1ead77477f89bc98998ecb064e3ae5
                                                            Found module libGLdispatch.so.0 with build-id: 19c339ecd74c020f1db1342213a07114f4baf5e0
                                                            Found module libGL.so.1 with build-id: fe7c476406e1e41b511089398540d618177a7dcb
                                                            Found module libglx.so with build-id: cb8b090bb97f3cc77fc4d5b5819dab2df19b5015
                                                            Found module libbrotlicommon.so.1 with build-id: 43a72967cf84155914c8b3e915926733d1e57c11
                                                            Found module libbrotlidec.so.1 with build-id: 4b1f390dd6e24d49684db8b2443d082379e8e977
                                                            Found module libpng16.so.16 with build-id: d58bf7c11ac793d528926238d831792b5ef792cf
                                                            Found module libmd.so.0 with build-id: cd2d2f71b3967ebde30e2aa43b8eb63339020c06
                                                            Found module libcap-ng.so.0 with build-id: 9c147584fee3ed3c499a2fa2bdad3aa75ae8f120
                                                            Found module libcap.so.2 with build-id: b4bf900abf14aabe12d90988ceb30888acb2bcb0
                                                            Found module liblz4.so.1 with build-id: a85971851cd059f1af80d553c8e7170d42ec59a1
                                                            Found module libzstd.so.1 with build-id: 5d9d0d946a3154a748e87e17af9d14764519237b
                                                            Found module libfreetype.so.6 with build-id: bc6c65a19e6f75fea5e74a7fd6c0b91182e1a8b0
                                                            Found module libfontenc.so.1 with build-id: b1959e0ef458c74b5fd9e6015e3728b620ca88c0
                                                            Found module libbz2.so.1.0 with build-id: e56b62c27bcc7ace8f9be36b255bd7b31bfde405
                                                            Found module libz.so.1 with build-id: 30840b79ac329ecbf1dec0bb60180eed256d319f
                                                            Found module liblzma.so.5 with build-id: b85da6c48eb60a646615392559483b93617ef265
                                                            Found module libgpg-error.so.0 with build-id: 3fbec71c67bee60d8aef00697ee187079b0fb307
                                                            Found module libpcre2-8.so.0 with build-id: 184a841c55fb7fe5e3873fcda8368c71016cd54c
                                                            Found module ld-linux-x86-64.so.2 with build-id: 61ef896a699bb1c2e4e231642b2e1688b2f1a61e
                                                            Found module libc.so.6 with build-id: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d
                                                            Found module libbsd.so.0 with build-id: 9a6c72469251e2feb63e175ef5cb944ce6e00df3
                                                            Found module libm.so.6 with build-id: 27e82301dba6c3f644404d504e1bb1c97894b433
                                                            Found module libaudit.so.1 with build-id: 47d5dee8f88c177f563c0836c19f8ac1bb80d899
                                                            Found module libXdmcp.so.6 with build-id: 6b60f99504aa1d3999ea02a14366d1a39d6c5dcf
                                                            Found module libxshmfence.so.1 with build-id: f08296172ec7b676e1b371afc936e36add17366d
                                                            Found module libsystemd.so.0 with build-id: e45f7492c0f62251620378d7224ad0371a8d1f98
                                                            Found module libXau.so.6 with build-id: 7089b383cacbfc1760634a3be19a923e51fe3315
                                                            Found module libXfont2.so.2 with build-id: bf8e9676355223cfd1bee20f9579d55d6b80aa52
                                                            Found module libpixman-1.so.0 with build-id: 5e936cdac032b6048d9d1a8c0bb0e4a10c86d48c
                                                            Found module libdrm.so.2 with build-id: 9c7cb19295d20e515902cb0710326a0b8d6394c8
                                                            Found module libpciaccess.so.0 with build-id: 4c93da952f83c1d085d4bdead692db544c79b004
                                                            Found module libxcvt.so.0 with build-id: bfdace0c594653ee489362f7fc580908efba3601
                                                            Found module libunwind.so.8 with build-id: 6087b27829180bc245595d15b8d7b38b298d35af
                                                            Found module libgcrypt.so.20 with build-id: 60a5e524de0ed8323edf33e9eb9127a9eee02359
                                                            Found module libselinux.so.1 with build-id: 6fa53202ce676297de24873c886443b2759bfd8a
                                                            Found module libudev.so.1 with build-id: 9183eed17e70543d81d9cddda160df12a445f94a
                                                            Found module libdbus-1.so.3 with build-id: 63e8b99215502138cb63afd6d65851a5e837ed49
                                                            Found module Xorg with build-id: e22e0d2fa94a2d410240549f47f8e01e9d655a92
                                                            Stack trace of thread 7915:
                                                            #0  0x00007f2226950a7c __pthread_kill_implementation (libc.so.6 + 0x96a7c)
                                                            #1  0x00007f22268fc476 __GI_raise (libc.so.6 + 0x42476)
                                                            #2  0x00007f22268e27f3 __GI_abort (libc.so.6 + 0x287f3)
                                                            #3  0x0000561e81a35580 OsAbort (Xorg + 0x1da580)
                                                            #4  0x0000561e81a3ad89 n/a (Xorg + 0x1dfd89)
                                                            #5  0x0000561e81a3bd7a FatalError (Xorg + 0x1e0d7a)
                                                            #6  0x00007f222613484e n/a (libglamoregl.so + 0xe84e)
                                                            #7  0x00007f222613bd0a n/a (libglamoregl.so + 0x15d0a)
                                                            #8  0x00007f222613cd39 n/a (libglamoregl.so + 0x16d39)
                                                            #9  0x00007f222613e71e n/a (libglamoregl.so + 0x1871e)#10 0x00007f2226136679 n/a (libglamoregl.so + 0x10679)
                                                            #11 0x0000561e8199fd67 n/a (Xorg + 0x144d67)
                                                            #12 0x0000561e81993f53 n/a (Xorg + 0x138f53)
                                                            #13 0x0000561e818bc4c5 n/a (Xorg + 0x614c5)
                                                            #14 0x0000561e818c0544 n/a (Xorg + 0x65544)
                                                            #15 0x00007f22268e3d90 __libc_start_call_main (libc.so.6 + 0x29d90)
                                                            #16 0x00007f22268e3e40 __libc_start_main_impl (libc.so.6 + 0x29e40)
                                                            #17 0x0000561e818a9605 _start (Xorg + 0x4e605)

                                                            Stack trace of thread 7925:
                                                            #0  0x00007f22269dffde epoll_wait (libc.so.6 + 0x125fde)
                                                            #1  0x0000561e81a332db n/a (Xorg + 0x1d82db)
                                                            #2  0x0000561e81a30a09 n/a (Xorg + 0x1d5a09)
                                                            #3  0x00007f222694eb43 start_thread (libc.so.6 + 0x94b43)
                                                            #4  0x00007f22269e0a00 __clone3 (libc.so.6 + 0x126a00)

                                                            Stack trace of thread 7919:
                                                            #0  0x00007f222694b197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                                            #1  0x00007f222694dac1 __pthread_cond_wait_common (libc.so.6 + 0x93ac1)
                                                            #2  0x00007f22241dd89d n/a (crocus_dri.so + 0x10f89d)
                                                            #3  0x00007f222418db0b n/a (crocus_dri.so + 0xbfb0b)
                                                            #4  0x00007f22241dd7cb n/a (crocus_dri.so + 0x10f7cb)
                                                            #5  0x00007f222694eb43 start_thread (libc.so.6 + 0x94b43)
                                                            #6  0x00007f22269e0a00 __clone3 (libc.so.6 + 0x126a00)

                                                            Stack trace of thread 7920:
                                                            #0  0x00007f222694b197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                                            #1  0x00007f222694dac1 __pthread_cond_wait_common (libc.so.6 + 0x93ac1)
                                                            #2  0x00007f22241dd89d n/a (crocus_dri.so + 0x10f89d)
                                                            #3  0x00007f222418db0b n/a (crocus_dri.so + 0xbfb0b)
                                                            #4  0x00007f22241dd7cb n/a (crocus_dri.so + 0x10f7cb)
                                                            #5  0x00007f222694eb43 start_thread (libc.so.6 + 0x94b43)
                                                            #6  0x00007f22269e0a00 __clone3 (libc.so.6 + 0x126a00)

                                                            Stack trace of thread 7918:
                                                            #0  0x00007f222694b197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                                            #1  0x00007f222694dac1 __pthread_cond_wait_common (libc.so.6 + 0x93ac1)
                                                            #2  0x00007f22241dd89d n/a (crocus_dri.so + 0x10f89d)
                                                            #3  0x00007f222418db0b n/a (crocus_dri.so + 0xbfb0b)
                                                            #4  0x00007f22241dd7cb n/a (crocus_dri.so + 0x10f7cb)
                                                            #5  0x00007f222694eb43 start_thread (libc.so.6 + 0x94b43)
                                                            #6  0x00007f22269e0a00 __clone3 (libc.so.6 + 0x126a00)

Aug 23 12:02:40 dan-ThinkPad-X200s systemd[1]: systemd-coredump@2-12891-0.service: Deactivated successfully.
Aug 23 12:02:40 dan-ThinkPad-X200s systemd[1]: systemd-coredump@2-12891-0.service: Consumed 1.360s CPU time.
Aug 23 12:02:40 dan-ThinkPad-X200s at-spi-bus-launcher[8196]: X connection to :0 broken (explicit kill or server shutdown).
Aug 23 12:02:40 dan-ThinkPad-X200s pulseaudio[8063]: X11 I/O error handler called
Aug 23 12:02:40 dan-ThinkPad-X200s pulseaudio[8063]: X11 I/O error exit handler called, preparing to tear down X11 modules
Aug 23 12:02:40 dan-ThinkPad-X200s polkitd(authority=local)[716]: Unregistered Authentication Agent for unix-session:c8 (system bus name :1.274, object path >
Aug 23 12:02:40 dan-ThinkPad-X200s lightdm[8001]: pam_unix(lightdm:session): session closed for user dan
Aug 23 12:02:40 dan-ThinkPad-X200s systemd[8053]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 12:02:40 dan-ThinkPad-X200s systemd[8053]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Aug 23 12:02:40 dan-ThinkPad-X200s systemd[1]: Stopping Session c8 of User dan...
Aug 23 12:02:41 dan-ThinkPad-X200s sudo[12850]: pam_unix(sudo:session): session closed for user root
Aug 23 12:02:42 dan-ThinkPad-X200s systemd[1]: apt-news.service: Deactivated successfully.
Aug 23 12:02:42 dan-ThinkPad-X200s systemd[1]: Finished Update APT News.
Aug 23 12:02:42 dan-ThinkPad-X200s lightdm[12932]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=110) by (uid=0)

Interestingly running sudo mint-refresh-cache --use-synaptic from a terminal window does NOT crash X. Neither does hitting the refresh button while a synaptic window is open (this will lead to an error message about closing the synaptic window first in Update Manager). running sudo mint-refresh-cache --use-synaptic 8808045 from terminal WILL crash X however.

That parameter number changes every time but I didn't figure out what it is yet (PID of Update Manager maybe?)

Crash report: If you are reporting a crash, please run mintupdate from a terminal window, reproduce the crash and copy & paste any output from the terminal window here.

running from terminal gives

/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1368: DeprecationWarning: Gdk.threads_init is deprecated
  Gdk.threads_init()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1751: DeprecationWarning: Gdk.threads_enter is deprecated
  Gdk.threads_enter()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:796: DeprecationWarning: Gdk.threads_leave is deprecated
  Gdk.threads_leave()

(mintUpdate.py:7008): Gdk-ERROR **: 21:55:39.140: The program 'mintUpdate.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 647 error_code 1 request_code 0 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Additional context See above