Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175056 - x11-themes/gtk-engines - glibc detects double free in libsmooth.so
Summary: x11-themes/gtk-engines - glibc detects double free in libsmooth.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 10:04 UTC by Alexander Jenisch
Modified: 2008-05-05 13:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Jenisch 2007-04-18 10:04:07 UTC
a few days ago i've been updating a few packages and now i'm not able to use my (perfectly working) application buttons/menu entries any more. xchat, eclipse, claws-mail, firefox all won't open up a window, if i press on a button. right click on a pdf in konqueror and choosing acroread won't start acroread, xchat won't autostart any more, etc. every kde native (qt) app still works. amarok, licq, ...
i can still start all the applications via a console and they will run without problem. i've upgraded these packages in the possible time frame, when the problems started:

     Tue Apr 10 14:25:27 2007 >>> sys-fs/device-mapper-1.02.18
     Tue Apr 10 14:25:37 2007 >>> app-portage/portage-utils-0.1.25-r1
     Tue Apr 10 14:25:51 2007 >>> net-libs/enet-1.0
     Tue Apr 10 14:27:43 2007 >>> media-libs/freetype-2.3.3
     Tue Apr 10 14:34:14 2007 >>> sys-libs/ncurses-5.6-r1
     Tue Apr 10 14:36:00 2007 >>> sys-apps/man-pages-2.44
     Tue Apr 10 14:36:15 2007 >>> sys-apps/baselayout-1.12.10-r1
     Tue Apr 10 14:39:53 2007 >>> sys-kernel/gentoo-sources-2.6.20-r5
     Tue Apr 10 14:40:55 2007 >>> sys-apps/file-4.20-r1
     Tue Apr 10 14:41:12 2007 >>> app-portage/layman-1.0.99
     Tue Apr 10 14:41:19 2007 >>> app-portage/genlop-0.30.7
     Tue Apr 10 14:48:49 2007 >>> games-puzzle/enigma-1.00-r2
     Tue Apr 10 14:50:28 2007 >>> dev-java/swt-3.2.2
     Tue Apr 10 15:48:16 2007 >>> mail-mta/postfix-2.4.0
     Wed Apr 11 02:15:55 2007 >>> x11-drivers/nvidia-drivers-1.0.9755-r1
     Wed Apr 11 19:35:48 2007 >>> sys-devel/gcc-config-1.3.16
     Wed Apr 11 19:36:59 2007 >>> dev-libs/libusb-0.1.12-r1
     Wed Apr 11 19:37:19 2007 >>> x11-misc/numlockx-1.1
     Wed Apr 11 19:37:29 2007 >>> app-portage/gentoolkit-0.2.4_pre4
     Wed Apr 11 19:47:13 2007 >>> net-nds/openldap-2.3.35
     Wed Apr 11 19:47:29 2007 >>> sys-process/vixie-cron-4.1-r10
     Wed Apr 11 19:50:01 2007 >>> net-print/cups-1.2.10
     Wed Apr 11 20:01:59 2007 >>> net-fs/samba-3.0.24-r1
     Wed Apr 11 20:08:43 2007 >>> net-wireless/kdebluetooth-1.0_beta2-r2
     Thu Apr 12 02:17:08 2007 >>> net-misc/dhcpcd-3.0.16-r1
     Thu Apr 12 02:18:22 2007 >>> sys-fs/cryptsetup-luks-1.0.4-r2
     Thu Apr 12 02:24:13 2007 >>> sys-apps/lm_sensors-2.10.3
     Thu Apr 12 02:28:36 2007 >>> kde-base/libkcal-3.5.6-r1
     Thu Apr 12 02:30:00 2007 >>> kde-base/networkstatus-3.5.6-r1
     Thu Apr 12 02:33:15 2007 >>> net-misc/tightvnc-1.3.8-r1
     Thu Apr 12 02:34:24 2007 >>> www-client/opera-9.20
     Thu Apr 12 02:36:25 2007 >>> kde-base/kdepim-kioslaves-3.5.6-r1
     Thu Apr 12 02:45:16 2007 >>> kde-base/kmail-3.5.6-r2
     Thu Apr 12 02:47:49 2007 >>> kde-base/libkdepim-3.5.6-r1

root@enti $ emerge --info
Portage 2.1.2.3 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 13 Apr 2007 10:00:08 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs distlocks fixpackages metadata-transfer prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://gentoo.imj.fr/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/xeffects-experimental /usr/local/layman/xeffects /usr/local/layman/custom-kernels /usr/local/portage /usr/local/layman/xeffects /usr/local/layman/xeffects-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acpi airo alsa amd64 apache2 asf audiofile automount avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib cairo cdda cdparanoia cli cpudetection cracklib crypt ctype cups curl cvs d dbus dga dir divx dlloader dri dts dvd dvdread encode fam ffmpeg foomaticdb fortran freetype ftp fuse gd gdbm gif gimpprint glitz glx gphoto2 gpm gtk gtk2 hal iconv icq imagemagick imap imlib ipv6 isdnlog ithreads java javascript jpeg jpeg2k kde kdeenablefinal lame ldap libg++ lm_sensors logitech-mouse lzo mad maildir midi mikmod mime modplug mp3 mp4 mpeg mplayer musicbrainz mysql ncurses nls nocd nptl nptlonly nsplugin nvidia offensive ogg oggvorbis openal opengl openntpd oss pam pango pcre pdf pdflib perl php png posix ppds pppd python qt qt3 quicktime rdesktop readline reflection rtc samba sasl scenarios sdl server session slp sndfile sockets speex spell spl sql ssl stream subversion suid svg swat syslog tcl tcltk tcpd tetex tga theora threads tiff timidity tk truetype truetype-fonts type1-fonts unicode usb videos vorbis webdav wma x264 xcomposite xft xine xml xml2 xorg xosd xpm xv xvid xvmc zeroconf zlib" ALSA_CARDS="emu10k1 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

nt@enti $ kde-config --version
Qt: 3.3.8
KDE: 3.5.6
kde-config: 1.0
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2007-04-19 10:01:00 UTC
Did you try to find some help in forums.g.o or the mailing list? Create a new account or move your ~/.kde test-wise to another place to check if you still have the problem. Assuming local problem.
Comment 2 Alexander Jenisch 2007-04-19 10:38:01 UTC
i'm not so sure about that. someone on kde-forum.org told me that it has something to do with kdeinit_wrapper and i looked / tested around a bit. i can start kde apps via kdeinit_wrapper normally. i won't get an error, if i try to start like firefox with it, but firefox will ONLY start up if there's already an instance of it running. if not, it will just die without an error message. i CAN start apps with kwrapper though.

i tried to login as a new user and found, that kdestarupconfig is missing from my system! i've googled around a bit and found that more ppl seem to be missing that application after an kde update but i found no solution so far.
Comment 3 Alexander Jenisch 2007-04-19 10:45:47 UTC
sorry, it's kstartupconfig (not kdestartupconfig) and it isn't missing, just forgot to create a /home for my new user.

still, creating a new user+kde wouldn't help with the original problem.
Comment 4 Alexander Jenisch 2007-04-19 10:52:35 UTC
.xsession-errors:

when trying to start eclipse via menu button:

*** glibc detected *** /usr/lib/jvm/sun-jdk-1.6/bin/java: double free or corruption (fasttop): 0x00002aaaf8d32630 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b001c8c8a4d]
/lib/libc.so.6(__libc_free+0x76)[0x2b001c8ca076]
/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2aaafc2fa3d2]
/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2aaafc3101fa]
/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2aaafc30faa2]
/usr/lib/libgtk-x11-2.0.so.0[0x2aaaf9b1dc01]
/usr/lib/libgtk-x11-2.0.so.0(gtk_rc_get_style+0x1f6)[0x2aaaf9b1e126]
/usr/lib/libgtk-x11-2.0.so.0[0x2aaaf9bdf038]
/usr/lib/libgtk-x11-2.0.so.0(gtk_widget_realize+0x7d)[0x2aaaf9be012d]
/home/nt/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/149/1/.cp/libswt-pi-gtk-3235.so(Java_org_eclipse_swt_internal_gtk_OS__1gtk_1widget_1realize+0xc)[0x2aaaf9866632]
[0x2aaaab4a6618]

when trying claws-mail:
*** glibc detected *** claws-mail: double free or corruption (fasttop): 0x0000000000816f50 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b3f1400ca4d]
/lib/libc.so.6(__libc_free+0x76)[0x2b3f1400e076]
/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2b3f14edc3d2]
/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2b3f14ef21fa]
/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2b3f14ef1aa2]
/usr/lib/libgtk-x11-2.0.so.0[0x2b3f11c70c01]
/usr/lib/libgtk-x11-2.0.so.0(gtk_rc_get_style+0x1f6)[0x2b3f11c71126]
/usr/lib/libgtk-x11-2.0.so.0[0x2b3f11d32038]
/usr/lib/libgtk-x11-2.0.so.0[0x2b3f11c8e825]
/usr/lib/libgtk-x11-2.0.so.0[0x2b3f11c8ea7f]
/usr/lib/libgtk-x11-2.0.so.0[0x2b3f11c5277a]
/usr/lib/libgtk-x11-2.0.so.0(gtk_option_menu_set_menu+0xb7)[0x2b3f11c52eb7]
claws-mail(quicksearch_new+0x4db)[0x58529b]
claws-mail(summary_create+0x4c5)[0x52f7b5]
claws-mail(main_window_create+0x8a3)[0x4b9733]
claws-mail(main+0x95f)[0x4b214f]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b3f13fbf374]
claws-mail[0x439c69]

i'll try to rebuild glibc.
Comment 5 Alexander Jenisch 2007-04-24 23:27:10 UTC
i don't know if this is reproducible on any other system than mine, but i found my problem maker: gtk-engines. the lines, which led me there are:

/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2aaafc2fa3d2]
/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2aaafc3101fa]
/usr/lib64/gtk-2.0/2.10.0/engines/libsmooth.so[0x2aaafc30faa2]

i've unmerged gtk-engines and now i can start gtk+ apps again. emerge it, same error.
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2007-04-25 08:09:29 UTC
(In reply to comment #4)
> i'll try to rebuild glibc.

Doesn't help in such a case. Glibc detects double frees in code _using_ it.


Which version of x11-themes/gtk-engines?
Comment 7 Alexander Jenisch 2007-04-25 08:54:02 UTC
gtk-engines-2.8.2-r1

there seems to be another problem as well. even though i haven't installed gtk-engines any more and i can launch eclipse, claws-mail and xchat via buttons or autostart again, firefox-bin still has issues. for example, if i shut down kde with a firefox window open, kde isn't able to properly start it again, after login. still there's an instance of it running, but there are no open windows and i have to kill it before i can start another one. i don't get no double free, .xsession-error gives me:

X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode:  54
  Minor opcode:  0
  Resource id:  0x1400e0c
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode:  159
  Minor opcode:  6
  Resource id:  0x1400e0c

which i usually get TOO with the double free.
Comment 8 Alexander Jenisch 2007-04-25 23:02:17 UTC
ok more interesting facts, that all somehow seem to be connected. i've installed gtk-engines-murrine.

if i start xchat via kde button, xchat is starting up BUT it's using the fallback gtk engine and not the set murrine one. IF i start it via command line, it's using the murrine engine.

also: if i start firefox or acroread i will ALWAYS get:
(firefox-bin:21308): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",

so there seems to be a problem with paths somehow. i can any guess, that this is all connected with my original problem with gtk-engines somehow.
Comment 9 Alexander Jenisch 2007-04-26 10:10:05 UTC
ok, i do understand now, why my binary applications (32 bit) won't be themed and can't find the themes: /emul/linux/x86/usr/lib is missing gtk themes. i guess that's because some engines don't install any 32bit themes and gtk-engines itself is momentarily not installed (because of the reasons mentioned in the posts above).

why doesn't every gtk-engine-* install a 32bit version?
Comment 10 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-04-26 16:22:38 UTC
Ultimately because portage doesn't work that way (yet).  Nothing except gcc and glibc automatically install 32-bit versions; instead, the amd64 herd generates 32-bit versions of certain packages and libraries needed to install binary-only software (such as firefox-bin, openoffice-bin, skype, nvidia-drivers, and so on) and makes these availabe as emul-linux-x86-* packages.  The intention is *not* to be able to run arbitrary 32-bit software, but only supported ones available in portage.

If you want a full 32-bit system, you can run one easily; if you want a partial 32-bit and partial 64-bit system, you're really on your own for that.  You can build your own emul-linux-x86-* packages (see http://www.gentoo.org/proj/en/base/amd64/emul/index.xml ), or you can request that the amd64 herd generate one for you.  They may or may not do it.
Comment 11 Alexander Jenisch 2007-04-26 17:18:09 UTC
ok.

i've finally compiled firefox (64bit) and now i got a themed firefox, if i start it from command line, while it's using the default (fallback) gtk+ theme if i start it from any kde button/icon/button. same goes for other gtk+ apps.
Comment 12 Alexander Jenisch 2007-04-26 21:08:00 UTC
ok, now i'm completely confused. claws-mail can be started via button and still has the right skin. i've not found any other gtk+ application that works that way. all the others use the fallback engines unless i start them from the command line!
Comment 13 Colin Leroy 2008-04-14 18:43:24 UTC
This bug is known and fixed upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=393312

(and probably fixed in Gentoo since the report)
Comment 14 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-05 13:14:14 UTC
closing per comment #13 and per upstream report. Please reopen if it's not fixed for you with gtk-engines-2.12 or 2.14.
Comment 15 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-05 13:14:36 UTC
and fixing component.