Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120977 - ati-driver + gentoo-sources-2.6.15-r1 causes X server to crash computer on exit
Summary: ati-driver + gentoo-sources-2.6.15-r1 causes X server to crash computer on exit
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 127987 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-30 13:31 UTC by Fredric Johansson
Modified: 2007-09-04 01:33 UTC (History)
5 users (show)

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


Attachments
Kernel-config (.config,37.33 KB, text/plain)
2006-01-30 13:34 UTC, Fredric Johansson
Details
Relevant /var/log/messages logs (var_log_messages.txt,5.38 KB, text/plain)
2006-02-04 08:34 UTC, Ylosar Goer
Details
fglrx-2.6.15-if0.patch (fglrx-2.6.15-if0.patch,503 bytes, patch)
2006-03-06 06:42 UTC, Fredric Johansson
Details | Diff
Last 70 lines of /var/log/messages (errorlog.txt,6.22 KB, text/plain)
2006-05-30 23:02 UTC, André Terpstra
Details
X log (Xorg.0.log,47.12 KB, text/plain)
2006-05-30 23:03 UTC, André Terpstra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fredric Johansson 2006-01-30 13:31:07 UTC
After updating to gentoo-sources-2.6.15-r1 the computer crashes when trying to logout from or shutting down xorg-x11. Have to press powerbutton to shut down since nothing else works
It works when using older 2.6.14-r* kernel
Might should add that I use ati-drivers-8.14.13-r5 with fglrx-2.6.14-access_ok.patch because of changed symbols in kernel


emerge --info:

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mmmx -msse -msse2 -pipe -fomit-frame-pointer"
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/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mmmx -msse -msse2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://mirror.pudas.net/gentoo"
LANG="sv_SE"
LC_ALL="sv_SE"
LINGUAS="sv"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apm arts audiofile avi bdf berkdb bitmap-fonts blas browserplugin bzip2 bzlib cdda cddb cdio cdparanoia cdr crypt css cups curl directfb divx4linux djbfft dnd dts dvb dvd dvdr dvdread emboss encode esd exif expat fam fame fbcon ffmpeg firefox flac font-server foomaticdb fortran fpx fuse gd gdbm ggi gif gimp gimpprint glitz glut gmp gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 guile hal hdf5 hou idn imagemagick imlib ithreads jack java javascript jbig jpeg kde kdeenablefinal lcms ldap libcaca libg++ libwww lirc live lzo mad mikmod mjpeg mmx mng motif mozilla mozsvg mp3 mpeg mpi musepack ncurses network nls noamazon nowin nptl offensive ogg oggvorbis openal opengl osc oss pam pcre pdflib perl plotutils png ppds pvm python qt quicktime readline real recode rtc scanner sdl slang slp sndfile sou speex spell sse sse2 ssl svg svga tcltk tcpd tga theora threads tiff truetype truetype-fonts type1-fonts udev usb v4l v4l2 vcd vidix visualization vorbis win32codecs wmf wxwindows xanim xine xml2 xmms xosd xpm xprint xsl xv xvid xvmc yv12 zlib linguas_sv userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Fredric Johansson 2006-01-30 13:34:14 UTC
Created attachment 78522 [details]
Kernel-config
Comment 2 Henrik Brix Andersen 2006-01-31 01:19:25 UTC
Can you reproduce this when not using ati-drivers?
Comment 3 Fredric Johansson 2006-01-31 06:26:55 UTC
No, trying with vesadrivers didnt crash on exit
So if I aint wrong this would be a "bug" between gentoo-sources and ati-drivers, maybe also xorg-x11 but probably not
Comment 4 Henrik Brix Andersen 2006-01-31 10:06:41 UTC
Please remember to reopen a bug when providing more information :)
Comment 5 Henrik Brix Andersen 2006-01-31 10:07:41 UTC
Reassigning to x11-drivers since this seems to be related to ati-drivers.
Comment 6 matthias lippert 2006-02-01 09:20:04 UTC
the same goes for ati-drivers 8.21.7 and earlier versions ... (for me switching back to "stable" ati-drivers 8.14.13-r3 and gentoo kernel 2.6.14-r5 is good)
Comment 7 Kilian Neuner 2006-02-01 09:43:18 UTC
I have the same problem as described above: 
Desktop freezes when trying to log out of a X-Session, no reaction to pressing the Num-lock button (LED doesn switch on or of).
I can still log into the machine via ssh, but neither shutdown nore reboot work.

I have installed kernel-2.6.15-r1, ati-driver 8.14.13-r3, xorg-x11 6.8.2-r6

The system does not crash with kernel 2.6.14-r2

emerge --info


Portage 2.0.54 (!/usr/portage/profiles/default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=athlon-xp"
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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=athlon-xp"
DISTDIR="/mnt/nts_portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.inode.at"
MAKEOPTS="-j5"
PKGDIR="/mnt/nfs_portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/nfs_portage"
SYNC="rsync://192.168.9.1/gentoo-portage"
USE="x86 3dnow X a52 aac aalib acl acpi aim alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bmp bonobo bzip2 cdr crypt cscope cups dedicated divx4linux doc dri dts dv dvb dvd dvdr dvdread eds emboss encode esd exif expat fam fastcgi ffmpeg firebird flac flash foomaticdb fortran ftp gb gd gdbm gf gif glut gnome gphoto gpm gps gstreamer gtk gtk2 gtkhtml icq idn ieee1394 imagemagick imap imlib ipv6 java javascript joystick jpeg kde lcms libcaca libg++ libwww mad matroska mhash mikmod mime ming mmx mng motif mozilla mp3 mpeg mysql ncurses nls nocd odbc ogg oggvorbis openal opengl osc oss pam pcre pda pdflib perl php png python qt quicktime radius readline recode samba sdl spell ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb vcd videos vorbis wifi win32codecs wmf xface xine xml xml2 xmms xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY


/var/log/messages:

Feb  1 16:39:09 arkadin gdm(pam_unix)[7210]: session closed for user kili
Feb  1 16:39:10 arkadin ------------[ cut here ]------------
Feb  1 16:39:10 arkadin kernel BUG at mm/swap.c:49!
Feb  1 16:39:10 arkadin invalid operand: 0000 [#1] 
Feb  1 16:39:10 arkadin PREEMPT 
Feb  1 16:39:10 arkadin Modules linked in: smbfs nfs snd_seq_midi snd_pcm_oss snd_mixer_oss snd_seq_oss ntfs uhci_hcd asb100 hwmon_vid i2c_dev i2c_viapro fglrx via_agp agpgart b2c2_flexcop_pci b2c2_flexcop mt352 bcm3510 stv0299 dvb_core dvb_pll nxt2002 firmware_class stv0297 lgdt330x mt312 i2c_core snd_emu10k1_synth snd_emu10k1 snd_ac97_codec snd_pcm snd_ac97_bus snd_page_alloc snd_emux_synth snd_seq_virmidi snd_rawmidi snd_seq_midi_event snd_seq_midi_emul snd_seq snd_timer snd_seq_device snd_hwdep snd snd_util_mem
Feb  1 16:39:10 arkadin CPU:    0
Feb  1 16:39:10 arkadin EIP:    0060:[<c0147a79>]    Tainted: P    B VLI
Feb  1 16:39:10 arkadin EFLAGS: 00213256   (2.6.15-gentoo-r1) 
Feb  1 16:39:10 arkadin EIP is at put_page+0x39/0x80
Feb  1 16:39:10 arkadin eax: 00000000   ebx: db061be8   ecx: c134bec0   edx: c134bec0
Feb  1 16:39:10 arkadin esi: b7efa000   edi: c134bec0   ebp: db06df28   esp: db06de8c
Feb  1 16:39:10 arkadin ds: 007b   es: 007b   ss: 0068
Feb  1 16:39:10 arkadin Process X (pid: 7213, threadinfo=db06c000 task=db4a9110)
Feb  1 16:39:10 arkadin Stack: db061be8 c014c2f4 c134bec0 b7efa000 1a5f6067 1a5f6067 00000000 ffffffff
Feb  1 16:39:10 arkadin df38e440 b7efb000 df3d5b7c b7efb000 db06df28 c014c473 c04b8b9c df397b74
Feb  1 16:39:10 arkadin df3d5b7c b7efa000 b7efb000 db06df28 00000000 b7efafff df3d5b7c df3d5b7c
Feb  1 16:39:10 arkadin Call Trace:
Feb  1 16:39:10 arkadin [<c014c2f4>] zap_pte_range+0x174/0x230
Feb  1 16:39:10 arkadin [<c014c473>] unmap_page_range+0xc3/0x130
Feb  1 16:39:10 arkadin [<c014c5cb>] unmap_vmas+0xeb/0x1d0
Feb  1 16:39:10 arkadin [<c01507b5>] unmap_region+0x95/0x120
Feb  1 16:39:10 arkadin [<c0150adc>] do_munmap+0x10c/0x150
Feb  1 16:39:10 arkadin [<c0150b70>] sys_munmap+0x50/0x80
Feb  1 16:39:10 arkadin [<c0103201>] syscall_call+0x7/0xb
Feb  1 16:39:10 arkadin Code: 8b 02 89 d1 f6 c4 40 74 03 8b 4a 0c 8b 41 04 40 74 19 83 42 04 ff 0f 98 c0 84 c0 75 04 83 c4 04 c3 89 d0 83 c4 04 e9 57 03 00 00 <0f> 0b 31 00 1a 29 3c c0 eb dd 8b 52 0c 8b 02 89 d1 f6 c4 40 74
Feb  1 16:39:10 arkadin <6>note: X[7213] exited with preempt_count 2
Feb  1 16:39:10 arkadin scheduling while atomic: X/0x00000002/7213
Feb  1 16:39:10 arkadin [<c03a1cd2>] schedule+0x612/0x620
Feb  1 16:39:10 arkadin [<c011b4e3>] vprintk+0x1a3/0x290
Feb  1 16:39:10 arkadin [<c03a29cd>] rwsem_down_read_failed+0x8d/0x170
Feb  1 16:39:10 arkadin [<c011eba2>] .text.lock.exit+0x27/0x85
Feb  1 16:39:10 arkadin [<c011d833>] do_exit+0xf3/0x440
Feb  1 16:39:10 arkadin [<c01047d0>] do_invalid_op+0x0/0xd0
Feb  1 16:39:10 arkadin [<c010440d>] die+0x17d/0x180
Feb  1 16:39:10 arkadin [<c010487e>] do_invalid_op+0xae/0xd0
Feb  1 16:39:10 arkadin [<c01a0e90>] ext3_get_block+0x0/0xb0
Feb  1 16:39:10 arkadin [<c0147a79>] put_page+0x39/0x80
Feb  1 16:39:10 arkadin [<c03a19f4>] schedule+0x334/0x620
Feb  1 16:39:10 arkadin [<e0c28d57>] drm_free+0xb7/0x150 [fglrx]
Feb  1 16:39:10 arkadin [<c0103c97>] error_code+0x4f/0x54
Feb  1 16:39:10 arkadin [<c0147a79>] put_page+0x39/0x80
Feb  1 16:39:10 arkadin [<c014c2f4>] zap_pte_range+0x174/0x230
Feb  1 16:39:10 arkadin [<c014c473>] unmap_page_range+0xc3/0x130
Feb  1 16:39:10 arkadin [<c014c5cb>] unmap_vmas+0xeb/0x1d0
Feb  1 16:39:10 arkadin [<c01507b5>] unmap_region+0x95/0x120
Feb  1 16:39:10 arkadin [<c0150adc>] do_munmap+0x10c/0x150
Feb  1 16:39:10 arkadin [<c0150b70>] sys_munmap+0x50/0x80
Feb  1 16:39:10 arkadin [<c0103201>] syscall_call+0x7/0xb
Feb  1 16:40:01 arkadin cron[25938]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Comment 8 Kilian Neuner 2006-02-01 23:55:04 UTC
Workaround:

Ctrl + Alt + F2
login as user with rights to shutdown / reboot
reboot / poweroff
Comment 9 Ylosar Goer 2006-02-04 08:34:58 UTC
Created attachment 78863 [details]
Relevant /var/log/messages logs

Me too comment.

gentoo-sources-2.6.15-r1
ati-drivers-8.14.13-r3
xorg-x11-6.8.2-r6
Comment 10 Fredric Johansson 2006-02-09 08:30:26 UTC
Same happends with gentoo-sources-2.6.15-r4 with the same setup
Comment 11 Nebojsa Trpkovic 2006-02-09 16:11:18 UTC
this fix works for me:

http://lkml.org/lkml/2005/12/11/26
Comment 12 Jules Gagnon 2006-02-12 12:34:00 UTC
I also get the same problem but not only on X exit. I get it also when starting an Xv output (mythtv, on second head) and with xscreensaver. The LKML fix works for me in all cases so I suggest a patch is added.

Feb 12 12:14:46 tolkien kernel BUG at mm/swap.c:49!
Feb 12 12:14:46 tolkien invalid operand: 0000 [#2]
Feb 12 12:14:46 tolkien Modules linked in: w83781d hwmon_vid i2c_isa i2c_viapro
vfat fat fglrx saa7127 bttv video_buf v4l2_common btcx_risc lirc_i2c lirc_dev tda9887 msp3400 saa7115 tuner tveeprom ivtv firmware_class videodev usb_storage usbhid
Feb 12 12:14:46 tolkien CPU:    0
Feb 12 12:14:46 tolkien EIP:    0060:[<c01338ba>]    Tainted: P    B VLI
Feb 12 12:14:46 tolkien EFLAGS: 00010256   (2.6.15-gentoo-r1)
Feb 12 12:14:46 tolkien EIP is at put_page+0x4e/0x69
Feb 12 12:14:46 tolkien eax: 00000000   ebx: c11a5600   ecx: c11a5600   edx: c11a5600
Feb 12 12:14:46 tolkien esi: c3049dc4   edi: 00000020   ebp: b7f71000   esp: ca291e9c
Feb 12 12:14:46 tolkien ds: 007b   es: 007b   ss: 0068
Feb 12 12:14:46 tolkien Process mythfrontend (pid: 13059, threadinfo=ca290000 task=ca1fd5e0)
Feb 12 12:14:46 tolkien Stack: c0136e7a c11a5600 00000000 ffffffff d754f280 b7f72000 c44e1b7c 00000000
Feb 12 12:14:46 tolkien c44e1b7c c0136f89 c03e0fb8 c88c6334 c44e1b7c b7f71000 b7f72000 ca291f1c
Feb 12 12:14:46 tolkien 00000000 b7f72000 c44e1b7c c88c6334 b7f71000 b7f72000 00000001 c013709e
Feb 12 12:14:46 tolkien Call Trace:
Feb 12 12:14:46 tolkien [<c0136e7a>] zap_pte_range+0x158/0x1c8
Feb 12 12:14:46 tolkien [<c0136f89>] unmap_page_range+0x9f/0xed
Feb 12 12:14:46 tolkien [<c013709e>] unmap_vmas+0xc7/0x177
Feb 12 12:14:46 tolkien [<c013a32c>] unmap_region+0x73/0xcd
Feb 12 12:14:46 tolkien [<c013a58f>] do_munmap+0xdd/0xf3
Feb 12 12:14:46 tolkien [<c013a5d6>] sys_munmap+0x31/0x4b
Feb 12 12:14:46 tolkien [<c01029df>] sysenter_past_esp+0x54/0x75
Feb 12 12:14:46 tolkien Code: 00 5c bb 30 c0 83 42 04 ff 0f 98 c0 84 c0 74 35 8b 4a 30 89 54 24 04 ff e1 8b 02 89 d1 f6 c4 40 74 03 8b 4a 0c 8b 41 04 40 75 08 <0f> 0b 31 00 5c bb 30 c0 83 42 04 ff 0f 98 c0 84 c0 74 07 89 d0
Comment 13 Fredric Johansson 2006-03-06 06:42:40 UTC
Created attachment 81513 [details, diff]
fglrx-2.6.15-if0.patch

Possible patch made with help of the link, It works for me, might be good if anyone else can test it too. It at least doesnt make the comp crash everytime I exit X
Comment 14 Fredric Johansson 2006-03-29 07:15:15 UTC
*** Bug 127987 has been marked as a duplicate of this bug. ***
Comment 15 Bertrand Jacquin 2006-04-11 06:55:07 UTC
I got the same. But if I connect on host with ssh. I can saw that X take 99% Cpu time. So kill it, then
/etc/init.d/xdm zap
/etc/init.d/sdm start

And X start and work.

But after somes minutes, network get down. I can /etc/init.d/net.eth0 restart and I got eth0 infos when running ifconfig. When I do ping google.fr network card is active (saw with the leds and switch). But kernel hangs up. Network crash. dmesg show nothing.
And network problems appears with ati-drivers update.

Anyone got the same ?
Comment 16 André Terpstra 2006-05-30 23:02:27 UTC
Created attachment 87939 [details]
Last 70 lines of /var/log/messages
Comment 17 André Terpstra 2006-05-30 23:03:13 UTC
Created attachment 87940 [details]
X log
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2007-09-04 01:33:01 UTC
Uhm... dead bug. If you have issues with up-to-date kernel and ati-drivers, reopen. Nothing to be fixed about 2.6.15 kernel since it doesn't exist in the tree. :)