X hanging | radeon:radeon_read_ring_rptr: NULL pointer dereference at (null)

Bug #496566 reported by Odin Hørthe Omdal
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Just hitting away in VIM in gnome-terminal, and on changing tab the whole computer froze. Was able to SSH into it, and everything seemed pretty normal.

Killed X and then these errors came:

[ 7811.746465] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 7811.746476] IP: [<e09410f9>] radeon_read_ring_rptr+0x29/0x30 [radeon]
[ 7811.746505] *pde = 1e274067 *pte = 00000000
[ 7811.746511] Oops: 0000 [#1] SMP
[ 7811.746516] last sysfs file: /sys/devices/pci0000:00/0000:00:1f.5/sound/card0/controlC0/uevent
[ 7811.746520] Modules linked in: nfs lockd nfs_acl auth_rpcgss sunrpc binfmt_misc autofs4 snd_intel8x0 snd_ac97_codec iptable_filter ip_tables ac97_bus snd_pcm_oss snd_mixer_oss x_tables snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd soundcore snd_page_alloc ppdev lp dell_wmi dcdbas psmouse serio_raw parport_pc shpchp parport usbhid floppy radeon ttm drm i2c_algo_bit e100 mii intel_agp agpgart
[ 7811.746582]
[ 7811.746587] Pid: 1074, comm: Xorg Not tainted (2.6.31-15-generic #50-Ubuntu) Dimension 4600i
[ 7811.746591] EIP: 0060:[<e09410f9>] EFLAGS: 00213246 CPU: 1
[ 7811.746606] EIP is at radeon_read_ring_rptr+0x29/0x30 [radeon]
[ 7811.746610] EAX: df2d7260 EBX: de331800 ECX: 00000028 EDX: 00000000
[ 7811.746613] ESI: e0c00000 EDI: de331800 EBP: de6d5d0c ESP: de6d5d0c
[ 7811.746616] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 7811.746620] Process Xorg (pid: 1074, ti=de6d4000 task=d79f25b0 task.ti=de6d4000)
[ 7811.746623] Stack:
[ 7811.746626] de6d5d14 e0941147 de6d5d24 e0941894 de331800 00000040 de6d5d48 e0943999
[ 7811.746637] <0> 00000001 e09c22ed e0984857 e09c22eb de331800 de331800 de13b000 de6d5d70
[ 7811.746649] <0> e0944c94 00000001 e09c22ed e09847b8 e09c2342 fffffff0 de331940 de331940
[ 7811.746662] Call Trace:
[ 7811.746680] [<e0941147>] ? radeon_get_ring_head+0x47/0x50 [radeon]
[ 7811.746696] [<e0941894>] ? radeon_commit_ring+0x54/0xb0 [radeon]
[ 7811.746713] [<e0943999>] ? radeon_do_cp_idle+0xc9/0x160 [radeon]
[ 7811.746732] [<e0944c94>] ? radeon_do_release+0x154/0x1d0 [radeon]
[ 7811.746751] [<e0948338>] ? radeon_driver_lastclose+0x58/0x60 [radeon]
[ 7811.746773] [<e0842250>] ? drm_lastclose+0x40/0x2c0 [drm]
[ 7811.746790] [<e0842d59>] ? drm_release+0x2e9/0x390 [drm]
[ 7811.746801] [<c01e915a>] ? __fput+0xda/0x1f0
[ 7811.746806] [<c01e9285>] ? fput+0x15/0x20
[ 7811.746811] [<c01e56a7>] ? filp_close+0x47/0x70
[ 7811.746817] [<c0146c93>] ? put_files_struct+0x63/0xb0
[ 7811.746822] [<c0146d23>] ? exit_files+0x43/0x60
[ 7811.746826] [<c0147dff>] ? do_exit+0x11f/0x2e0
[ 7811.746832] [<c01527dd>] ? dequeue_signal+0x2d/0x170
[ 7811.746848] [<e084272a>] ? drm_ioctl+0x1ea/0x360 [drm]
[ 7811.746853] [<c0147ffa>] ? do_group_exit+0x3a/0xb0
[ 7811.746858] [<c015403f>] ? get_signal_to_deliver+0x18f/0x300
[ 7811.746864] [<c010304b>] ? do_signal+0x6b/0x160
[ 7811.746870] [<c010b16a>] ? restore_i387_xstate+0xda/0x210
[ 7811.746878] [<c02c7f8f>] ? security_file_permission+0xf/0x20
[ 7811.746884] [<c05710b7>] ? unlock_kernel+0x27/0x30
[ 7811.746890] [<c01f51bb>] ? vfs_ioctl+0x7b/0x90
[ 7811.746895] [<c01f5481>] ? do_vfs_ioctl+0x71/0x310
[ 7811.746900] [<c0102771>] ? restore_sigcontext+0xc1/0xe0
[ 7811.746905] [<c010318d>] ? do_notify_resume+0x4d/0x60
[ 7811.746910] [<c0103448>] ? work_notifysig+0x13/0x1b
[ 7811.746913] Code: 5d c3 55 f6 80 1e 03 00 00 08 89 e5 75 14 8b 80 e0 00 00 00 83 e2 fc 5d 03 50 10 8b 02 c3 8d 74 26 00 8b 80 e0 00 00 00 03 50 10 <8b> 02 5d c3 8d 76 00 55 8b 50 5c 89 e5 85 d2 75 36 66 83 b8 1c
[ 7811.746985] EIP: [<e09410f9>] radeon_read_ring_rptr+0x29/0x30 [radeon] SS:ESP 0068:de6d5d0c
[ 7811.747004] CR2: 0000000000000000
[ 7811.747008] ---[ end trace 03b874e61d1748c2 ]---
[ 7811.747011] Fixing recursive fault but reboot is needed!

ProblemType: Bug
AplayDevices: aplay: device_list:223: no soundcards found...
Architecture: i386
ArecordDevices: arecord: device_list:223: no soundcards found...
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/dsp', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D1c', '/dev/snd/pcmC0D2c', '/dev/snd/pcmC0D3c', '/dev/snd/pcmC0D4p', '/dev/snd/seq', '/dev/snd/timer', '/dev/sequencer', '/dev/sequencer2'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
Date: Mon Dec 14 16:30:37 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=0d145eca-93e8-48ce-a4b8-9f78e846f168
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Dell Computer Corporation Dimension 4600i
Package: linux-image-2.6.31-15-generic 2.6.31-15.50
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-15-generic root=UUID=1e712213-35dc-4e88-8c8c-ba1555ec935c ro quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-15-generic N/A
 linux-firmware 1.25
RfKill:

SourcePackage: linux
Uname: Linux 2.6.31-15-generic i686
UserAsoundrc:
 # ALSA library configuration file

 # Include settings that are under the control of asoundconf(1).
 # (To disable these settings, comment out this line.)
 </home/odin/.asoundrc.asoundconf>
dmi.bios.date: 08/26/2004
dmi.bios.vendor: Dell Computer Corporation
dmi.bios.version: A12
dmi.board.name: 0F4491
dmi.board.vendor: Dell Computer Corp.
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Computer Corporation
dmi.modalias: dmi:bvnDellComputerCorporation:bvrA12:bd08/26/2004:svnDellComputerCorporation:pnDimension4600i:pvr:rvnDellComputerCorp.:rn0F4491:rvr:cvnDellComputerCorporation:ct6:cvr:
dmi.product.name: Dimension 4600i
dmi.sys.vendor: Dell Computer Corporation

Revision history for this message
Odin Hørthe Omdal (velmont) wrote :
Revision history for this message
Odin Hørthe Omdal (velmont) wrote :

stracing X when trying kill:

--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGTERM (Terminated) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)

stracing while trying kill -9 (killed it with D):

--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457, 0x8bf4e88) = -1 EINTR (Interrupted system call)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
ioctl(11, 0x40046457 <unfinished ...>
+++ killed by SIGKILL +++

FD 11 is:
odin@alta:~$ sudo ls -al /proc/2215/fd/11
lrwx------ 1 root root 64 2009-12-14 17:48 /proc/2215/fd/11 -> /dev/dri/card0

So, the radeon card.

Revision history for this message
Odin Hørthe Omdal (velmont) wrote :

Actually, this time we lost the picture, and dmesg says this:

[ 4088.440563] [drm] Num pipes: 2
[ 4089.149080] agpgart-intel 0000:00:00.0: AGP 3.0 bridge
[ 4089.149107] agpgart-intel 0000:00:00.0: putting AGP V3 device into 8x mode
[ 4089.149157] pci 0000:01:00.0: putting AGP V3 device into 8x mode
[ 4089.389520] [drm] Setting GART location based on new memory map
[ 4089.389529] [drm] Loading R300 Microcode
[ 4089.389575] [drm] Num pipes: 2
[ 4089.389585] [drm] writeback test succeeded in 1 usecs

Andy Whitcroft (apw)
tags: added: karmic
Revision history for this message
pivo (pivo-pobox) wrote :

Is there any workaround?

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Odin,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 496566

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Odin Hørthe Omdal (velmont) wrote : Re: [Bug 496566] Re: X hanging | radeon:radeon_read_ring_rptr: NULL pointer dereference at (null)

On Sat, Apr 24, 2010 at 5:09 PM, Jeremy Foshee
<email address hidden> wrote:
> This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu?  ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

I want to give that machine away, so I shall try to test it this
evening with Lucid. It sadly lacks internet now though, so it's a bit
hard to do it. But I'll see what I can do (maybe carry it to my office
;-) ).

--
Beste helsing,
Odin Hørthe Omdal <email address hidden>
http://velmont.no

Revision history for this message
pivo (pivo-pobox) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: ivan 1490 F.... pulseaudio
 /dev/snd/controlC0: ivan 1490 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'ICH5'/'Intel ICH5 with ALC655 at irq 17'
   Mixer name : 'Realtek ALC655 rev 0'
   Components : 'AC97a:414c4760'
   Controls : 41
   Simple ctrls : 26
Card2.Amixer.info:
 Card hw:2 'Notebook'/'Creative Labs VF0470 Live! Cam Notebook at usb-0000:00:1d.0-2, full speed'
   Mixer name : 'USB Mixer'
   Components : 'USB041e:4068'
   Controls : 0
   Simple ctrls : 0
Card2.Amixer.values:

DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=eb43fde2-221d-434f-bc69-54cae116421c
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
IwConfig:
 lo no wireless extensions.

 eth1 no wireless extensions.
MachineType: Mironix s.r.o. P4T 2400
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic root=UUID=1ac9bc4b-d078-4f64-8cde-9991fc348e5b ro quiet splash
ProcEnviron:
 LANGUAGE=sk_SK:sk:en_GB:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Regression: Yes
RelatedPackageVersions: linux-firmware 1.34
Reproducible: Yes
RfKill:

Tags: lucid graphics regression-release needs-upstream-testing
Uname: Linux 2.6.32-22-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev nopasswdlogin plugdev sambashare tape video
WifiSyslog:

dmi.bios.date: 05/15/2003
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F6
dmi.board.name: 8IPE1000
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: 1.x
dmi.chassis.type: 3
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF6:bd05/15/2003:svnMironixs.r.o.:pnP4T2400:pvrPCSoHo:rvnGigabyteTechnologyCo.,Ltd.:rn8IPE1000:rvr1.x:cvn:ct3:cvr:
dmi.product.name: P4T 2400
dmi.product.version: PC SoHo
dmi.sys.vendor: Mironix s.r.o.

tags: added: apport-collected
Revision history for this message
pivo (pivo-pobox) wrote : AlsaDevices.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : AplayDevices.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : ArecordDevices.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : BootDmesg.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : CurrentDmesg.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : Lspci.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : Lsusb.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : PciMultimedia.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : ProcInterrupts.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : ProcModules.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : UdevDb.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote : UdevLog.txt

apport information

Revision history for this message
pivo (pivo-pobox) wrote :

Yes, it's still an issue on lucid as of now. As a workaround I use fbdev, like this
$ sudo ln -s /etc/X11/xorg.conf.failsafe /etc/X11/xorg.conf

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.