segfault in libgtk-x11-2.0.so.0 with several programs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtk+2.0 (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
Today I have been encountering segfaults in fcl and virtualbox:
Mar 2 07:20:40 Z560 kernel: [817210.808918] show_signal_msg: 12 callbacks suppressed
Mar 2 07:20:40 Z560 kernel: [817210.808922] fcl[933482]: segfault at 7fb98814fdb8 ip 00007fb96efab218 sp 00007ffc4a89b918 error 4 in libgtk-
Mar 2 07:20:40 Z560 kernel: [817210.808932] Code: 79 db ff 48 83 c4 20 5b 5d 41 5c c3 66 0f 1f 44 00 00 48 8b b7 90 00 00 79 48 89 d7 e9 c1 a1 db 58 90 f3 0f 1e fa 48 83 d9 18 <48> 8b 05 99 4b 1a 19 48 89 44 24 08 48 8b 5d 24 08 48 85 c0 74 12
Mar 2 07:20:40 Z560 systemd[1]: Created slice system-
Mar 2 07:20:40 Z560 systemd[1]: Started Process Core Dump (PID 933484/UID 0).
Mar 2 07:20:40 Z560 systemd-
Mar 2 07:20:40 Z560 systemd[1]: systemd-
and:
Mar 2 07:51:19 Z560 kernel: [819049.877381] VirtualBox[936782]: segfault at 7ff8860b4db8 ip 00007ff86cf10218 sp 00007ffdd1a53758 error 4 in libgtk-
Mar 2 07:51:19 Z560 kernel: [819049.877395] Code: 79 db ff 48 83 c4 20 5b 5d 41 5c c3 66 0f 1f 44 00 00 48 8b b7 90 00 00 79 48 89 d7 e9 c1 a1 db 58 90 f3 0f 1e fa 48 83 d9 18 <48> 8b 05 99 4b 1a 19 48 89 44 24 08 48 8b 5d 24 08 48 85 c0 74 12
Mar 2 07:51:19 Z560 systemd[1]: Started Process Core Dump (PID 936794/UID 0).
Mar 2 07:51:19 Z560 systemd-
Mar 2 07:51:19 Z560 systemd[1]: systemd-
As this library has not changed I am assuming the problem is with one of the libraries it depends upon. Several packages were updated in the past few days, I believe including some that may be the cause of the problem. I have attached a zip with my /var/log/
Version of library is 2.24.32-4ubuntu4 and library file is dated 2021-03-31 here.
dhdurgee@verizon.net (dhdurgee) wrote : | #1 |
Sebastien Bacher (seb128) wrote : | #2 |
summary: |
- segfault in libgt-x11-2.0.so.0 with several programs + segfault in libgtk-x11-2.0.so.0 with several programs |
Changed in gtk+2.0 (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Incomplete |
dhdurgee@verizon.net (dhdurgee) wrote : | #3 |
The two programs are completely broken for me at this time. I use them on a daily basis, so this is a real problem for me. There may be additional broken programs that I have yet to encounter, but I have not hit any others yet.
Given the behavior started suddenly yesterday after years of operation I suspect that an update to one of the dependencies of the library where the crash occurs is the cause.
I am not a developer, and thus unable to track this down personally. Given my suspicions I attached a zip containing the update logs in hopes someone with the proper tools can identify the problem. I should be able to back out the particular change once it is identified.
If you need further information please let me know.
Sebastien Bacher (seb128) wrote : | #4 |
Could you try to follow https:/
dhdurgee@verizon.net (dhdurgee) wrote : | #5 |
- gdb-fcl.txt Edit (7.7 KiB, text/plain)
I attempted to use gdb on virtualbox first, but received errors. Given this I was able to provide what you wanted with fcl.
Hopefully it will provide you with enough information to diagnose the problem.
dhdurgee@verizon.net (dhdurgee) wrote : | #6 |
Regarding falling back to earlier releases, I have created a local repository on my system. Given this I should be able to place the back-level packages and then force those versions in synaptic.
I am not experienced in reading the gdb output, but it seems to me that the call which generates the segfault is from libgail.so and libgail was among those updated on 1 March from ..ubuntu1 to ..ubuntu1.1 version.
Given this, would it make sense for me to back-level that one package? Perhaps all those updated to ..ubunto1.1 from ..ubuntu1, which includes gtk updates?
I don't want to create more problems by missing co-dependencies in version levels, so I will wait for your guidance before I proceed further.
dhdurgee@verizon.net (dhdurgee) wrote : | #7 |
dhdurgee@verizon.net (dhdurgee) wrote : | #8 |
- gdb-gimp.txt Edit (8.4 KiB, text/plain)
Found yet another program with the same crash.
To my untrained eyes the failure appears to start with gdk_display_
Is it possible that this crash impacts ALL gtk2 dependent programs?
dhdurgee@verizon.net (dhdurgee) wrote : | #9 |
I was going to add a copy of the libgail-3-0 package that was working for me to my local repository to see if I could prepare to attempt to back out the update. I am having difficulty locating a copy of the package that was replaced. I have access to 3.24.18 in the main repository and the failing one in the updates, but a search for the one that was replaced has failed.
I am looking for:
libgail-
This appears to no longer be available. Am I missing something?
I am looking for advice on my next step to recover from this failure. Is the data available from the three back traces sufficient to isolate the part of the recent updates that needs to be backed out? If it is indeed libgail-3-0 should I back it out to the 3.24.18 version available in main?
Sebastien Bacher (seb128) wrote : | #10 |
you can find the deb files on https:/
check on your system the packages from that source using
$ dpkg -l | grep 3.24.20-0ubuntu1.1
and download in a new directory the corresponding deb from the webpage, then install them using
$ sudo dpkg -i *.deb
in the directory where you downloaded
Sebastien Bacher (seb128) wrote : | #11 |
the segfault seems to be in the gtk menu code, do ypu have any special indicator or plugin installed? what desktop environment do you use? it would also help to get details on the backtrace if https:/
dhdurgee@verizon.net (dhdurgee) wrote : | #12 |
Per the above dpkg search and looking at /var/cache/
-rw-r--r-- 1 root root 195976 Feb 16 05:54 gir1.2-
-rw-r--r-- 1 root root 28756 Feb 16 05:54 gtk-update-
-rw-r--r-- 1 root root 22380 Feb 16 05:54 libgail-
-rw-r--r-- 1 root root 2620492 Feb 16 05:54 libgtk-
-rw-r--r-- 1 root root 61884 Feb 16 05:54 libgtk-
-rw-r--r-- 1 root root 234388 Feb 16 05:54 libgtk-
So I should download the corresponding files from launchpad to a new directory and then issue the sudo dpkg -i *.deb command from there to replace the updated files on my system, correct?
Should there be anything else I ought to do before issuing the sudo dpkg command? Should I take any action to ensure I don't accidentally "update" these files and get back into the same situation? I think I can "lock" them in synaptic and there may be other ways to accomplish the same thing.
dhdurgee@verizon.net (dhdurgee) wrote : | #13 |
How helpful to you would it be for me to install the .ddeb file and which of the traces would you want me to run again? Would I do the install via sudo dpkg -i or use synaptic or apt in some manner? Should I uninstall it after the traces? Obviously I would need to do the traces you want prior to falling back to the earlier release of the packages.
I am running linux mint cinnamon x64 20.3 which is based on ubuntu focal. The updates were applied from a mirror of the focal updates repository, thus I contacted you when the problem arose. The desktop environment is cinnamon 5.2.7 here. I have some cinnamon applets installed and can provide you any details you deem appropriate.
Have any similar reports been filed on this, or is this something that seems to manifest only on my particular system for some reason? Is my system or my usage of it uncommon enough that you have receive no other reports of a total inability to use programs such as I am encountering?
Thank you again for your assistance in this matter. I trust backing this update out should solve the problem. Looking at the build date on the launchpad page I certainly would have been running them for almost two years on this system.
Sebastien Bacher (seb128) wrote : | #14 |
> So I should download the corresponding files from launchpad to a new directory and then issue the sudo dpkg -i *.deb command from there to replace the updated files on my system, correct?
Yes
> Should there be anything else I ought to do before issuing the sudo dpkg command? Should I take any action to ensure I don't accidentally "update" these files and get back into the same situation?
there are way to 'pin' updates with apt or synaptic but at this point we are trying to confirm if that update is the issue, if it is and that you want to pin back to the old version we can help you with that
> How helpful to you would it be for me to install the .ddeb file and which of the traces would you want me to run again? Would I do the install via sudo dpkg -i or use synaptic or apt in some manner?
it would provide more details on the segfault and make it easier to understand, but let's start by going back to the previous gtk3 version and see if that helps.
There has been no other report of such issue and trying in a fresh VM from focal gtk3 softwares work fine with the updated gtk, including gimp, pidgin and others. Unsure if Mint is adding some sort of custom hacks on top of what is in Ubuntu which would have an impact or if that could be something local.
One other thing you could try is to create a new local user, log with it and see if the issue is still there, it would tell us if it's due to some user profile configuration or something wrong in the system
dhdurgee@verizon.net (dhdurgee) wrote : | #15 |
- gdb-fcl2.txt Edit (9.8 KiB, text/plain)
I downloaded and installed the .ddeb file and then ran the first back trace again. The results look interesting, specifically the "no such file or directory" notation.
dhdurgee@verizon.net (dhdurgee) wrote : | #16 |
I created a new user and can confirm that the same segfault occurs for a brand new user.
dhdurgee@verizon.net (dhdurgee) wrote : | #17 |
I have downloaded the replacement debs, but I will hold off until on installing them in case the new back trace provides any suggestions for further diagnosis of the problem. I can wait another day or two if it will help your efforts to correct this.
dhdurgee@verizon.net (dhdurgee) wrote : | #18 |
I just noticed something this morning that may or may not be relevant. I normally have vlc running on my system and it was on and running at and after the point where I updated to the new release. When testing with a new user I closed down everything on my usual user. I now find that vlc hits the same segfault when I attempt to open it.
So it appears that if a program was open and running before the update was applied it continued to do so, but once closed it could encounter the same segfault when it attempts to start.
Sebastien Bacher (seb128) wrote : | #19 |
could you install https:/
you can also try downgrading gtk3 then, the backtrace has more details but the bug still doesn't really make sense
the fact that already started program keep working is expected since the library is loaded from disk on start and a change on disk isn't going to replace it until the program exit and starts again
dhdurgee@verizon.net (dhdurgee) wrote : | #20 |
- gdb-fcl3.txt Edit (9.7 KiB, text/plain)
Additional back trace after installing additional .ddeb file. Any help?
dhdurgee@verizon.net (dhdurgee) wrote : | #21 |
Don't know if this is possible, but would there be a way to have gdb stop at the point where the segfault occurs in the updated library when using the previous release to see what differs? I want to help you track this down, but I am unsure what else I can do at this point.
dhdurgee@verizon.net (dhdurgee) wrote : | #22 |
- back trace for fcl run Edit (9.6 KiB, text/plain)
As I had not heard anything from you for a while I went ahead and followed your directions to return to the prior version as follows:
dhdurgee@
[sudo] password for dhdurgee:
dpkg: warning: downgrading gir1.2-
(Reading database ... 334032 files and directories currently installed.)
Preparing to unpack gir1.2-
Unpacking gir1.2-
dpkg: warning: downgrading gtk-update-
Preparing to unpack gtk-update-
Unpacking gtk-update-
dpkg: warning: downgrading libgail-3-0:amd64 from 3.24.20-0ubuntu1.1 to 3.24.20-0ubuntu1
Preparing to unpack libgail-
Unpacking libgail-3-0:amd64 (3.24.20-0ubuntu1) over (3.24.20-
dpkg: warning: downgrading libgtk-3-0:amd64 from 3.24.20-0ubuntu1.1 to 3.24.20-0ubuntu1
Preparing to unpack libgtk-
Unpacking libgtk-3-0:amd64 (3.24.20-0ubuntu1) over (3.24.20-
dpkg: warning: downgrading libgtk-3-bin from 3.24.20-0ubuntu1.1 to 3.24.20-0ubuntu1
Preparing to unpack libgtk-
Unpacking libgtk-3-bin (3.24.20-0ubuntu1) over (3.24.20-
dpkg: warning: downgrading libgtk-3-common from 3.24.20-0ubuntu1.1 to 3.24.20-0ubuntu1
Preparing to unpack libgtk-
Unpacking libgtk-3-common (3.24.20-0ubuntu1) over (3.24.20-
Setting up gtk-update-
Setting up libgtk-3-common (3.24.20-0ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.6-
Setting up libgtk-3-0:amd64 (3.24.20-0ubuntu1) ...
Setting up libgtk-3-bin (3.24.20-0ubuntu1) ...
Setting up gir1.2-
Setting up libgail-3-0:amd64 (3.24.20-0ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
dhdurgee@
Unfortunately the results were not as hoped. Attached please find the backtrace when I attempted to use fcl afterwards. What next?
Sebastien Bacher (seb128) wrote : | #23 |
I'm out of idea at this point, you could try to remove libgail-common and see if that makes a difference but otherwise unsure why it's hitting a segfault in the menu code...
Changed in gtk+2.0 (Ubuntu): | |
status: | Incomplete → New |
dhdurgee@verizon.net (dhdurgee) wrote : | #24 |
How should I remove libgail-common? Could doing so cause other problems?
Sebastien Bacher (seb128) wrote : | #25 |
$ sudo apt remove libgail-common
it's more of a workaround to try, but check what it would potential remove also if anything
dhdurgee@verizon.net (dhdurgee) wrote : | #26 |
Here are the results:
dhdurgee@
[sudo] password for dhdurgee:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libexo-helpers libllvm11 mint-background
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libgail-common
0 upgraded, 0 newly installed, 1 to remove and 38 not upgraded.
After this operation, 480 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 334032 files and directories currently installed.)
Removing libgail-
dhdurgee@
Gtk-Message: 14:26:07.140: Failed to load module "gail"
** (fcl:1388677): WARNING **: 14:26:07.158: (../atk-
Illegal instruction (core dumped)
dhdurgee@
Should I take a back trace as well?
dhdurgee@verizon.net (dhdurgee) wrote : | #27 |
At this point I can only think that a change in one of the dependencies of these libraries is the problem. Are any of the other libraries updated in my term.log in the dependency tree of the failing library? If so, perhaps I should first restore the libgail-common and then back level that package.
Sebastien Bacher (seb128) wrote : | #28 |
you could try to get a backtrace of the illegal instruction, but it's just weird, maybe there are some binaries corrupted on disk or something?
Could you try to maybe
$ sudo debsums -s
it should report if some binaries are not matching they expected checksums
dhdurgee@verizon.net (dhdurgee) wrote : | #29 |
Tried this first and got:
dhdurgee@
[sudo] password for dhdurgee:
sudo: debsums: command not found
dhdurgee@
Is this in a developer package I need to load first?
Sebastien Bacher (seb128) wrote : | #30 |
yes
$ sudo apt install debsums
dhdurgee@verizon.net (dhdurgee) wrote : | #31 |
dhdurgee@
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/lib/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/lib/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /usr/share/
debsums: changed file /var/lib/
debsums: changed file /usr/share/
debsums: chang...
dhdurgee@verizon.net (dhdurgee) wrote : | #32 |
- gdb-fcl5.txt Edit (1.7 KiB, text/plain)
Something different happening this morning! I ran the gdb for fcl to obtain the back trace for you, but unexpectedly the program actually started! There are some messages in the output, but the GUI is up and running.
Given this I just tried and both gimp and virtualbox are starting now as well.
What should I do for you now?
I am going to catch up on some of the work I needed to do with these programs first, but I am willing to check further into this for you after that.
dhdurgee@verizon.net (dhdurgee) wrote : | #33 |
While we have been working on this a number of updates have queued up to be installed. How should I proceed at this point?
Sebastien Bacher (seb128) wrote : | #34 |
I would start by reinstalling libgail-common, restart and see if that brings the issue back. I also think you can install the pending upgrades, it shouldn't make a difference here
dhdurgee@verizon.net (dhdurgee) wrote : | #35 |
I will take a stab at this later today.
Yesterday while searching a bit I may have encountered the reason these particular packages have a problem. I was doing a search and it may be that the packages having the problem I am seeing are all qt5 users. Could there be a problem between qt5 and the libgail under some circumstances? Is there a qt5 configuration file somewhere that might offer a way to tweak things?
dhdurgee@verizon.net (dhdurgee) wrote : | #36 |
How do I reinstall libgail-common? I used dpkg -i with libgail-
dhdurgee@verizon.net (dhdurgee) wrote : | #37 |
I just thought to look in synaptic and I see it there. Should I install from there, or is there a reason to do so in another manner?
Sebastien Bacher (seb128) wrote : | #38 |
yes, installing from synaptic is fine. The package comes from gtk2 that's why it's not on the gtk3 buildpage
dhdurgee@verizon.net (dhdurgee) wrote : | #39 |
Installed libgail-common via synaptic as requested and restarted the system. The results are not what I expected:
dhdurgee@
Gtk-Message: 12:46:26.155: Failed to load module "gail"
** (fcl:2132): WARNING **: 12:46:26.238: (../atk-
dhdurgee@
Package: libgail-common
Versions:
2.24.32-4ubuntu4 (/var/lib/
Description Language:
Description Language:
Description Language: en
Reverse Depends:
libgail-
ubuntu-
ubuntu-
ubuntu-
ubuntu-
multimedia-
libgnomecanva
libgail-
libgail-
libgtk2.
Dependencies:
2.24.32-4ubuntu4 - libatk1.0-0 (2 1.32.0) libc6 (2 2.4) libgail18 (5 2.24.32-4ubuntu4) libgdk-pixbuf2.0-0 (2 2.22.1) libglib2.0-0 (2 2.37.3) libgtk2.0-0 (2 2.24.0) libpango-1.0-0 (2 1.28.3) libx11-6 (0 (null)) libgail-common:i386 (35 2.24.32-4ubuntu4) libgail-common:i386 (38 2.24.32-4ubuntu4)
Provides:
2.24.32-4ubuntu4 -
Reverse Provides:
dhdurgee@
Is this what you expected? I expected either the load failed message to go away or for the crash to return.
Sebastien Bacher (seb128) wrote : | #40 |
the earlier experience of having the segfault not resolved after removing it suggests that you might need to restart the session for the change to be active, did you try to logout and log in again?
dhdurgee@verizon.net (dhdurgee) wrote : | #41 |
I used synaptic to install the package and then did a restart of the system after cleanly closing all running programs. That of course required me to log back in when the system restarted. Is there more I should do at this point?
dhdurgee@verizon.net (dhdurgee) wrote : | #42 |
I just installed all of the queued updates with the exception of virtualbox and the linux kernel. Everything appears to be working OK.
I had a thought occur to me, perhaps that console message "Gtk-Message: 11:09:45.426: Failed to load module "gail"
** (fcl:2049): WARNING **: 11:09:45.439: (../atk-
IS normal? I normally launched these packages from the panel in the GUI, so any such messages would not have been visible. I began launching them from a terminal window as a diagnostic, which revealed the segfault message when things broke for whatever the reason was.
Given that removing and re-installing libgail-common appears to have cleared the problem, perhaps something was causing the packages that failed to attempt to use gail when it was not appropriate.
I will let you know if I encounter any further issues.
dhdurgee@verizon.net (dhdurgee) wrote : | #43 |
I thought to do a web search and it appears that the failure to load "gail" and the atk_bridge_
It appears to be a harmless error in my case, but some of the other reported cases appear to prevent packages from working.
If my choices are between a harmless error message and a segfault I will take the harmless error message.
dhdurgee@verizon.net (dhdurgee) wrote : | #44 |
Just found something at https:/
8699 658168 Gtk-Message: Failed to load module "gail"
So this might be a GTK bug that is fixed in GTK+ 3.24.32, 03-03-2022
Thank you for your bug report. Was that a one time issue that trigger at a specific time or at those software broken for you now?