Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349655 - media-libs/mesa-7.9 makes x11-wm/compiz-0.8.6-r3 segfault
Summary: media-libs/mesa-7.9 makes x11-wm/compiz-0.8.6-r3 segfault
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Desktop-Effects herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-24 22:44 UTC by Jordan
Modified: 2010-12-27 21:49 UTC (History)
2 users (show)

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


Attachments
Xorg log when compiz segfaults (Xorg.0.log,22.91 KB, text/plain)
2010-12-27 00:01 UTC, Jordan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan 2010-12-24 22:44:12 UTC
Last night as part of an upgrade, media-libs/mesa-7.8.2 was upgraded to media-libs/mesa-7.9. When restarting the computer, compiz would segfault. Downgrading mesa back to 7.8.2 would allow compiz to function.

Reproducible: Always

Steps to Reproduce:
1. Install media-libs/mesa-7.9
2. Reboot
3. $compiz --replace

Actual Results:  
Compiz segfaults


Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-zen1 x86_64)
=================================================================
System uname: Linux-2.6.36-zen1-x86_64-Intel-R-_Core-TM-_i3_CPU_M_350_@_2.27GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 23 Dec 2010 21:30:22 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.0::funtoo
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1::funtoo
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1::funtoo
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/  http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/  "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en_CA"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/wirelay /var/lib/layman/cj-overlay /var/lib/layman/gnome-live /var/lib/layman/steev /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi additions alsa amd64 aspell ass bzip2 cairo cdda cdparanoia cleartype consolekit css cups dbus device-mapper dhcpcd dri dvd exif expat ffmpeg firefox fontconfig foomaticdb fuse gconf gdu gecko gif glib gnome gpg gstreamer gtk java jpeg libnotify live mad midi mmx mp3 mpeg multilib nautilus ncurses network networkmanager nls nptl opengl openmp pam pcre pdf pnf png policykit ppds pulseaudio python samba sdl smp spell sse sse2 ssl ssse3 svg tcpd threads threadsafe tiff truetype udev unicode usb wifi x264 xcb xinerama xml xorg xpdf-headers xvid zip zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en_US en_CA" USERLAND="GNU" VIDEO_CARDS="intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robert Coffree 2010-12-26 21:49:55 UTC
Can you post your Xorg.0.log or whatever, and also a listing of the contents of /usr/lib64/dri and /usr/lib64/mesa 
Comment 2 Robert Coffree 2010-12-26 21:50:06 UTC
Can you post your Xorg.0.log or whatever, and also a listing of the contents of /usr/lib64/dri and /usr/lib64/mesa please?
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-26 22:34:26 UTC
Please provide a backtrace. Also make sure that mesa, xf86-video-intel and xorg-server were compiled against the same version of libdrm.
Comment 4 Jordan 2010-12-27 00:00:58 UTC
(In reply to comment #1)
> Can you post your Xorg.0.log or whatever
Please see following attachment.

(In reply to comment #1)
and also a listing of the contents of
> /usr/lib64/dri and /usr/lib64/mesa 
> 
#dir /usr/lib64/dri
vboxvideo_dri.so
#dir /usr/lib64/mesa
dir: cannot access /usr/lib64/mesa: No such file or directory
#

(In reply to comment #3)
> Please provide a backtrace. Also make sure that mesa, xf86-video-intel and
> xorg-server were compiled against the same version of libdrm.
> 

*Recompile x11-libs/libdrm-2.4.23*
*restart*
*recompile media-libs/mesa-7.9, x11-base/xorg-server-1.9.2.902, x11-drivers/xf86-video-intel-2.13.0, x11-wm/compiz-0.8.6-r3 (in that order)*
*restart*
compiz still segfaults. I followed the backtrace guide and whenever I have gdb start compiz, it makes xorg-server crash. Starting compiz via "compiz --replace" does not cause xorg-server to crash but compiz still segfaults.
Comment 5 Jordan 2010-12-27 00:01:32 UTC
Created attachment 258144 [details]
Xorg log when compiz segfaults
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-27 00:06:55 UTC
[     8.691] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed 
[     8.691] (EE) AIGLX error: dlopen of /usr/lib64/dri/swrast_dri.so failed (/usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory)

Looks like you disabled some important part of mesa. What is the output of "emerge -pv mesa"?
Comment 7 Jordan 2010-12-27 01:53:39 UTC
$ emerge -pv mesa

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/mesa-7.8.2  USE="nptl xcb -debug (-gallium) -motif -pic (-selinux)" VIDEO_CARDS="intel -mach64 -mga -nouveau -r128 -radeon -savage -sis -svga -tdfx -via" 5,019 kB

Total: 1 package (1 reinstall), Size of downloads: 5,019 kB
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-27 07:34:47 UTC
Sorry, I should have asked more explicitly. Please give the emerge -pv output for mesa 7.9
Comment 9 Jordan 2010-12-27 13:34:27 UTC
(In reply to comment #8)
> Sorry, I should have asked more explicitly. Please give the emerge -pv output
> for mesa 7.9
> 
Oops, I should've realized that.

$emerge -pv mesa

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] media-libs/mesa-7.9 [7.8.2] USE="nptl -classic% -debug -gallium -gles% -llvm% -motif -pic (-selinux) (-xcb%*)" VIDEO_CARDS="intel -mach64 -mga -nouveau -r128 -radeon -savage -sis -tdfx -via -vmware% (-svga%)" 5,546 kB

Total: 1 package (1 upgrade), Size of downloads: 5,546 kB
$
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-27 13:39:10 UTC
> USE="nptl -classic% -debug -gallium

You have disabled both classic and gallium. So you end up with no hardware drivers at all. For intel, you should enable at least classic.

Please reopen if the issue persists after building mesa with USE="classic"
Comment 11 Jordan 2010-12-27 17:23:33 UTC
I enabled the "classic" USE flag, upgraded to mesa-7.9 and rebooted. Gnome could not start up, I'd keep getting sent back to the gdm login screen. I could login using the "Failsafe Gnome" option.

As a side note: I don't have compiz start automatically. Gnome starts metacity, then I have a startup script to start compiz:

$ cat ~/.bin/compiz 
#!/bin/sh
LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz --replace --indirect-rendering --sm-disable ccp&
$

I got that line from gentoo-wiki.com on starting compiz with an intel graphics chip.
Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-27 17:49:59 UTC
Please be careful not to conflate two different issues in one bug. If your gnome session crashes, this is probably unrelated to compiz.