Segfault (core dumped) in gdk-pixbuf on upgrade

Bug #1174253 reported by asala
54
This bug affects 9 people
Affects Status Importance Assigned to Milestone
gdk-pixbuf
Fix Released
Medium
gdk-pixbuf (Ubuntu)
Fix Released
High
Unassigned
Precise
Fix Released
Undecided
Unassigned

Bug Description

[ Description ]

In the Raring cycle, libgobject gained a global constructor.

If a dynamically loaded module (by gdk-pixbuf-query-modules, which is called by a postinst trigger in this package, so quite common on upgrades) happens to dlclose() libgobject then we get this crash.

This can easily happen in dist-upgrades if you get unlucky with the ordering.

[ Proposed fix ]

Build with -Wl,--no-as-needed to ensure we get linked against libgobject even though we use none of its symbols.

In later glib & gdk-pixbuf releases, there's a function g_type_ensure() which is used for this purpose, but we don't have that in 12.04.

[ Development Fix ]

Described above: g_type_ensure() is used.

[ Regression potential ]

Not sure. The library will now be linked against more things so it could be a bit slower to initialise.

[ QA ]

1. Be in a precise chroot without precise-proposed
2. apt-get install libgdk-pixbuf2.0-0
3. sed -i 's/precise/trusty/' /etc/apt/sources.list
4. apt-get update
5. apt-get install libglib2.0-0
6. /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders # or your arch here
# that should have segfaulted
7. echo 'deb http://archive.ubuntu.com/ubuntu precise-proposed main' | tee -a /etc/apt/sources.list
8. apt-get update
9. apt-get install libgdk-pixbuf2.0-0/precise-proposed
10. /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders # or your arch here
# that should have worked

[ Original description ]

In two machines I had errors in the upgrade from Precise to Raring.

Preparing to replace librsvg2-2:i386 2.36.3-0ubuntu1 (using .../librsvg2-2_2.36.4-1_i386.deb) ...
Unpacking replacement librsvg2-2:i386 ...
Processing triggers for libgdk-pixbuf2.0-0:i386 ...
Segmentation fault (core dumped)
Processing triggers for libgdk-pixbuf2.0-0:amd64 ...
Segmentation fault (core dumped)
Setting up librsvg2-2:i386 (2.36.4-1) ...
Setting up librsvg2-2:amd64 (2.36.4-1) ...
Setting up librsvg2-common:i386 (2.36.4-1) ...
Setting up librsvg2-common:amd64 (2.36.4-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for libgdk-pixbuf2.0-0:i386 ...
Segmentation fault (core dumped)
Processing triggers for libgdk-pixbuf2.0-0:amd64 ...
Segmentation fault (core dumped)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%

I guess that due to that error, the gdk-pixbuf-query-loaders crashes later in the installation process.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: libgdk-pixbuf2.0-0 2.28.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-27.46-generic 3.5.7.7
Uname: Linux 3.5.0-27-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Mon Apr 29 12:17:40 2013
InstallationDate: Installed on 2009-11-25 (1251 days ago)
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MarkForUpload: True
SourcePackage: gdk-pixbuf
UpgradeStatus: Upgraded to raring on 2013-04-29 (0 days ago)

Revision history for this message
asala (asala) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdk-pixbuf (Ubuntu):
status: New → Confirmed
Revision history for this message
Sarah Bennert (sarahbx) wrote :

Not limited to 12.10->13.04.

Running 12.04.4, update this morning caused segfault.

Processing triggers for libgdk-pixbuf2.0-0 ...
Segmentation fault (core dumped)
Processing triggers for libgdk-pixbuf2.0-0:i386 ...
Segmentation fault (core dumped)

Attaching a crash report which may or may not have been submitted by apport. Things are not working right since this update.

from /var/log/kern.log:
Mar 20 08:03:00 pavilion kernel: [ 1216.707143] gdk-pixbuf-quer[3732]: segfault at 7f0cd8f45a1a ip 00007f0cd9c49616 sp 00007fff51d7f7e8 error 4 in libc-2.15.so[7f0cd9bc2000+1b5000]
Mar 20 08:03:01 pavilion kernel: [ 1218.178221] gdk-pixbuf-quer[3738]: segfault at f71c58ae ip 00000000f7529858 sp 00000000fffd828c error 4 in libc-2.15.so[f74ac000+1a4000]
Mar 20 08:03:05 pavilion kernel: [ 1222.001790] gdk-pixbuf-quer[3763]: segfault at 7f2e13124a1a ip 00007f2e13e28616 sp 00007fff87970978 error 4 in libc-2.15.so[7f2e13da1000+1b5000]
Mar 20 08:03:06 pavilion kernel: [ 1222.402027] gdk-pixbuf-quer[3767]: segfault at f71598ae ip 00000000f74bd858 sp 00000000ffe8263c error 4 in libc-2.15.so[f7440000+1a4000]
Mar 20 12:15:47 pavilion kernel: [ 156.556240] gdk-pixbuf-quer[2589]: segfault at 7f4f54f4aa1a ip 00007f4f55c4e616 sp 00007fff748976a8 error 4 in libc-2.15.so[7f4f55bc7000+1b5000]
Mar 20 12:17:25 pavilion kernel: [ 254.612513] gdk-pixbuf-quer[2653]: segfault at 7fbd6b2b1a1a ip 00007fbd6bfb5616 sp 00007fffcffe2548 error 4 in libc-2.15.so[7fbd6bf2e000+1b5000]

Sarah Bennert (sarahbx)
summary: - Segfault (core dumped) during upgrade 12.10 to 13.04
+ Segfault (core dumped) in gdk-pixbuf on upgrade
Revision history for this message
Sagi (Sergey) Shnaidman (sshnaidm) wrote :

Setting up libgdk-pixbuf2.0-0:amd64 (2.26.4-0ubuntu1) ...
Segmentation fault (core dumped)
Setting up libgdk-pixbuf2.0-0:i386 (2.26.4-0ubuntu1) ...
Segmentation fault (core dumped)
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Mar 20 23:10:30 lap kernel: [87723.770904] gdk-pixbuf-quer[32029]: segfault at 7fcb5de2a2da ip 00007fcb5ee4c586 sp 00007ffff79bf288 error 4 in libc-2.15.so[7fcb5ed1a000+1b5000]
Mar 20 23:10:31 lap kernel: [87724.654531] gdk-pixbuf-quer[32052]: segfault at f7129d82 ip 00000000f75452d7 sp 00000000ffa2a07c error 4 in libc-2.15.so[f7413000+1a4000]

Revision history for this message
Chris (chrisliaw) wrote :

All I have no idea what was the update last two days now running the gdk-pixbuf-query-loaders come back with segmentation fault.

All my gnome based WM can not be used any more. Vmware also failed to start due to failed to support the png file type.

PLEASE HELP!!

Revision history for this message
Chris (chrisliaw) wrote :

I've going through the /var/log/apt/history.log

I believe this is where the error starts to crop out.

Start-Date: 2014-03-18 08:53:02
Commandline: aptdaemon role='role-commit-packages' sender=':1.113'
Upgrade: indicator-virtual-box:amd64 (1.0.30-1, 1.0.31-1), clamav:amd64 (0.97.8+dfsg-1ubuntu1.12.04.1, 0.97.8+dfsg-1ubuntu1.12.04.2), clamav-base:amd64 (0.97.8+dfsg-1ubuntu1.12.04.1, 0.97.8+dfsg-1ubuntu1.12.04.2), libclamav6:amd64 (0.97.8+dfsg-1ubuntu1.12.04.1, 0.97.8+dfsg-1ubuntu1.12.04.2), gir1.2-gtk-3.0:amd64 (3.4.2-0ubuntu0.6, 3.4.2-0ubuntu0.7), librsvg2-common:amd64 (2.36.1-0ubuntu1, 2.36.1-0ubuntu1.1), librsvg2-common:i386 (2.36.1-0ubuntu1, 2.36.1-0ubuntu1.1), libgtk-3-bin:amd64 (3.4.2-0ubuntu0.6, 3.4.2-0ubuntu0.7), libgtk-3-0:amd64 (3.4.2-0ubuntu0.6, 3.4.2-0ubuntu0.7), tzdata-java:amd64 (2013g-0ubuntu0.12.04, 2014a-0ubuntu0.12.04), libgail-3-0:amd64 (3.4.2-0ubuntu0.6, 3.4.2-0ubuntu0.7), google-chrome-stable:amd64 (33.0.1750.149-1, 33.0.1750.152-1), virtualbox-4.1:amd64 (4.1.30-91550~Ubuntu~precise, 4.1.32-92798~Ubuntu~precise), clamav-freshclam:amd64 (0.97.8+dfsg-1ubuntu1.12.04.1, 0.97.8+dfsg-1ubuntu1.12.04.2), tzdata:amd64 (2013g-0ubuntu0.12.04, 2014a-0ubuntu0.12.04), librsvg2-2:amd64 (2.36.1-0ubuntu1, 2.36.1-0ubuntu1.1), librsvg2-2:i386 (2.36.1-0ubuntu1, 2.36.1-0ubuntu1.1), libgtk-3-common:amd64 (3.4.2-0ubuntu0.6, 3.4.2-0ubuntu0.7)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2014-03-18 08:54:19

There show the error during dpkg.

Revision history for this message
Chris (chrisliaw) wrote :

Or possible this one?

Start-Date: 2014-03-07 09:13:12
Commandline: aptdaemon role='role-commit-packages' sender=':1.422'
Install: linux-image-3.2.0-60-generic:amd64 (3.2.0-60.91), linux-headers-3.2.0-60:amd64 (3.2.0-60.91), linux-headers-3.2.0-60-generic:amd64 (3.2.0-60.91)
Upgrade: libmagickcore4:amd64 (6.6.9.7-5ubuntu3.2, 6.6.9.7-5ubuntu3.3), gnome-settings-daemon:amd64 (3.4.2-0ubuntu0.6.4, 3.4.2-0ubuntu0.6.5), icedtea-netx:amd64 (1.2.3-0ubuntu0.12.04.3, 1.2.3-0ubuntu0.12.04.4), libmagickwand4:amd64 (6.6.9.7-5ubuntu3.2, 6.6.9.7-5ubuntu3.3), linux-generic:amd64 (3.2.0.59.70, 3.2.0.60.71), libmagickcore4-extra:amd64 (6.6.9.7-5ubuntu3.2, 6.6.9.7-5ubuntu3.3), libmagick++4:amd64 (6.6.9.7-5ubuntu3.2, 6.6.9.7-5ubuntu3.3), icedtea-netx-common:amd64 (1.2.3-0ubuntu0.12.04.3, 1.2.3-0ubuntu0.12.04.4), imagemagick-common:amd64 (6.6.9.7-5ubuntu3.2, 6.6.9.7-5ubuntu3.3), linux-headers-generic:amd64 (3.2.0.59.70, 3.2.0.60.71), linux-image-generic:amd64 (3.2.0.59.70, 3.2.0.60.71), icedtea-7-plugin:amd64 (1.2.3-0ubuntu0.12.04.3, 1.2.3-0ubuntu0.12.04.4), imagemagick:amd64 (6.6.9.7-5ubuntu3.2, 6.6.9.7-5ubuntu3.3), linux-libc-dev:amd64 (3.2.0-59.90, 3.2.0-60.91), linux-libc-dev:i386 (3.2.0-59.90, 3.2.0-60.91), perlmagick:amd64 (6.6.9.7-5ubuntu3.2, 6.6.9.7-5ubuntu3.3)
End-Date: 2014-03-07 09:16:05

HELP!

Revision history for this message
Hongbo Zhu (hongbo-zhu-cn) wrote :

My system is ubuntu 12.04 on Linux 3.8.0-37-generic. I got some crash report after a system update two days ago (seemly from librsvg2). After I reboot the PC, I notice some of the icons are missing. In addition, I cannot open .png files using eog. After some googling I tried to re-install librsvg-related packages. But I constantly got Segmentation fault

Unpacking librsvg2-common (from .../librsvg2-common_2.36.1-0ubuntu1.1_amd64.deb) ...
Processing triggers for libgdk-pixbuf2.0-0 ...
Segmentation fault (core dumped)
Setting up librsvg2-common (2.36.1-0ubuntu1.1) ...
Processing triggers for libgdk-pixbuf2.0-0 ...
Segmentation fault (core dumped)

I also tried to force reinstall libgdk-pixbuf2.0-0 but got segmentation fault, too.

Do you want to continue [Y/n]?
(Reading database ... 1106000 files and directories currently installed.)
Preparing to replace libgdk-pixbuf2.0-0 2.26.1-1 (using .../libgdk-pixbuf2.0-0_2.26.1-1_amd64.deb) ...
Unpacking replacement libgdk-pixbuf2.0-0 ...
Preparing to replace libgdk-pixbuf2.0-0:i386 2.26.1-1 (using .../libgdk-pixbuf2.0-0_2.26.1-1_i386.deb) ...
Unpacking replacement libgdk-pixbuf2.0-0:i386 ...
Setting up libgdk-pixbuf2.0-0 (2.26.1-1) ...
Segmentation fault (core dumped)
Setting up libgdk-pixbuf2.0-0:i386 (2.26.1-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

I downloaded the .deb package and tried installing it but same segfault msg.

running gdk-pixbuf-query-loaders brings up segfaults as well (but not gdk-pixbuf-pixdata or gdk-pixbuf-csource):

>gdk-pixbuf-query-loaders --update-cache
Segmentation fault (core dumped)

information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
Franz Koessler (fkoessler) wrote :

My system is ubuntu 12.04.4 GNU/Linux 3.5.0-47-generic i686 .
Errors started after a system update...

Here's what happens when I try to install libgdk-pixbuf2.0-0:

sudo apt-get install --reinstall libgdk-pixbuf2.0-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/194 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 1093567 files and directories currently installed.)
Preparing to replace libgdk-pixbuf2.0-0 2.26.1-1 (using .../libgdk-pixbuf2.0-0_2.26.1-1_i386.deb) ...
Unpacking replacement libgdk-pixbuf2.0-0 ...
Setting up libgdk-pixbuf2.0-0 (2.26.1-1) ...
Segmentation fault
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Revision history for this message
Valentin Clavreul (valentin-w) wrote :

I am affected too, but didn't run a system upgrade (current : 12.04)

@chrisliaw : my gnome totally broke too, but you can partially restore some functionalities by switching to another theme than defaut (I am now mainly with Radiance). But PNG are still missing, and some apps can't even run (like meld).

Revision history for this message
Francisco Augusto (micorreoen) wrote :

Ubuntu 12.04.4 x86_64, same problem after last upgrade.

Downgrade of librsvg2 to 2.36.1-0ubuntu1 didn't work

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Is someone able to get a backtrace of the segfault?

Revision history for this message
Francisco Augusto (micorreoen) wrote :

(gdb) run
Starting program: /usr/bin/gdk-pixbuf-query-loaders
[Depuración de hilo usando libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7385616 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff7385616 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff7914189 in g_str_equal () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff79138af in g_hash_table_lookup () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff793198f in g_quark_from_static_string () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007ffff5b428bf in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5 0x00007ffff7de9306 in ?? () from /lib64/ld-linux-x86-64.so.2
#6 0x00007ffff7de93df in ?? () from /lib64/ld-linux-x86-64.so.2
#7 0x00007ffff7dedada in ?? () from /lib64/ld-linux-x86-64.so.2
#8 0x00007ffff7de9176 in ?? () from /lib64/ld-linux-x86-64.so.2
#9 0x00007ffff7ded31a in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff70faf26 in ?? () from /lib/x86_64-linux-gnu/libdl.so.2
#11 0x00007ffff7de9176 in ?? () from /lib64/ld-linux-x86-64.so.2
#12 0x00007ffff70fb52f in ?? () from /lib/x86_64-linux-gnu/libdl.so.2
#13 0x00007ffff70fafc1 in dlopen () from /lib/x86_64-linux-gnu/libdl.so.2
#14 0x00007ffff7bd76fc in g_module_open () from /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
#15 0x00000000004010a0 in ?? ()
#16 0x0000000000400e7a in ?? ()
#17 0x00007ffff731f76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#18 0x0000000000400f39 in ?? ()
#19 0x00007fffffffe378 in ?? ()
#20 0x000000000000001c in ?? ()
#21 0x0000000000000001 in ?? ()
#22 0x00007fffffffe628 in ?? ()
#23 0x0000000000000000 in ?? ()

Revision history for this message
Sarah Bennert (sarahbx) wrote :

Unable to get backtrace from apt-get process.

Backtrace of gdk-pixbuf-query-loaders:

$ gdb /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders
(gdb) run
Starting program: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7385616 in ?? () from /lib/x86_64-linux-gnu/libc.so.6

(gdb) backtrace
#0 0x00007ffff7385616 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff7914189 in g_str_equal () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff79138af in g_hash_table_lookup () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff793198f in g_quark_from_static_string () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007ffff64148bf in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5 0x00007ffff7de9306 in ?? () from /lib64/ld-linux-x86-64.so.2
#6 0x00007ffff7de93df in ?? () from /lib64/ld-linux-x86-64.so.2
#7 0x00007ffff7dedada in ?? () from /lib64/ld-linux-x86-64.so.2
#8 0x00007ffff7de9176 in ?? () from /lib64/ld-linux-x86-64.so.2
#9 0x00007ffff7ded31a in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff70faf26 in ?? () from /lib/x86_64-linux-gnu/libdl.so.2
#11 0x00007ffff7de9176 in ?? () from /lib64/ld-linux-x86-64.so.2
#12 0x00007ffff70fb52f in ?? () from /lib/x86_64-linux-gnu/libdl.so.2
#13 0x00007ffff70fafc1 in dlopen () from /lib/x86_64-linux-gnu/libdl.so.2
#14 0x00007ffff7bd76fc in g_module_open () from /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
#15 0x00000000004010a0 in ?? ()
#16 0x0000000000400e7a in ?? ()
#17 0x00007ffff731f76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#18 0x0000000000400f39 in ?? ()
#19 0x00007fffffffe618 in ?? ()
#20 0x000000000000001c in ?? ()
#21 0x0000000000000001 in ?? ()
#22 0x00007fffffffe832 in ?? ()
#23 0x0000000000000000 in ?? ()
(gdb)

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Could you please run the following command, and paste the results:

$ dpkg -l | grep libglib

Revision history for this message
Valentin Clavreul (valentin-w) wrote :

Yeah I have recovered my laptop ! (well an expert of my company did so)

I don't know how this is related but here are his steps :
* removed a ppa that I previously added (/etc/apt/sources.list.d/webupd8team-gvfs-libmtp-precise.list)
* reinstalled a few corresponding packages (gvfs, libglib2.0-0)
* reconfigure libgdk-pixbuf2.0-0

It seems libglib2.0-0 was causing the problem. I don't know if this will be okay for most people, but it should help at least debug :-)

Revision history for this message
Hongbo Zhu (hongbo-zhu-cn) wrote :

>dpkg -l | grep libglib
ii libglib-perl 2:1.241-1 interface to the GLib and GObject libraries
ii libglib2.0-0 2.32.4-0ubuntu1 GLib library of C routines
ii libglib2.0-0:i386 2.32.4-0ubuntu1 GLib library of C routines
ii libglib2.0-0-dbg 2.32.4-0ubuntu1 Debugging symbols for the GLib libraries
ii libglib2.0-0-refdbg 2.32.4-0ubuntu1 GLib library of C routines - refdbg library
ii libglib2.0-bin 2.32.4-0ubuntu1 Programs for the GLib library
ii libglib2.0-cil 2.12.10-2ubuntu4 CLI binding for the GLib utility library 2.12
ii libglib2.0-cil-dev 2.12.10-2ubuntu4 CLI binding for the GLib utility library 2.12
ii libglib2.0-data 2.32.4-0ubuntu1 Common files for GLib library
ii libglib2.0-dev 2.32.4-0ubuntu1 Development files for the GLib library
ii libglib2.0-doc 2.32.4-0ubuntu1 Documentation files for the GLib library
ii libglibmm-2.4-1c2a 2.32.0-0ubuntu1 C++ wrapper for the GLib toolkit (shared libraries)
ii libglibmm-2.4-dbg 2.32.0-0ubuntu1 C++ wrapper for the GLib toolkit (debug symbols)

Revision history for this message
Richard Potter (rpotter) wrote :

My system is ubuntu 12.04 on Linux 3.8.0-37-generic. As said in #16, I removed that ppa and all is well.

# ppa-purge ppa:webupd8team/gvfs-libmtp

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

@Hongbo Zhu:

You are using a version of glib2.0 that is incompatible with the version of gdk-pixbuf Ubuntu 12.04. You probably installed it from a PPA.

You need to revert the glib2.0 packages to the versions that come with Ubuntu 12.04 to solve your issue.

Revision history for this message
Francisco Augusto (micorreoen) wrote :

Remove the ppa and downgrade the packages fixed the problem for me as well.

gvfs + libmtp ppa can be replaced with this other one: https://launchpad.net/~langdalepl/+archive/gvfs-mtp

Thanks a lot

Revision history for this message
Valentin Clavreul (valentin-w) wrote :

@mdeslaur : my installation looks fixed, but i now have the same versions than Hungbo Zhu (while previously I had 2.35.4-0ubuntu5~webupd8~p), do you think it will be enough ?

FYI :

$ dpkg -l | grep libglib
ii libglib-perl 2:1.241-1 interface to the GLib and GObject libraries
ii libglib2.0-0 2.32.4-0ubuntu1 GLib library of C routines
ii libglib2.0-0:i386 2.32.4-0ubuntu1 GLib library of C routines
ii libglib2.0-bin 2.32.4-0ubuntu1 Programs for the GLib library
ii libglib2.0-cil 2.12.10-2ubuntu4 CLI binding for the GLib utility library 2.12
ii libglib2.0-data 2.32.4-0ubuntu1 Common files for GLib library
ii libglib2.0-dev 2.32.4-0ubuntu1 Development files for the GLib library
ii libglibmm-2.4-1c2a 2.32.0-0ubuntu1 C++ wrapper for the GLib toolkit (shared libraries)

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

@Hongbo Zhu:

Sorry, the version you are using is correct, I misread it.
Are you experiencing the issue with that version, or have you downgraded it since the problem occurred?

@Valentin Clavreul:

Yes, 2.32.4-0ubuntu1 is the latest official version for 12.04. You should be fine.

Revision history for this message
Valentin Clavreul (valentin-w) wrote :

Thanks Marc !

Oh, one last (obvious) step was rebooting.

Revision history for this message
Hongbo Zhu (hongbo-zhu-cn) wrote :

no, I could not downgrade it manually. I also do not have the ppa which seemed to contaminate other users. I am purging my other ppa\s one by one to locate problem causer.

Revision history for this message
Hongbo Zhu (hongbo-zhu-cn) wrote :

@Marc Deslauriers:
I still have the issue with the version of libglib I presented. I do not have the ppa causing problem for other users. but I purged a java ppa from webupd8team (and it did not help ofcoz).

Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Chris (chrisliaw) wrote :

Downgrading the libglib2.0-0 removing whole bunch of gnome applications?

After removing almost all the essential part of ubuntu-desktop and reinstall all related libraries, it took me two hours to do it, finally it works!

After installation, still need to run gdk-pixbuf-query-loaders to update the cache back and viola!

Thanks for all the help! It is indeed the libglib2 issue

Changed in gdk-pixbuf (Ubuntu):
importance: Undecided → High
Revision history for this message
Sarah Bennert (sarahbx) wrote :

Don't have the libglib package list from before the ppa-purge, output went beyond my terminal buffer before I copied this down. But pretty much all the libglib files were from the webupd8 ppa.

These are the steps I took on the machine I found this on originally, which worked. Thank you! Still have to attempt this on another machine. Probably won't be until Sunday though.

$ sudo ppa-purge ppa:webupd8team/gvfs-libmtp
... lots of removed and downgraded packages ...

$ dpkg -l | grep libglib
ii libglib-perl 2:1.241-1 interface to the GLib and GObject libraries
ii libglib2.0-0 2.32.1-0ubuntu2 GLib library of C routines
rc libglib2.0-0:i386 2.35.4-0ubuntu5~webupd8~precise1 GLib library of C routines
ii libglib2.0-bin 2.32.1-0ubuntu2 Programs for the GLib library
ii libglib2.0-cil 2.12.10-2ubuntu4 CLI binding for the GLib utility library 2.12
ii libglib2.0-data 2.32.1-0ubuntu2 Common files for GLib library
ii libglib2.0-dev 2.32.1-0ubuntu2 Development files for the GLib library
ii libglibmm-2.4-1c2a 2.32.0-0ubuntu1 C++ wrapper for the GLib toolkit (shared libraries)

# Didn't quite get it all...
$ sudo apt-get purge libglib2.0-0:i386

$ dpkg -l | grep libglib
ii libglib-perl 2:1.241-1 interface to the GLib and GObject libraries
ii libglib2.0-0 2.32.1-0ubuntu2 GLib library of C routines
ii libglib2.0-bin 2.32.1-0ubuntu2 Programs for the GLib library
ii libglib2.0-cil 2.12.10-2ubuntu4 CLI binding for the GLib utility library 2.12
ii libglib2.0-data 2.32.1-0ubuntu2 Common files for GLib library
ii libglib2.0-dev 2.32.1-0ubuntu2 Development files for the GLib library
ii libglibmm-2.4-1c2a 2.32.0-0ubuntu1 C++ wrapper for the GLib toolkit (shared libraries)

Reboot, still black screen, no icons...

$ sudo /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache

Reboot, success!

Revision history for this message
Sarah Bennert (sarahbx) wrote :

Since I couldn't get the list earlier, here's at least the /var/log/apt/term.log output for the downgrades:

dpkg: warning: downgrading gvfs-bin from 1.15.2-0ubuntu2~webupd8~precise1 to 1.12.1-0ubuntu1.
dpkg: warning: downgrading libglib2.0-dev from 2.35.4-0ubuntu5~webupd8~precise1 to 2.32.1-0ubuntu2.
dpkg: warning: downgrading gvfs-fuse from 1.15.2-0ubuntu2~webupd8~precise1 to 1.12.1-0ubuntu1.
dpkg: warning: downgrading libglib2.0-bin from 2.35.4-0ubuntu5~webupd8~precise1 to 2.32.1-0ubuntu2.
dpkg: warning: downgrading gvfs-libs from 1.15.2-0ubuntu2~webupd8~precise1 to 1.12.1-0ubuntu1.
dpkg: warning: downgrading glib-networking-common from 2.34.0-0ubuntu1~webupd8~precise to 2.32.1-1.
dpkg: warning: downgrading libglib2.0-0 from 2.35.4-0ubuntu5~webupd8~precise1 to 2.32.1-0ubuntu2.
dpkg: warning: downgrading glib-networking from 2.34.0-0ubuntu1~webupd8~precise to 2.32.1-1.
dpkg: warning: downgrading glib-networking-services from 2.34.0-0ubuntu1~webupd8~precise to 2.32.1-1.
dpkg: warning: downgrading gvfs from 1.15.2-0ubuntu2~webupd8~precise1 to 1.12.1-0ubuntu1.
dpkg: warning: downgrading gvfs-daemons from 1.15.2-0ubuntu2~webupd8~precise1 to 1.12.1-0ubuntu1.
dpkg: warning: downgrading gvfs-backends from 1.15.2-0ubuntu2~webupd8~precise1 to 1.12.1-0ubuntu1.
dpkg: warning: downgrading gvfs-common from 1.15.2-0ubuntu2~webupd8~precise1 to 1.12.1-0ubuntu1.
dpkg: warning: downgrading libpcre3-dev from 1:8.31-1ubuntu1~webupd8~precise to 8.12-4.
dpkg: warning: downgrading libpcrecpp0 from 1:8.31-1ubuntu1~webupd8~precise to 8.12-4.
dpkg: warning: downgrading libpcre3 from 1:8.31-1ubuntu1~webupd8~precise to 8.12-4.
dpkg: warning: downgrading libglib2.0-data from 2.35.4-0ubuntu5~webupd8~precise1 to 2.32.1-0ubuntu2.
dpkg: warning: downgrading libmtp-common from 1.1.5-42-g6e96316-0~precise~0 to 1.1.3-1.
dpkg: warning: downgrading libmtp-runtime from 1.1.5-42-g6e96316-0~precise~0 to 1.1.3-1.
dpkg: warning: downgrading libmtp-dev from 1.1.5-42-g6e96316-0~precise~0 to 1.1.3-1.
dpkg: warning: downgrading libmtp9 from 1.1.5-42-g6e96316-0~precise~0 to 1.1.3-1.
dpkg: warning: downgrading mtp-tools from 1.1.5-42-g6e96316-0~precise~0 to 1.1.3-1.

Iain Lane (laney)
description: updated
Changed in gdk-pixbuf (Ubuntu):
status: Confirmed → Fix Released
Iain Lane (laney)
Changed in gdk-pixbuf (Ubuntu Precise):
status: New → In Progress
Changed in gdk-pixbuf:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Franz Koessler (fkoessler) wrote :

So is this fixed already?
I haven't been able to resolve the problem on my laptop, here is what I tried:

sudo ppa-purge ppa:webupd8team/gvfs-libmtp
Updating packages lists
PPA to be removed: webupd8team gvfs-libmtp
Warning: Could not find package list for PPA: webupd8team gvfs-libmtp

dpkg -l | grep libglib
ii libglib-perl 2:1.241-1 interface to the GLib and GObject libraries
ii libglib2.0-0 2.35.4-0ubuntu5~webupd8~precise1 GLib library of C routines
ii libglib2.0-bin 2.35.4-0ubuntu5~webupd8~precise1 Programs for the GLib library
ii libglib2.0-cil 2.12.10-2ubuntu4 CLI binding for the GLib utility library 2.12
ii libglib2.0-data 2.35.4-0ubuntu5~webupd8~precise1 Common files for GLib library
ii libglib2.0-dev 2.35.4-0ubuntu5~webupd8~precise1 Development files for the GLib library
ii libglibmm-2.4-1c2a 2.32.0-0ubuntu1 C++ wrapper for the GLib toolkit (shared libraries)

sudo apt-get install --reinstall libglib2.0-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of libglib2.0-0 is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgradedsudo apt-get install --reinstall libgdk-pixbuf2.0-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/194 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 1093544 files and directories currently installed.)
Preparing to replace libgdk-pixbuf2.0-0 2.26.1-1 (using .../libgdk-pixbuf2.0-0_2.26.1-1_i386.deb) ...
Unpacking replacement libgdk-pixbuf2.0-0 ...
Setting up libgdk-pixbuf2.0-0 (2.26.1-1) ...
Segmentation fault
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place.

Any idea what I should do?

Revision history for this message
Hongbo Zhu (hongbo-zhu-cn) wrote :

@Franz Koessler
I myself have not solved the problem. But in your case, have you checked the libglib version after force reinstallation?

Revision history for this message
Franz Koessler (fkoessler) wrote :

I finally managed to solve the issue.

As everybody pointed out, I first needed to remove the webupd8team ppas.

After that, I had to downgrade the ligblib library and that's what was causing me a lot of trouble. The system didn't let me remove that library because of all the dependencies. I finally achieve that with the command:

sudo dpkg -P --force-all --force-remove-reinstreq libglib2.0-0

Once that done, still had to downgrade two related libraries glib-networking-common and gvfs-commonw with:

sudo apt-get install glib-networking-common=2.32.1-1ubuntu2
sudo apt-get install gvfs-common=1.12.1-0ubuntu1.2ppa8~precise3

Revision history for this message
Shu Shen (shu-shen) wrote :

This bug is unbearable! I had to copy over a copy of loaders.cache to work around the problem. Otherwise may GTK-based programs simply fail. I'm probably better off than most since I don't use a graphical desktop and only run some of the GTK-based programs on remote X server.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello asala, or anyone else affected,

Accepted gdk-pixbuf into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/gdk-pixbuf/2.26.1-1ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in gdk-pixbuf (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Hongbo Zhu (hongbo-zhu-cn) wrote :
Download full text (20.9 KiB)

I add the -proposed and upgrade the library using command:

sudo apt-get install libgdk-pixbuf2.0-common/precise-proposed

got a lot of libraries removed (see below) and the system (ubuntu 12.04) is still not recovered from the shock yet. Now I have a lot programs missing. Though the png pictures and icons are back. But I don't think it is worth it.

Upgrade: libgdk-pixbuf2.0-common:amd64 (2.26.1-1, 2.26.1-1ubuntu1.1)
Remove: libreoffice-help-en-gb:amd64 (4.1.1-0ubuntu1~precise1), gir1.2-notify-0.7:amd64 (0.7.5-1), thunderbird-locale-zh-cn:amd64 (24.4.0+build1-0ubuntu0.12.04.1), xfce4-settings:amd64 (4.11.1-0ubuntu1~ppa0.12.04.1), geany-plugin-codenav:amd64 (1.23+dfsg-2~hyper1+precise), xscreensaver-gl:amd64 (5.15-2ubuntu1), libgtk2.0-cil-dev:amd64 (2.12.10-2ubuntu4), python-gnome2:amd64 (2.28.1+dfsg-1), libpurple0:amd64 (2.10.3-0ubuntu1.4), xdg-user-dirs-gtk:amd64 (0.9-0ubuntu1), telepathy-indicator:amd64 (0.2.1-0ubuntu1), gnome-power-manager:amd64 (3.4.0-0ubuntu1.1), libreoffice-gnome:amd64 (4.1.1-0ubuntu1~precise1), libcogl9:amd64 (1.10.0-0ubuntu2), libido3-0.1-0:amd64 (0.3.4-0ubuntu1), libreoffice-draw:amd64 (4.1.1-0ubuntu1~precise1), gir1.2-dbusmenu-gtk-0.4:amd64 (0.6.2-0ubuntu0.2), tomboy:amd64 (1.10.1-0ubuntu2), python-virtkey:amd64 (0.60.0-0ubuntu5), ekiga:amd64 (3.3.2-0ubuntu3), libreoffice-help-en-us:amd64 (4.1.1-0ubuntu1~precise1), python-notify:amd64 (0.1.1-3), libevolution:amd64 (3.2.3-0ubuntu6), gtk3-engines-oxygen:amd64 (1.0.2-0ubuntu2), libgnome-bluetooth8:amd64 (3.2.2-0ubuntu5.1), libmono-addins-gui0.2-cil:amd64 (0.6.2-2), pidgin-libnotify:amd64 (0.14-4ubuntu10), gcalctool:amd64 (6.4.1.1-0ubuntu3), libido-0.1-0:amd64 (0.3.4-0ubuntu1), libyelp0:amd64 (3.4.1-0ubuntu1), gthumb:amd64 (2.14.3-0ubuntu1), libgcj12-awt:amd64 (4.6.3-1ubuntu2), shimmer-themes:amd64 (1.3.0-0ubuntu1), gir1.2-rb-3.0:amd64 (2.97-1ubuntu1~precise1), libgtksourceview-3.0-0:amd64 (3.4.2-0ubuntu1), libgail18:amd64 (2.24.10-0ubuntu6.1), gir1.2-gnomebluetooth-1.0:amd64 (3.2.2-0ubuntu5.1), gnome-shell:amd64 (3.4.1-0ubuntu2), libunique-1.0-0:amd64 (1.1.6-4), gnome-media:amd64 (3.4.0-0ubuntu3.1), libcogl-pango0:amd64 (1.10.0-0ubuntu2), metacity:amd64 (2.34.1-1ubuntu11), gnome-search-tool:amd64 (3.4.0-1), libcaribou0:amd64 (0.4.2-1ubuntu1), nautilus:amd64 (3.4.2-0ubuntu9), aisleriot:amd64 (3.4.1-1~precise1), gtali:amd64 (3.4.1-0ubuntu2.2), geany-plugin-lua:amd64 (1.23+dfsg-2~hyper1+precise), update-notifier:amd64 (0.119ubuntu8.6), libcanberra-gtk3-0:amd64 (0.28-3ubuntu3), baobab:amd64 (3.4.1-0ubuntu1), ubuntu-docs:amd64 (12.04.6), thunderbird-locale-en-gb:amd64 (24.4.0+build1-0ubuntu0.12.04.1), libgnome-desktop-3-2:amd64 (3.4.2-0ubuntu0.2), gnome-session-bin:amd64 (3.4.2.1-0ubuntu1~precise1), appmenu-gtk:amd64 (0.3.92-0ubuntu1.1), gstreamer0.10-plugins-bad:amd64 (0.10.22.3-2ubuntu2.2), glchess:amd64 (3.4.1-0ubuntu2.2), libdmapsharing-3.0-2:amd64 (2.9.14-1), tumbler:amd64 (0.1.24-0ubuntu1), python-matplotlib:amd64 (1.1.1~rc1+git20120423-0ubuntu1), nspluginwrapper:amd64 (1.4.4-0ubuntu4), gir1.2-peas-1.0:amd64 (1.2.0-1ubuntu1), acroread-bin:i386 (9.5.5-1precise1), libreoffice-impress:amd64 (4.1.1-0ubuntu1~precise1), gtk2-engines:amd64 (2.20.2-1ubuntu1), libkeybinder0:...

Revision history for this message
Iain Lane (laney) wrote :

I just verified using my steps in the description.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdk-pixbuf - 2.26.1-1ubuntu1.1

---------------
gdk-pixbuf (2.26.1-1ubuntu1.1) precise; urgency=medium

  * Link with -Wl,--no-as-needed so that we get linked against libgobject,
    avoiding crashes when modules load and unload newer versions of libgobject
    which have a global constructor. (LP: #1174253)
 -- Iain Lane <email address hidden> Fri, 21 Mar 2014 18:06:47 +0000

Changed in gdk-pixbuf (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of the Stable Release Update for gdk-pixbuf has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.