Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68364 - kdelibs-3.3.1 doesn't compile because /usr/qt/3/bin/uic segfaults
Summary: kdelibs-3.3.1 doesn't compile because /usr/qt/3/bin/uic segfaults
Status: RESOLVED DUPLICATE of bug 84167
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-21 02:08 UTC by Denys Duchier
Modified: 2005-12-05 11:24 UTC (History)
3 users (show)

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 Denys Duchier 2004-10-21 02:08:00 UTC
when emerging kde-3.3.1, compilation fails in kdelibs-3.3.1/kdeui.
this is reproducible and always fails in the same place.  Trying
things by hand reveal that the problem is /usr/qt/3/bin/uic segfaulting.
Note that uic apparently works fine in other cases (it seems to have
been invoked successfully on other occasions that precede the point
of failure).

Reproducible: Always
Steps to Reproduce:
1. emerge qt-3.3.3-r1 (have gone through that step several times)
2. emerge kde-3.3.1
3.

Actual Results:  
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. 
-I. -I.. -I../dcop -I../kio/kssl -I../kdefx -I../interfaces -I../dcop 
-I../libltdl -I../kdefx -I../kdecore -I../kdeui -I../kio -I../kio/kio 
-I../kio/kfile -I.. -I/usr/qt/3/include -I/usr/X11R6/include 
-I/usr/kde/3.3/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor 
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings 
-DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -O2 -pipe -fomit-frame-pointer 
-Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new 
-fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
-DQT_NO_TRANSLATION  -c -o kmainwindowiface_skel.lo kmainwindowiface_skel.cpp 
/usr/qt/3/bin/moc kshortcutdialog_simple.h -o kshortcutdialog_simple.moc 
rm -f kshortcutdialog_simple.cpp 
echo '#include <kdialog.h>' > kshortcutdialog_simple.cpp 
echo '#include <klocale.h>' >> kshortcutdialog_simple.cpp 
/usr/qt/3/bin/uic -nounload -tr tr2i18n -i 
kshortcutdialog_simple.h ./kshortcutdialog_simple.ui > 
kshortcutdialog_simple.cpp.temp ; ret=$?; \ 
/usr/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" 
kshortcutdialog_simple.cpp.temp | /usr/bin/perl -pe "s,tr2i18n( \"\"\, 
\"\" ),QString::null,g" | /usr/bin/perl -pe "s,image([0-9]
[0-9]*)_data,img\$1_kshortcutdialog_simple,g" >> kshortcutdialog_simple.cpp ;\ 
rm -f kshortcutdialog_simple.cpp.temp ;\ 
if test "$ret" = 0; then echo '#include "kshortcutdialog_simple.moc"' >> 
kshortcutdialog_simple.cpp; else rm -f kshortcutdialog_simple.cpp ; exit $ret ; 
fi 
make[3]: *** [kshortcutdialog_simple.cpp] Error 139 
make[3]: Leaving directory 
`/var/tmp/portage/kdelibs-3.3.1/work/kdelibs-3.3.1/kdeui' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/kdelibs-3.3.1/work/kdelibs-3.3.1/kdeui' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.3.1/work/kdelibs-3.3.1' 
make: *** [all] Error 2 
 
!!! ERROR: kde-base/kdelibs-3.3.1 failed. 
!!! Function kde_src_compile, Line 142, Exitcode 2 
!!! died running emake, kde_src_compile:make 
!!! If you need support, post the topmost build error, NOT this status message. 


Portage 2.0.51_rc9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 
2.4.25-gentoo-r5 i686) 
================================================================= 
System uname: 2.4.25-gentoo-r5 i686 Intel(R) Pentium(R) III Mobile CPU      
1200MHz 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.14.90.0.8-r1 
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distlocks sandbox" 
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ 
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ 
http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j1" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/project/ARCH/Projects/portage/configs/=build" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="X aalib alsa apm arts avi berkdb bitmap-fonts bonobo crypt cups dvd encode 
esd f77 foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib jabber java 
jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mozsvg mpeg mysql 
ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype x86 xine 
xml2 xmms xprint xv zlib"
Comment 1 chico76 2004-10-21 14:14:59 UTC
Are you sure of your ACCEPT_KEYWORD="x86", because all the ebuild you mentioned (qt-3.3.3-r1, kde-3.3.1 and kdelibs-3.3.1) are with KEYWORDS="~x86" on my system ??

So normally you wouldn't be able to install one of this package.
Comment 2 Denys Duchier 2004-10-22 02:55:27 UTC
Sorry for the imprecision:
I use /etc/portage/package.keywords to allow me to emerge
new kde versions.  That's basically the only "testing" stuff
that I am interested in.
Comment 3 Denys Duchier 2004-10-25 12:45:55 UTC
I recompiled qt with USE=debug and FEATURES=nostrip.
The same error occurred.  However, when I ran the offending command
under gdb, the 1st time it worked fine, but the 2nd time it segfaulted
with the following backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 24973)]
0x40d78094 in mallopt () from /lib/libc.so.6
(gdb) bt
#0  0x40d78094 in mallopt () from /lib/libc.so.6
#1  0x40d777ce in mallopt () from /lib/libc.so.6
#2  0x40d77178 in calloc () from /lib/libc.so.6
#3  0x40008844 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#4  0x400051cc in ?? () from /lib/ld-linux.so.2
#5  0x00000000 in ?? ()
#6  0x0000000a in ?? ()
#7  0xbfffd500 in ?? ()
#8  0xbfffd48c in ?? ()
#9  0x40bd3d52 in _pthread_cleanup_pop_restore () from /lib/libpthread.so.0
#10 0x40006a31 in ?? () from /lib/ld-linux.so.2
#11 0x08111d10 in ?? ()
#12 0x0000000a in ?? ()
#13 0xbfffd5cc in ?? ()
#14 0x08111c98 in ?? ()
#15 0x00000000 in ?? ()
#16 0x00000002 in ?? ()
#17 0x80000001 in ?? ()
#18 0xbfffd5c4 in ?? ()
#19 0x00000001 in ?? ()
#20 0x00000001 in ?? ()
#21 0xbfffd5cc in ?? ()
#22 0x00000001 in ?? ()
#23 0x00000001 in ?? ()
#24 0x00000000 in ?? ()
#25 0x00000001 in ?? ()
#26 0x00000001 in ?? ()
#27 0x0000000a in ?? ()
#28 0x00000000 in ?? ()
#29 0x08111d10 in ?? ()
#30 0x00000000 in ?? ()
#31 0xbffff2c0 in ?? ()
#32 0x08111c98 in ?? ()
#33 0x00000200 in ?? ()
#34 0x464c457f in ?? ()
#35 0x00010101 in ?? ()
#36 0x00000000 in ?? ()
#37 0x00000000 in ?? ()
#38 0x00030003 in ?? ()
#39 0x00000001 in ?? ()
#40 0x0002f440 in ?? ()
#41 0x00000034 in ?? ()
#42 0x0099fa2c in ?? ()
#43 0x00000000 in ?? ()
#44 0x00200034 in ?? ()
#45 0x00280006 in ?? ()
#46 0x001f0022 in ?? ()
#47 0x00000001 in ?? ()
#48 0x00000000 in ?? ()
#49 0x00000000 in ?? ()
#50 0x00000000 in ?? ()
#51 0x00082b8d in ?? ()
#52 0x00082b8d in ?? ()
#53 0x00000005 in ?? ()
#54 0x00001000 in ?? ()
#55 0x00000001 in ?? ()
#56 0x00083000 in ?? ()
#57 0x00083000 in ?? ()
#58 0x00083000 in ?? ()
#59 0x00004c3c in ?? ()
#60 0x00004d08 in ?? ()
#61 0x00000006 in ?? ()
#62 0x00001000 in ?? ()
#63 0x00000002 in ?? ()
#64 0x000863bc in ?? ()
#65 0x000863bc in ?? ()
#66 0x000863bc in ?? ()
#67 0x00000178 in ?? ()
#68 0x00000178 in ?? ()
#69 0x00000006 in ?? ()
#70 0x00000004 in ?? ()
#71 0x6474e550 in ?? ()
#72 0x00075570 in ?? ()
#73 0x00075570 in ?? ()
#74 0x00075570 in ?? ()
#75 0x00001cac in ?? ()
#76 0x00001cac in ?? ()
#77 0x00000004 in ?? ()
#78 0x00000004 in ?? ()
#79 0x6474e551 in ?? ()
#80 0x00000000 in ?? ()
#81 0x00000000 in ?? ()
#82 0x00000000 in ?? ()
#83 0x00000000 in ?? ()
#84 0x00000000 in ?? ()
#85 0x00000006 in ?? ()
#86 0x00000004 in ?? ()
#87 0x65041580 in ?? ()
#88 0x00000000 in ?? ()
#89 0x00000000 in ?? ()
#90 0x00000000 in ?? ()
#91 0x00000000 in ?? ()
#92 0x00000000 in ?? ()
#93 0x00002800 in ?? ()
#94 0x00000004 in ?? ()
#95 0x00000805 in ?? ()
#96 0x000008fe in ?? ()
#97 0x00000199 in ?? ()
#98 0x0000007b in ?? ()
#99 0x00000000 in ?? ()
#100 0x00000000 in ?? ()
#101 0x00000000 in ?? ()
#102 0x00000000 in ?? ()
#103 0x00000000 in ?? ()
#104 0x00000000 in ?? ()
#105 0x000007b1 in ?? ()
#106 0x00000000 in ?? ()
#107 0x00000511 in ?? ()
#108 0x0000085e in ?? ()
#109 0x000005aa in ?? ()
#110 0x00000143 in ?? ()
#111 0x00000520 in ?? ()
#112 0x000003ba in ?? ()
#113 0x000007d8 in ?? ()
#114 0x000000a3 in ?? ()
#115 0x00000000 in ?? ()
#116 0x00000000 in ?? ()
#117 0x00000000 in ?? ()
#118 0x00000223 in ?? ()
#119 0x00000000 in ?? ()
#120 0x0000074c in ?? ()
#121 0x0000019b in ?? ()
#122 0x00000000 in ?? ()
#123 0x0000031e in ?? ()
#124 0x00000582 in ?? ()
#125 0x00000000 in ?? ()
#126 0x000008e5 in ?? ()
#127 0x00000000 in ?? ()
#128 0x00000229 in ?? ()
#129 0x000004dc in ?? ()
#130 0x00000000 in ?? ()
#131 0x00000674 in ?? ()
#132 0x00000654 in ?? ()
#133 0x00000000 in ?? ()
#134 0x00000000 in ?? ()
#135 0x00000000 in ?? ()
#136 0x000000b7 in ?? ()
#137 0x00000000 in ?? ()
#138 0x0000073e in ?? ()
#139 0x0000087f in ?? ()
#140 0x00000000 in ?? ()
#141 0x00000732 in ?? ()
#142 0x00000279 in ?? ()
#143 0x0000051e in ?? ()
#144 0x00000000 in ?? ()
#145 0x00000000 in ?? ()
#146 0x00000881 in ?? ()
#147 0x000006ed in ?? ()
#148 0x0000073d in ?? ()
#149 0x00000000 in ?? ()
#150 0x00000000 in ?? ()
#151 0x0000023a in ?? ()
#152 0x00000698 in ?? ()
#153 0x00000385 in ?? ()
#154 0x00000106 in ?? ()
#155 0x000000a7 in ?? ()
#156 0x0000036f in ?? ()
#157 0x00000000 in ?? ()
#158 0x00000664 in ?? ()
#159 0x00000618 in ?? ()
#160 0x00000597 in ?? ()
#161 0x000008ae in ?? ()
#162 0x40012c78 in _dl_out_of_memory () from /lib/ld-linux.so.2
#163 0x40012c6e in _dl_out_of_memory () from /lib/ld-linux.so.2
#164 0x40012c93 in _dl_out_of_memory () from /lib/ld-linux.so.2
#165 0x40e26970 in ?? () from /lib/libc.so.6
#166 0x400162e0 in _rtld_global () from /lib/ld-linux.so.2
#167 0x400162e0 in _rtld_global () from /lib/ld-linux.so.2
#168 0xbfffd878 in ?? ()
#169 0x40dfae01 in getutmpx () from /lib/libc.so.6
#170 0x40dfae01 in getutmpx () from /lib/libc.so.6
#171 0x4000b786 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#172 0x40dfb747 in _dl_open () from /lib/libc.so.6
#173 0x40bccf9b in ?? () from /lib/libdl.so.2
#174 0x40e26970 in ?? () from /lib/libc.so.6
#175 0x4001656c in ?? () from /lib/ld-linux.so.2
#176 0xbfffda18 in ?? ()
#177 0x4001656c in ?? () from /lib/ld-linux.so.2
#178 0x400162e0 in _rtld_global () from /lib/ld-linux.so.2
#179 0x400162e0 in _rtld_global () from /lib/ld-linux.so.2
#180 0xbfffdb18 in ?? ()
#181 0x4000b786 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#182 0x4000b786 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#183 0x40bcd4b1 in dlerror () from /lib/libdl.so.2
#184 0x40bccfe4 in dlopen () from /lib/libdl.so.2
#185 0x406746c4 in QLibraryPrivate::loadLibrary (this=0x81106c8) at tools/qlibrary_unix.cpp:114
#186 0x4069d1cc in QLibrary::load (this=0x8110108) at tools/qlibrary.cpp:321
#187 0x4067abc6 in QComLibrary::createInstanceInternal (this=0x8110108) at tools/qcomlibrary.cpp:486
#188 0x4067b0ea in QComLibrary::queryInterface (this=0x8110108, request=@0x80d01e0, iface=0xbfffde34) at tools/qcomlibrary.cpp:523
#189 0x4069924e in QGPluginManager::addLibrary (this=0x80d01e0, lib=0x8110108) at tools/qgpluginmanager.cpp:461
#190 0x406987b0 in QGPluginManager::library (this=0x80d01e0, feature=@0xbfffe2a0) at tools/qgpluginmanager.cpp:388
#191 0x40699c23 in QGPluginManager::queryUnknownInterface (this=0x80d01e0, feature=@0xbfffe2a0, iface=0xbfffe1c8)
    at tools/qgpluginmanager.cpp:542
#192 0x08092a87 in QPluginManager<QWidgetFactoryInterface>::queryInterface (this=0x80d01e0, feature=@0xbfffe2a0, iface=0xbfffe1c8)
    at qpluginmanager_p.h:67
#193 0x080883c3 in Uic::createObjectImpl (this=0xbfffef90, e=@0xbfffe430, parentClass=@0xbfffed10, par=@0xbfffe670, layout=@0xbfffeb70)
    at object.cpp:315
#194 0x0806520f in Uic::createLayoutImpl (this=0xbfffef90, e=@0xbfffed50, parentClass=@0xbfffed10, parent=@0xbfffe670, layout=@0x80bc668)
    at uic.cpp:844
#195 0x08084954 in Uic::createObjectImpl (this=0xbfffef90, e=@0xbfffed50, parentClass=@0xbfffed10, par=@0xbfffeba0, layout=@0x80bc668)
    at object.cpp:102
#196 0x0807c625 in Uic::createFormImpl (this=0xbfffef90, e=@0xbfffee70) at form.cpp:1062
#197 0x08058d12 in Uic (this=0xbfffef90, fn=@0xbffff180, outputFn=0x0, outStream=@0xbffff0f0, doc=
        {<QDomNode> = {_vptr.QDomNode = 0x40933868, impl = 0x80c6568}, <No data fields>}, decl=false, subcl=false, trm=@0xbffff060, 
    subClass=@0xbffff050, omitForwardDecls=false) at uic.cpp:197
#198 0x080535e3 in main (argc=7, argv=0xbffff2c4) at main.cpp:340
(gdb) 

perhaps glibc is at fault.  I'll try to investigate that option tomorrow
evening.
Comment 4 Denys Duchier 2004-10-26 14:04:57 UTC
after downgrading from glibc-2.3.4.20040808-r1 to glibc-2.3.3.20040420-r2, the problem disappears.  Any clue what's going on?
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-10-28 08:47:34 UTC
looks like glibc is may be at fault here - perhaps toolchain can help?
Comment 6 Randy Carver 2005-01-13 05:12:14 UTC
I also had this problem, fixed it by using sys-libs/glibc-2.3.4.20041102 (added ~x86 to my package.keywords for glibc)

qt 3.3.3 builds fine now.

with glibc-2.3.4.20040808-r1 I could only build qt-3.2.3 or earlier.

-rpc
Comment 7 PaX Team 2005-03-05 00:23:18 UTC
this problem is caused by a bug in PaX that i debugged over this week and also turned out to be a critical security bug. you must upgrade to the latest PaX/grsecurity versions as soon as possible. advisory: http://marc.theaimsgroup.com./?l=full-disclosure&m=110998625822089&w=2

note that the suggested workaround also fixes this problem as well.

PS: someone elevate the priority of this, please.
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-10 05:32:27 UTC
Reassigning as this is a security bug
Comment 9 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-10 05:51:45 UTC
The PAX bug is covered in bug #84167 -> closing. Feel free to reopen if you disagree.

*** This bug has been marked as a duplicate of 84167 ***