Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326033 - x11-base/xorg-server / libdri2 segfaults with intel video, DRI2CopyRegion()
Summary: x11-base/xorg-server / libdri2 segfaults with intel video, DRI2CopyRegion()
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 16:43 UTC by Blu3
Modified: 2010-09-22 06:53 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 Blu3 2010-06-28 16:43:41 UTC
=x11-base/xorg-server-1.8.1.902
=x11-drivers/xf86-video-intel-2.12.0

Program received signal SIGSEGV, Segmentation fault.
0xb73f40dc in DRI2CopyRegion (pDraw=0xa37ccb8, pRegion=0xbfb1da0c, dest=7, src=0) at dri2.c:527
527             if (pPriv->buffers[i]->attachment == dest)
(gdb) bt
#0  0xb73f40dc in DRI2CopyRegion (pDraw=0xa37ccb8, pRegion=0xbfb1da0c, dest=7, src=0) at dri2.c:527
#1  0xb73f3f00 in do_get_buffers (pDraw=0xa37ccb8, width=0xa37d0f4, height=0xa37d0f8, attachments=0xbfb1db34, count=1, out_count=0xbfb1db58, has_format=1) at dri2.c:436
#2  0xb73f3f86 in DRI2GetBuffersWithFormat (pDraw=0xa37ccb8, width=0xa37d0f4, height=0xa37d0f8, attachments=0xbfb1db2c, count=1, out_count=0xbfb1db58) at dri2.c:455
#3  0xb74559e0 in dri2GetBuffersWithFormat (driDrawable=0xa37d0d0, width=0xa37d0f4, height=0xa37d0f8, attachments=0xbfb1db2c, count=1, out_count=0xbfb1db58, 
    loaderPrivate=0xa37cf88) at glxdri2.c:529
#4  0xb710572c in ?? () from /usr/lib/dri/i915_dri.so
(gdb) info local
ds = 0x97581a8
pPriv = 0xa37d038
pDestBuffer = 0x0
pSrcBuffer = 0xa119df8
i = 1
(gdb) p dest
$1 = 7
(gdb) p pPriv
$2 = (DRI2DrawablePtr) 0xa37d038
(gdb) p pPriv->buffers
$3 = (DRI2BufferPtr *) 0xa078e28
(gdb) p i
$4 = 1
(gdb) p pPriv->buffers[1]
$5 = (DRI2BufferPtr) 0x0


Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.1, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 28 Jun 2010 06:30:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 1.3.7-r1, 2.1.11
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
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.3, 1.11.1
sys-devel/binutils:  2.18, 2.18-r4, 2.19, 2.19.1-r1, 2.20-r1, 2.20.1-r1
sys-devel/gcc:       4.2.2, 4.2.3, 4.2.4, 4.3.1-r1, 4.3.2-r2, 4.3.3-r2, 4.3.4, 4.4.1, 4.4.2, 4.4.3-r2, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages getbinpkg news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US ja zh_TW zh_CN zh_TW ko"
MAKEOPTS="-j2 -l4"
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="/usr/local/portage"
SYNC="rsync://ranger.blue-labs.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 3ds 64bit 7zip X X509 a52 aac aalib accounting acl acpi acpi4linux activefilter adns aiglx aio alsa amarok amd amr amrr ao apache2 ares artswrappersuid asf asm async atm audiofile auth autoipd automount avahi ax25 background bash-completion bashlogger bcmath bcp bgpclassless bittorrent bjam bl bluetooth bogofilter boundschecking branding browserplugin bzip2 bzlib cairo calendar cap caps cddb cdio cdparanoia cdr cdrom cgi checkpath chipcard chm chroot clamav cle266 clearcase cli clock-screen consolekit cpudetection cpulimit cracklib crypt crypto_libgcrypt crypto_openssl cscope css csv ctype cups curl curlwrappers customlog cvs cvsgraph cxx daap dba dbus dell devhelp dga dhcp dia discard-path disk-cache disk-partition diskio divx djbfft dlopen dmi dmx dri dts dv dvb dvd dvdnav dvdr dvdread dvi dxr3 dynamicplugin eap-sim eap-tls ecc edfx edl elf emboss encode erandom exif extensions extra extrafilters extras fam fame fastbuild ffmpeg filepicker filter firefox flac flexresp2 flood foomaticdb force-cgi-redirect fortran fpx ftp fts3 fuse gd gdbm gecko-sdk geoip ggi gif gimp gimpprint glade glib glitz glut glx gmedia gmp gnokii gnutls google-gadgets gpg2-experimental gphoto2 graphviz gre gs gsm gstreamer gtk gtkhtml gtkspell gzip h323 hal hardened hardenedphp hash hbci hpn httpd i8x0 iconv idea idn ieee1394 ifp ilbc imagemagick imap imlib imlib2 inherit-graph injection inkjar inline ipod iproute2 ipv6 irda jabber jadetex java javascript jbig jpeg jpeg2k json kde kde4 kdrive kerberos kpathsea latex lcms ldap ldapsam libcaca libclamav libnotify lightning linux-smp-stats linuxkeys live livecd lm_sensors login-watch logitech-mouse loop-aes lzo mad madwifi magellan math mbox mcve md5sum memlimit mhash mikmod milter mime mimencode mjpeg mmap mmx mmxext mng modplug modules mounts-check mozdom moznopango mozsha1 mp2 mp3 mp4 mp4live mpeg mplayer mpm-prefork mppe-mppc msn mtp mudflap multicall multislot multitarget musepack musicbrainz nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses network network-cron njb nls nntp nodrm nptl nptlonly nsplugin nspr nss ntfs ntlm ntlm_unsupported_patch numeric oav ofx ogg openexr opengl openmp openssh optimisememory pam pam_chroot pam_timestamp pango parse-clocks patch pcap pcapnav pci pcntl pcre pda pdf pdo pear perl pg-vacuumdelay php plotutils plugins png pnm posix postgis postgres postscript povray ppds pppd prediction prelude pulseaudio pwdb pyste python qos qt3support qt4 quicktime radio radius rar rdesktop readline realmedia reflection replytolist restrict rss rtc samba sametime sasl scanner sdl secure-delete semantic-desktop sendfile sendmail sensord session sftplogging sguil shaper sharedext sharedmem shout simplexml skey slp smartcard smp smpgsql sms sndfile sni snmp snortsam soap sockets softquota sourceview speex spell spl sql sqlite sqlite3 srt sse sse2 ssl startup-notification stream subversion suexec suhosin suidcheck svg svgz swat symlink sysfs syslog sysvipc tga theora threads thumbnail thunderbird tidy tiff timestamps timestats tokenizer truetype udev unicode upnp ups urandom usagi usb user-homedirs userfiles utempter uudeview v4l v4l2 valgrind vcd vhosts vidix visualization vmmouse vorbis wddx webdav webdave webkit wifi win32codecs wma wma123 wmf wmp wps x264 x86 xanim xattr xcb xchat xcomposite xext xft xim xine xinerama xml xml2 xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xscreensaver xsettings xsl xslt xulrunner xv xvid xvmc yv12 zeroconf zip zlib zrtp" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="auth_digest charset_lite dumpio imagemap log_forensic version actions alias asis auth_basic authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US ja zh_TW zh_CN zh_TW ko" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2010-07-04 22:35:45 UTC
What version of mesa does your libdri come from?
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-07-07 12:33:24 UTC
Ensure that xorg-server, mesa and xf86-video-intel are all built against the same version of libdrm.
Please also describe the circumstances in which this happens.
Comment 3 Blu3 2010-07-26 15:26:31 UTC
segfaults usually happen during a) desktop startup/initialization with KDE and b) on return to X (i.e. alt-f7) after switching to text console

all mentioned packages have been rebuilt with current versions over the weekend.  segmentation fault occurs on startup once every few times and the desktop is fragile with GPU errors and render errors.  graphic rendering is incredibly messy with a lot of blocks drawn in the wrong place and often the screen is shifted horizontally.  moving objects leaves artifacts everywhere with a failed redraw once positioned.  you have to guess where the buttons for dialogs are to attempt to click the right one.

gentoo-sources 2.6.34-gentoo-r2
xorg-server 1.8.2
xf86-video-intel 2.12.0
media-libs/mesa 7.8.2
kde-* 4.4.5

GPU error is usually...
(EE) intel(0): Detected a hung GPU, disabling acceleration
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2010-09-22 06:53:37 UTC
Can you still reproduce with newer versions? If so, please file a bug upstream [1] and paste the URL here so we can track the problem.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html