Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102519 - fluxbox will not run, probably due to imlib2 segfault
Summary: fluxbox will not run, probably due to imlib2 segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-14 10:56 UTC by Jonathan Smith (RETIRED)
Modified: 2005-08-17 17:05 UTC (History)
2 users (show)

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


Attachments
fluxbox.log (fluxbox.log,546 bytes, text/plain)
2005-08-14 10:57 UTC, Jonathan Smith (RETIRED)
Details
xsession.log (xsession.log,941 bytes, text/plain)
2005-08-14 10:58 UTC, Jonathan Smith (RETIRED)
Details
flux_strace.log (flux_strace.log,26.09 KB, text/plain)
2005-08-16 19:29 UTC, Jonathan Smith (RETIRED)
Details
fluxbox_strace.log (fluxbox_strace.log,445.75 KB, text/plain)
2005-08-17 04:10 UTC, Peter Beutner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Smith (RETIRED) gentoo-dev 2005-08-14 10:56:07 UTC
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
Comment 1 Jonathan Smith (RETIRED) gentoo-dev 2005-08-14 10:57:57 UTC
Created attachment 65947 [details]
fluxbox.log

also, i think there is a post on the forums about this problem as well:
https://forums.gentoo.org/viewtopic-p-2648994.html
Comment 2 Jonathan Smith (RETIRED) gentoo-dev 2005-08-14 10:58:34 UTC
Created attachment 65948 [details]
xsession.log

as you can see, the logs are less than helpful
Comment 3 nikodemus 2005-08-16 01:50:36 UTC
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
Comment 4 Jim Nutt 2005-08-16 11:18:41 UTC
Interestingly enough, 0.9.9 doesn't share this problem. It seems to work just
fine...
Comment 5 Jonathan Smith (RETIRED) gentoo-dev 2005-08-16 18:55:28 UTC
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
Comment 6 Ciaran McCreesh 2005-08-16 18:59:18 UTC
strace?
Comment 7 Jonathan Smith (RETIRED) gentoo-dev 2005-08-16 19:29:04 UTC
Created attachment 66117 [details]
flux_strace.log

strace of the entire x session
Comment 8 Peter Beutner 2005-08-17 02:34:54 UTC
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.
Comment 9 Peter Beutner 2005-08-17 02:35:18 UTC
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.
Comment 10 Peter Beutner 2005-08-17 04:10:45 UTC
Created attachment 66126 [details]
fluxbox_strace.log

because the strace log attached in c#7 is only from startx

(uhm and sry for double post)
Comment 11 Peter Beutner 2005-08-17 05:05:15 UTC
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.
Comment 12 Jonathan Smith (RETIRED) gentoo-dev 2005-08-17 05:20:23 UTC
vapier/spanky: take a look?
Comment 13 SpanKY gentoo-dev 2005-08-17 17:05:19 UTC
thanks Peter, that is indeed wrong

fixed in portage and in upstream