Bug 102519 - fluxbox will not run, probably due to imlib2 segfault
|
Bug#:
102519
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: vapier@gentoo.org
|
Reported By: smithj@gentoo.org
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: fluxbox will not run, probably due to imlib2 segfault
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-08-14 10:56 0000
|
flux won't run. sorry, i can't BE more descriptive... it just won't run. at
all.
for any reason. when it is executed, it just dies...
i have not recently upgraded/change/merged x11, flux, or any other relevent
package. i have not changed the config files. i have not done anything which i
can guess would fux0r things
x11 works fine, as do other WMs. this problem occurs on two of my boxes:
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r7 i686)
=================================================================
System uname: 2.6.12-gentoo-r7 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.13
ccache version 2.4 [enabled]
dev-lang/python: 2.3.5, 2.4.1-r1
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -mtune=athlon -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks nodoc noinfo sandbox
sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://mirror.mcs.anl.gov/pub/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi aim alsa apache2 avi bash-completion bitmap-fonts
browserplugin cdr crypt cups dba divx4linux encode esd firefox flac fluxbox
font-server ftp gd gd-external gif gnome gtk gtk2 icq idea imap imlib java
jikes
jpeg mad mmx mmxext mozilla mp3 mpeg ncurses new-login nocd nptl nptlonly
offensive ogg oggvorbis opengl pam php pic png posix python samba sdl spell ssl
tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vim vorbis
win32codecs xmms xprint xv xvid userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12 i686)
=================================================================
System uname: 2.6.12 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.12.0_pre5
ccache version 2.4 [enabled]
dev-lang/python: 2.3.4-r1, 2.4.1-r1
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/home/portage-distfiles/"
FEATURES="autoaddcvs autoconfig ccache collision-protect cvs digest distlocks
sandbox sfperms sign strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/
http://mirrors.acm.cs.rpi.edu/gentoo/ http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo
http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi aim alsa apache2 avi bash-completion bitmap-fonts
browserplugin cdr crypt cups dba divx4linux dvd encode esd firefox flac fluxbox
font-server ftp gd gd-external gif gnome gtk gtk2 icq idea imap imlib java
jikes
jpeg mad mmx mmx2 mozilla mp3 mpeg ncurses nocd nptl nptlonly offensive ogg
oggvorbis opengl pam pcmcia php pic png posix python samba sdl spell sse sse2
ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vim
vorbis win32codecs xmms xprint xv xvid userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
I've the same problem.
# emerge -pv fluxbox x11
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] x11-wm/fluxbox-0.9.13-r1 -disablexmb -gnome* +imlib -kde +nls
+truetype -xinerama 0 kB
[ebuild R ] x11-base/xorg-x11-6.8.2-r2 -3dfx +3dnow +bitmap-fonts -cjk
-debug +dlloader -dmx -doc -font-server -insecure-drivers +ipv6 -minimal +mmx
+nls -nocxx +opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts
(-uclibc) -xprint +xv 9 kB
Total size of downloads: 9 kB
# emerge --info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.
20041102-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Unknown CPU Type
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
ccache version 2.3 [enabled]
dev-lang/python: 2.3.5
sys-apps/sandbox: 1.2.11
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -fstack-protector-all"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /usr/shar
e/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -fstack-protector-all"
DISTDIR="/storage/portage-distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv"
LANG="sv_SE"
LC_ALL="sv_SE"
LINGUAS="sv"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.10/gentoo-portage"
USE="x86 3dnow X alsa apm avi berkdb bitmap-fonts cdr crypt cups curl dillo dvd
dvdr eds emboss encode fam flac foomaticdb fortran gd gdbm gif gphoto2 gpm gstre
amer gtk gtk2 hardened imagemagick imlib ipv6 java jpeg junit libg++ libwww mad
maildir mikmod mmx motif mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pa
m pdflib perl png python quicktime readline sdl slang spell sse ssl svga tcltk t
cpd tiff truetype truetype-fonts type1-fonts vorbis xml xml2 xmms xv zlib lingua
s_sv userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LDFLAGS
Interestingly enough, 0.9.9 doesn't share this problem. It seems to work just
fine...
0.9.11 works for me, but 0.9.12+ is broken. this is strange, b/c i've been
using
>0.9.12 for many months
same problem here.
i tracked it down to the latest imlib2 upgrade(1.2.0.007-r1).
downgrading imlib2 back to 1.2.0.007 and fluxbox works again.
The only change in imlib2-1.2.0.007-r1 is an imlib2-PIC.patch, so I guess some
of the assembly rework done there must be wrong.
same problem here.
i tracked it down to the latest imlib2 upgrade(1.2.0.007-r1).
downgrading imlib2 back to 1.2.0.007 and fluxbox works again.
The only change in imlib2-1.2.0.007-r1 is an imlib2-PIC.patch, so I guess some
of the assembly rework done there must be wrong.
there is a small typo in the imlib2-PIC.patch.
at line 574
- movq m_rb, %mm5
- movq m_g6, %mm6
+ LOAD_IMMQ(m_rb, %mm5)
+ LOAD_IMMQ(m_g6, %mm6)
+ CLEANUP_IMMQ_LOADS(1)
^^^
doesnt clear the stack completly, no wonder that it segfaults ;)
replace last line with:
+ CLEANUP_IMMQ_LOADS(2)
and everything is fine.
vapier/spanky: take a look?
thanks Peter, that is indeed wrong
fixed in portage and in upstream