Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129135 - kernel BUG at arch/i386/mm/pageattr.c:152! when ending an X session with ati-drivers and X.org
Summary: kernel BUG at arch/i386/mm/pageattr.c:152! when ending an X session with ati-...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-07 07:40 UTC by Igor Berg Mogielnicki
Modified: 2006-11-10 14:35 UTC (History)
1 user (show)

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 Igor Berg Mogielnicki 2006-04-07 07:40:21 UTC
I tried both modular X and Xorg 6.8/kernel 2.6.15 and 2.6.16 and get the same bug(probably another line with the .15 kernel through) when I end my X session to get back to gdm. 

I also tried setting AlwaysRestartServer=true in /etc/X11/gdm/gdm.conf but that didn't make any difference.

kernel BUG at arch/i386/mm/pageattr.c:152!
invalid opcode: 0000 [#1]
PREEMPT
Modules linked in: fglrx agpgart smbfs via686a w83781d hwmon_vid i2c_isa i2c_via
pro parport_pc lp parport snd_seq_midi snd_emu10k1_synth snd_emux_synth snd_seq_
virmidi snd_seq_midi_emul snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_seq_oss sn
d_seq_midi_event snd_seq video thermal processor fan button tun snd_emu10k1 snd_
rawmidi snd_ac97_codec snd_ac97_bus snd_pcm snd_seq_device snd_timer snd_page_al
loc snd_util_mem snd_hwdep snd tuner tvaudio msp3400 bttv video_buf firmware_cla
ss compat_ioctl32 i2c_algo_bit v4l2_common btcx_risc ir_common tveeprom i2c_core
 videodev psmouse rtc
CPU:    0
EIP:    0060:[<c01100e1>]    Tainted: P      VLI
EFLAGS: 00013082   (2.6.16-gentoo-r1 #1)
EIP is at __change_page_attr+0xcb/0x17c
eax: 1e8001e3   ebx: 1eb20000   ecx: c1006f20   edx: 00000163
esi: c0379de8   edi: deb20000   ebp: c1000000   esp: cc86fe78
ds: 007b   es: 007b   ss: 0068
Process X (pid: 14680, threadinfo=cc86e000 task=debc9070)
Stack: <0>c13d6400 00000008 00000000 00003246 c01101bb c13d6400 00000163 deb902c
0
       e19c0000 e1a64d60 00000000 c010fe51 c13d6300 00000009 00000163 e1a64d60
       00000003 e19fcd7d e19c0000 c13d6300 00000008 00000163 e1a64d60 00000000
Call Trace:
 [<c01101bb>] change_page_attr+0x29/0x5a
 [<c010fe51>] iounmap+0xb2/0xe9
 [<e19fcd7d>] agp_generic_free_gatt_table+0x62/0xce [fglrx]
 [<e1a02de0>] agp_backend_cleanup+0xc/0x4a [fglrx]
 [<e1a060db>] __ke_agp_uninit+0xe/0x24 [fglrx]
 [<e1a0e565>] _firegl_release_agp+0x15/0x140 [fglrx]
 [<e1a10da5>] firegl_takedown+0x335/0xc40 [fglrx]
 [<e1a100ff>] firegl_release+0x12f/0x190 [fglrx]
 [<e1a031cb>] ip_firegl_release+0xd/0x10 [fglrx]
 [<c0149061>] __fput+0x83/0x142
 [<c0147ce1>] filp_close+0x4c/0x55
 [<c0147d43>] sys_close+0x59/0x7c
 [<c01024ab>] sysenter_past_esp+0x54/0x75
Code: 56 e8 f4 fe ff ff 89 d9 83 c4 0c 8b 01 89 ca f6 c4 40 74 03 8b 51 0c ff 42
 04 eb 17 84 c0 78 0b 0b 5c 24 18 89 1e ff 49 04 eb 08 <0f> 0b 98 00 e1 99 2c c0
 8b 01 f6 c4 04 0f 85 97 00 00 00 8b 01
 <6>note: X[14680] exited with preempt_count 2

emerge --info:
Portage 2.1_pre7-r4 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.16
-gentoo-r1 i686)
=================================================================
System uname: 2.6.16-gentoo-r1 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled
]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
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-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="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share
/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/sh
are/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo
/etc/env.d"
CXXFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.nutsmaas.nl/gentoo/ http://ftp.easynet.nl/mirror/ge
ntoo/ http://www.gigaload.org/gentoo.org/ http://mirrors.sec.informatik.tu-darms
tadt.de/gentoo/ http://gentoo.mirror.sdv.fr"
LINGUAS="sv"
MAKEOPTS="-j11"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apache2 apm avi berkdb bitmap-fonts cddb cdr cjk cli crypt
 ctype cups dba divx4linux doc dri dvd emboss encode esd expat fam fastbuild foo
maticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint glibc-omitfp glx gp
m gstreamer gtk gtk2 hal icq imlib ipv6 isdnlog jpeg kde libg++ libvisual libwww
 live memlimit mikmod mmx motif mp3 mpeg msn musicbrainz nas ncurses network nls
 nptl nptlonly ogg opengl oss pam pcre pdflib perl pic png posix ppds pppd pytho
n qt quicktime rdesktop readline samba sdl session simplexml soap sockets spell
spl ssl tcltk tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode us
b v4l v4l2 vorbis xml xmms xprint xsl xv xvid zlib elibc_glibc input_devices_key
board input_devices_mouse kernel_linux linguas_sv userland_GNU video_cards_fglrx
 video_cards_ati video_cards_vesa video_cards_v4l"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLA
GS

My ati section in Xorg.conf
# === ATI device section ===

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
# ### generic DRI settings ###
# === disable PnP Monitor  ===
    #Option                              "NoDDC"
# === disable/enable XAA/DRI ===
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
# === misc DRI settings ===
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
    Option "DesktopSetup"               "(null)"
    Option "ScreenOverlap"              "0"
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
# === OpenGL specific profiles/settings ===
    Option "Capabilities"               "0x00000000"
    Option "CapabilitiesEx"             "0x00000000"
# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
    Option "OpenGLOverlay"              "off"
# === Center Mode (Laptops only) ===
    Option "CenterMode"                 "off"
# === Pseudo Color Visuals (8-bit visuals) ===
    Option "PseudoColorVisuals"         "off"
# === QBS Management ===
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
# === FSAA Management ===
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=5964
    Screen 0
EndSection
Comment 1 Beuss 2006-04-09 02:42:02 UTC
Same problem here on a 2.6.16-r1 and ati-drivers 8.23.7 (RADEON MOBILITY 9600)

entry in /var/log/messages :

Apr  9 11:19:07 localhost kernel BUG at arch/i386/mm/pageattr.c:152!
Apr  9 11:19:07 localhost invalid opcode: 0000 [#1]
Apr  9 11:19:07 localhost PREEMPT
Apr  9 11:19:07 localhost Modules linked in: ieee80211_crypt_wep fglrx ipw2200 i
eee80211 ieee80211_crypt ibm_acpi
Apr  9 11:19:07 localhost CPU:    0
Apr  9 11:19:07 localhost EIP:    0060:[<c010f7fd>]    Tainted: PF     VLI
Apr  9 11:19:07 localhost EFLAGS: 00010082   (2.6.16-gentoo-r1_20060404_1-gcc4.1
 #5)
Apr  9 11:19:07 localhost EIP is at change_page_attr+0x160/0x287
Apr  9 11:19:07 localhost eax: 1d4001e3   ebx: c1007ee0   ecx: dd6c0000   edx: c
03f7dd4
Apr  9 11:19:07 localhost esi: e2780000   edi: 1d6c0000   ebp: 00000000   esp: d
ef7de80
Apr  9 11:19:07 localhost ds: 007b   es: 007b   ss: 0068
Apr  9 11:19:07 localhost Process X (pid: 12762, threadinfo=def7d000 task=dec515
80)
Apr  9 11:19:07 localhost Stack: <0>00000040 00000282 dd6c0000 c03f7dd4 00000163
 c010f6e2 00000296 ded9f240
Apr  9 11:19:07 localhost e2780000 e25acb60 00000000 c010f279 c13ad800 00000041
00000163 00000006
Apr  9 11:19:07 localhost 00000000 e2544ee7 e2780000 c13ad800 00000040 00000163
e25acb60 00000000
Apr  9 11:19:07 localhost Call Trace:
Apr  9 11:19:07 localhost [<c010f6e2>] change_page_attr+0x45/0x287
Apr  9 11:19:07 localhost [<c010f279>] iounmap+0xb1/0xde
Apr  9 11:19:07 localhost [<e2544ee7>] agp_generic_free_gatt_table+0x63/0xba [fg
lrx]
Apr  9 11:19:07 localhost [<e2544478>] __fgl_agp_cleanup+0x16/0x55 [fglrx]
Apr  9 11:19:07 localhost [<e2544441>] agp_power+0x0/0x21 [fglrx]
Apr  9 11:19:07 localhost [<e254a88d>] __ke_agp_uninit+0xe/0x24 [fglrx]
Apr  9 11:19:07 localhost [<e2554f95>] _firegl_release_agp+0x15/0x140 [fglrx]
Apr  9 11:19:07 localhost [<e25577d5>] firegl_takedown+0x335/0xc40 [fglrx]
Apr  9 11:19:07 localhost [<e2556b2f>] firegl_release+0x12f/0x190 [fglrx]
Apr  9 11:19:07 localhost [<c0147b9a>] __fput+0x82/0x141
Apr  9 11:19:07 localhost [<c0145725>] filp_close+0x4e/0x57
Apr  9 11:19:07 localhost [<c014686f>] sys_close+0x69/0x96
Apr  9 11:19:07 localhost [<c010255b>] sysenter_past_esp+0x54/0x75
Apr  9 11:19:07 localhost Code: c6 00 10 00 00 eb cd 8b 03 89 da f6 c4 40 74 03
8b 53 0c ff 42 04 eb 1b 84 c0 78 0f 8b 44 24 0c 0b 7c 24 10 89 38 ff 4b 04 eb 08
 <0f> 0b 98 00 ae e3 32 c0 8b 03 f6 c4 04 0f 85 fe 00 00 00 8b 03
Apr  9 11:19:07 localhost <6>note: X[12762] exited with preempt_count 2
Apr  9 11:19:07 localhost scheduling while atomic: X/0x00000002/12762
Apr  9 11:19:07 localhost [<c030d871>] schedule+0x43/0x521
Apr  9 11:19:07 localhost [<c01440d5>] kfree+0x2e/0x52
Apr  9 11:19:07 localhost [<c01d0b96>] kobject_put+0x16/0x19
Apr  9 11:19:07 localhost [<c01d0c3e>] kobject_release+0x0/0xa
Apr  9 11:19:07 localhost [<c01d0c27>] kobject_cleanup+0x4d/0x64
Apr  9 11:19:07 localhost [<c0122dff>] flush_cpu_workqueue+0x87/0xbd
Apr  9 11:19:07 localhost [<c01e7743>] vcs_remove_devfs+0x33/0x38
Apr  9 11:19:07 localhost [<c01257b7>] autoremove_wake_function+0x0/0x3a
Apr  9 11:19:07 localhost [<c01e21c4>] release_dev+0x4a7/0x65b
Apr  9 11:19:07 localhost [<c01440d5>] kfree+0x2e/0x52
Apr  9 11:19:07 localhost [<c02cb4b5>] sk_free+0x96/0xd9
Apr  9 11:19:07 localhost [<c0309e7b>] unix_release_sock+0x1d6/0x1ef
Apr  9 11:19:07 localhost [<c0147b6f>] __fput+0x57/0x141
Apr  9 11:19:07 localhost [<c01e2386>] tty_release+0xe/0x16
Apr  9 11:19:07 localhost [<c0147b9a>] __fput+0x82/0x141
Apr  9 11:19:07 localhost [<c0145725>] filp_close+0x4e/0x57
Apr  9 11:19:07 localhost [<c0117720>] put_files_struct+0x61/0xa1
Apr  9 11:19:07 localhost [<c0118a2a>] do_exit+0x1ae/0x703
Apr  9 11:19:07 localhost [<c0103813>] do_trap+0x0/0xc6
Apr  9 11:19:07 localhost [<c0103f79>] do_invalid_op+0x0/0x9e
Apr  9 11:19:07 localhost [<c010400b>] do_invalid_op+0x92/0x9e
Apr  9 11:19:07 localhost [<c010f7fd>] change_page_attr+0x160/0x287
Apr  9 11:19:07 localhost [<c011a0e8>] current_fs_time+0x3a/0x46
Apr  9 11:19:07 localhost [<c0130684>] __generic_file_aio_write_nolock+0x3b5/0x4                                                                                                                   01
Apr  9 11:19:07 localhost [<c010304b>] error_code+0x4f/0x54
Apr  9 11:19:07 localhost [<c030007b>] inet_del_ifa+0x141/0x1d0
Apr  9 11:19:07 localhost [<c010f7fd>] change_page_attr+0x160/0x287
Apr  9 11:19:07 localhost [<c010f6e2>] change_page_attr+0x45/0x287
Apr  9 11:19:07 localhost [<c010f279>] iounmap+0xb1/0xde
Apr  9 11:19:07 localhost [<e2544ee7>] agp_generic_free_gatt_table+0x63/0xba [fg                                                                                                                   lrx]
Apr  9 11:19:07 localhost [<e2544478>] __fgl_agp_cleanup+0x16/0x55 [fglrx]
Apr  9 11:19:07 localhost [<e2544441>] agp_power+0x0/0x21 [fglrx]
Apr  9 11:19:07 localhost [<e254a88d>] __ke_agp_uninit+0xe/0x24 [fglrx]
Apr  9 11:19:07 localhost [<e2554f95>] _firegl_release_agp+0x15/0x140 [fglrx]
Apr  9 11:19:07 localhost [<e25577d5>] firegl_takedown+0x335/0xc40 [fglrx]
Apr  9 11:19:07 localhost [<e2556b2f>] firegl_release+0x12f/0x190 [fglrx]
Apr  9 11:19:07 localhost [<c0147b9a>] __fput+0x82/0x141
Apr  9 11:19:07 localhost [<c0145725>] filp_close+0x4e/0x57
Apr  9 11:19:07 localhost [<c014686f>] sys_close+0x69/0x96
Apr  9 11:19:07 localhost [<c010255b>] sysenter_past_esp+0x54/0x75

emerge --info :
Portage 2.1_pre7-r4 (default-linux/x86/2005.1, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo-r1_20060404_1-gcc4.1 i686)
=================================================================
System uname: 2.6.16-gentoo-r1_20060404_1-gcc4.1 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
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-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="-O2 -mtune=pentium-m -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium-m -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo"
LANG="fr_FR"
LC_ALL="fr_FR"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts bzip2 cdr crypt cups dri dvd eds foomaticdb fortran ftp gdbm gif glibc-omitfp gpm hal imlib isdnlog java jpeg kde kdeenablefinal libg++ libwww mad mikmod mmx motif mp3 mpeg msn ncurses nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl php png pppd python qt quicktime readline samba sdl sockets spell sse ssl tcpd truetype truetype-fonts type1-fonts usb userlocales vorbis wifi xcomposite xml2 xosd xv zlib elibc_glibc input_devices_keyboard input_devices_synaptics input_devices_mouse kernel_linux linguas_fr userland_GNU video_cards_fglrx"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTDIR_OVERLAY

We're not alone, there's a thread on gentoo forum : http://forums.gentoo.org//viewtopic-t-439587.html
IMHO, this bug should be marked as critical since it prevents any logout from graphical environment (X freeze, it isn't possible to access to VT, the only way to have a clean shutdown is ssh login or, when you're lucky, Ctrl+Alt+Del)
Comment 2 Carlos Silva (RETIRED) gentoo-dev 2006-04-10 04:28:13 UTC
mind trying to reproduce the problem without the ati driver (fglrx) loaded?
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2006-04-10 07:53:08 UTC
This is a fglrx bug
Comment 4 Beuss 2006-04-10 11:11:38 UTC
(In reply to comment #2)
> mind trying to reproduce the problem without the ati driver (fglrx) loaded?
> 

All works fine with MESA driver
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 14:35:22 UTC
Reopen if you can reproduce with up-to-date ati-drivers.