public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] gdk-pixbuf-query-loaders usage in tree
@ 2011-10-09  8:48 Fabio Erculiani
  2011-10-18 18:21 ` Pacho Ramos
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Erculiani @ 2011-10-09  8:48 UTC (permalink / raw
  To: gentoo-dev

gdk-pixbuf-query-loaders has a long history of segfaults.
Not to blame anybody here, but still segfaults there can happen quite easily.

A nice example is:
export __GL_NO_DSO_FINALIZER=1
$ gdk-pixbuf-query-loaders
When nvidia.ko is in use.

The __GL_NO_DSO_FINALIZER is a hack that made buggy nvidia-drivers (or
buggy gl threads usage?) work.
The problem with our ebuilds is that everybody did something like this
(in pkg_postinst):

gdk-pixbuf-query-loaders > "${ROOT}usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"

1) exit status is not even considered
2) output redirection truncates the destination file as soon as the
executable is spawned

This is very bad, because in case of segfaults, loaders.cache is
totalled, resulting in gtk+ apps dying miserably.

Please don't do that, never ever. We don't live in a perfect world.

x11-libs/gdk-pixbuf got fixed already.

Others affected:
app-emulation/emul-linux-x86-gtklibs
gnome-base/librsvg
media-libs/libwmf
others?

-- 
Fabio Erculiani
http://lxnay.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-18 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-09  8:48 [gentoo-dev] gdk-pixbuf-query-loaders usage in tree Fabio Erculiani
2011-10-18 18:21 ` Pacho Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox