Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286746 - x11-base/xorg-server-1.6.4: DGA segfaults in InitOutput
Summary: x11-base/xorg-server-1.6.4: DGA segfaults in InitOutput
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 286842 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-28 11:21 UTC by Toralf Förster
Modified: 2009-10-02 21:22 UTC (History)
12 users (show)

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


Attachments
Xorg.0.log (Xorg.0.log,9.74 KB, text/plain)
2009-09-28 11:21 UTC, Toralf Förster
Details
xorg-server-1.6.4-refix-DGA-removal.patch (xorg-server-1.6.4-refix-DGA-removal.patch,2.98 KB, patch)
2009-09-29 07:05 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2009-09-28 11:21:35 UTC
Compiled fine however it gives :

Backtrace:
0: X(xorg_backtrace+0x38) [0x8135188]
1: X(AddScreen+0x1b4) [0x806e644]

where the 1.6.3.901-r2 log continues w/

(II) Loading extension DPMS
(II) intel(0): DPMS enabled


BTW I use /etc/portage/package.keywords/x11.stable.list

Reproducible: Always




tfoerste@n22 ~/devel/wireshark $ emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31.1 i686)
=================================================================
System uname: Linux-2.6.31.1-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 28 Sep 2009 10:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ ftp://mirror.muntinternet.net/pub/gentoo/ http://gentoo.mneisen.org/"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
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://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdda cddax cddb cdio cdr cli consolekit cracklib crypt cups curl dbus dri dts dvd dvdr eds emboss encode evo exif fam fastbuild fat firefox flac fortran gdbm geoip gif git gmp gpm gstreamer gtk hyphenation iconv ipv6 isdnlog java jpeg kde kde3 ldap libnotify mad mbox mikmod mmx mp3 mp4 mpeg mudflap mysql nano-syntax ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection sdl session slp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd thinkpad thunar tiff tk truetype unicode usb vcd vim-syntax vorbis win32codecs wmf x264 x86 xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Toralf Förster gentoo-dev 2009-09-28 11:21:59 UTC
Created attachment 205458 [details]
Xorg.0.log
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-09-28 14:02:23 UTC
Could you try rebuilding xf86-video-intel?

Thanks
Comment 3 Toralf Förster gentoo-dev 2009-09-28 14:38:51 UTC
(In reply to comment #2)
> Could you try rebuilding xf86-video-intel?
> 
> Thanks
> 
An
$>emerge -1av =x11-base/xorg-server-1.6.4 =x11-drivers/xf86-video-intel-2.8.1
with debug gives :

...
(II) intel(0): No memory allocations
(II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.

Backtrace:
0: /usr/bin/X(xorg_backtrace+0x3c) [0x812f31c]
1: /usr/bin/X(xf86SigHandler+0x52) [0x80cbe22]
2: [0xb7eeb400]
3: /usr/bin/X(xf86DiDGAInit+0x2f) [0x80edf5f]
4: /usr/bin/X(xf86CrtcScreenInit+0x110) [0x80eb120]
5: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb7912327]
6: /usr/bin/X(AddScreen+0x19c) [0x806e62c]
7: /usr/bin/X(InitOutput+0x204) [0x80aac44]
8: /usr/bin/X(main+0x1e1) [0x806ed31]
9: /lib/libc.so.6(__libc_start_main+0xe5) [0xb7af7725]
10: /usr/bin/X [0x806e391]

Fatal server error:
Caught signal 11.  Server aborting
...

So I switched back to x11-base/xorg-server-1.6.3.901-r2 ...
Comment 4 Daniel V. 2009-09-28 21:30:15 UTC
Same message here. Both on ~amd64 and ~x86 (with an i965).
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2009-09-28 22:08:51 UTC
1.6.4 is p.masked until we figure this out.

Sorry for the inconvenience.

Thanks
Comment 6 Nick Bowler 2009-09-28 22:34:52 UTC
Upstream bug: http://bugs.freedesktop.org/show_bug.cgi?id=24200

This problem is not specific to xf86-video-intel.
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-29 07:05:23 UTC
Created attachment 205557 [details, diff]
xorg-server-1.6.4-refix-DGA-removal.patch

I gave the patch from http://lists.x.org/pipermail/xorg/2009-September/047428.html a try and it seems to fix the problem.


# emerge --info xorg-server xf86-video-intel
Portage 2.2_rc42 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30.8 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30.8-i686-Genuine_Intel-R-_CPU_T2050_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 28 Sep 2009 18:00:01 +0000
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r2, 3.1.1-r1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -mtune=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/env.d /etc/env.d/java/ /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/udev/rules.d /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=prescott -mtune=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y"
FEATURES="assume-digests collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="POSIX"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j2"
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/layman/poly-c"
SYNC="rsync://192.168.0.254/gentoo-portage"
USE="X a52 aac acpi alsa berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups dbus dri dts dvd emboss encode evo fam ffmpeg firefox flac gdbm gif gnutls gtk iconv idn isdnlog jpeg jpeg2k kde lame libnotify mad midi mmap mmx mmxext modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf png ppds pppd qt3support qt4 quicktime readline reflection sdl session slang spell spl sse sse2 ssl startup-notification svg sysfs theora threads thunar tiff truetype unicode usb vcd vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-base/xorg-server-1.6.4 was built with the following:
USE="-debug -dmx (-hal) -ipv6 -kdrive -minimal nptl sdl -tslib xorg"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-video-intel-2.8.1 was built with the following:
USE="-debug dri"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed -Wl,-z,lazy"
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-09-29 08:16:25 UTC
*** Bug 286842 has been marked as a duplicate of this bug. ***
Comment 9 Andrey Grozin gentoo-dev 2009-09-29 10:15:18 UTC
Same here: with xorg-server-1.6.4, Xorg.0.log says

Backtrace:
0: X(xorg_backtrace+0x3c) [0x8132d0c]
1: X(xf86SigHandler+0x9e) [0x80c5dfe]
2: [0xffffe400]
3: X(xf86DiDGAInit+0x2d) [0x80f190d]
4: X(xf86CrtcScreenInit+0x10e) [0x80ec56e]
5: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb798ec9c]
6: X(AddScreen+0x187) [0x806f257]
7: X(InitOutput+0x72c) [0x80ae33c]
8: X(main+0x1cb) [0x806f96b]
9: /lib/libc.so.6(__libc_start_main+0xe1) [0xb7b3aa51]
10: X [0x806efd1]

Fatal server error:
Caught signal 11.  Server aborting

Switched back to 1.6.3.901-r2
Comment 10 Vjaceslavs Klimovs 2009-09-29 11:11:52 UTC
On another machine of mine which has Nvidia graphics card (x11-drivers/nvidia-drivers-180.29) x11-base/xorg-server-1.6.4 works as expected.
Comment 11 Alexandre Ghisoli 2009-09-29 12:32:57 UTC
I've same crash here, with an thinkpad laptop.

x11-drivers/xf86-video-intel-2.8.1
x11-libs/libdrm-2.4.14

Not tested with the provided patch atm.
Comment 12 Chuck Wegrzyn 2009-09-29 14:11:13 UTC
I got the same problem with the ATI driver though the VESA driver works fine.

Backtrace:
0: /usr/bin/X(xorg_backtrace+0x3c) [0x812b0fc]
1: /usr/bin/X(xf86SigHandler+0x52) [0x80bf202]
2: [0xffffe400]
3: /usr/bin/X(xf86DiDGAInit+0x2b) [0x80eb42b]
4: /usr/bin/X(xf86CrtcScreenInit+0x102) [0x80e8672]
5: /usr/lib/xorg/modules/drivers//radeon_drv.so(RADEONScreenInit+0x1bd7) [0xb7950c37]
6: /usr/bin/X(AddScreen+0x192) [0x806f0f2]
7: /usr/bin/X(InitOutput+0x1fe) [0x80aa80e]
8: /usr/bin/X(main+0x1db) [0x806f7eb]
9: /lib/libc.so.6(__libc_start_main+0xdc) [0xb7ad3a4c]
10: /usr/bin/X [0x806ee91]

Fatal server error:
Caught signal 11.  Server aborting
Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2009-09-29 15:42:32 UTC
Yes, known issue, please no more "me too"s unless you want to say something that hasn't been said before.

As for the patch, I'll backport it if/when upstream ACKs it (which it hasn't been yet).

Thanks
Comment 14 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-29 19:02:16 UTC
Comment on attachment 205557 [details, diff]
xorg-server-1.6.4-refix-DGA-removal.patch

Please don't use the patch I posted here. It seems like Keith is still improving the patch (he already posted a new one).
Comment 15 Nikolaj Šujskij 2009-09-30 15:16:36 UTC
I'd suggest editing package.mask entry about xorg-server-1.6.4. Now it reads "breaks xf86-video-intel", so one could unmask it if radeon driver is used, for example and get a crashing Xorg (as did I).
Comment 16 Jean-Philippe Robichaud 2009-10-02 13:53:24 UTC
The upstream bug is closed since yesterday.  Perhaps we could give it another try?
Comment 17 Chuck Wegrzyn 2009-10-02 14:05:05 UTC
I will report that I emerged the latest xorg server in the portage, switched to my ati driver and it worked!!!!

So I might say this is history.
Comment 18 Rémi Cardona (RETIRED) gentoo-dev 2009-10-02 14:07:53 UTC
(In reply to comment #17)
> I will report that I emerged the latest xorg server in the portage, switched to
> my ati driver and it worked!!!!
> 
> So I might say this is history.

I haven't committed anything yet...
Comment 19 Vjaceslavs Klimovs 2009-10-02 14:10:16 UTC
Talk about placebo effect :)
Comment 20 Rémi Cardona (RETIRED) gentoo-dev 2009-10-02 14:12:03 UTC
Now I've committed a patch, please sync in a hour and test again.

Do make sure you see the "1.6.4-re-fix-DGA-removal.patch" being applied in src_unpack/prepare.

Thanks
Comment 21 Chuck Wegrzyn 2009-10-02 14:12:37 UTC
I did an emerge --sync; emerge -puvD world and saw a new version of xorg-server sitting there. I emerged it, switched to the ATI driver in my xorg.conf and it worked. So the bug was in Thursdays xorg server release.

Comment 22 Vjaceslavs Klimovs 2009-10-02 19:10:03 UTC
Works For Me, Intel GMA950 (x11-drivers/xf86-video-intel-2.8.1), KMS, UXA,  x11-base/xorg-server-1.6.4. Thank you!
Comment 23 Rémi Cardona (RETIRED) gentoo-dev 2009-10-02 21:22:51 UTC
1.6.4 is now unmasked.

Thanks for testing and, again, sorry for breakage.