[RV250] Kubuntu Lucid: Xorg gets SEGV

Bug #575140 reported by Uwe Geuder
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-radeon

In Lucid Kubuntu Xorg crashes from time to time. Before Lucid this machine had Intrepid Ubuntu and as far as I remember Xorg has not crashed for more than a year.

According to /var/log/Xorg.0.log the call stack looks like this

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x3b) [0x80a116b]
1: /usr/bin/X (0x8048000+0x6789d) [0x80af89d]
2: (vdso) (__kernel_rt_sigreturn+0x0) [0x8d0410]
3: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x766000+0xb2039) [0x818039]
4: /usr/lib/xorg/modules/libexa.so (0x14c000+0x9490) [0x155490]
5: /usr/lib/xorg/modules/libexa.so (0x14c000+0x9558) [0x155558]
6: /usr/bin/X (miCopyRegion+0x21b) [0x817598b]
7: /usr/bin/X (miDoCopy+0x44d) [0x8175ead]
8: /usr/lib/xorg/modules/libexa.so (0x14c000+0x7a4a) [0x153a4a]
9: /usr/bin/X (0x8048000+0xd9fa3) [0x8121fa3]
10: /usr/bin/X (0x8048000+0x2b1f5) [0x80731f5]
11: /usr/bin/X (0x8048000+0x2c877) [0x8074877]
12: /usr/bin/X (0x8048000+0x1ed7a) [0x8066d7a]
13: /lib/tls/i686/cmov/libc.so.6 (__libc_start_main+0xe6) [0x17fbd6]
14: /usr/bin/X (0x8048000+0x1e961) [0x8066961]
Segmentation fault at address (nil)

Caught signal 11 (Segmentation fault). Server aborting

I enabled apport, but if did never catch the Xorg SEGV (It caught other SEGVs so I don't know what I did wrong)

I built matching debug packages (the ones from the repositories cannot be used because of https://bugs.launchpad.net/bugs/562418) but still the call stackin gdb is always useless:

(gdb) bt full
#0 __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:75
No locals.
#1 0x00000000 in ?? ()
No symbol table info available.

I will run apport-collect and attach a few log files.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
DkmsStatus: Error: [Errno 2] No such file or directory
GdmLog:
 Error: command ['kdesudo', '--', 'cat', '/var/log/gdm/:0.log'] failed with exit code 1: QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
 QFileSystemWatcher: failed to add paths: /home/geuder/.config/ibus/bus
 Bus::open: Can not get ibus-daemon's address.
 IBusInputContext::createInputContext: no connection to ibus-daemon
 cat: /var/log/gdm/:0.log: No such file or directory
GdmLog1: Error: command ['kdesudo', '--', 'cat', '/var/log/gdm/:0.log.1'] failed with exit code 1: cat: /var/log/gdm/:0.log.1: No such file or directory
GdmLog2: Error: command ['kdesudo', '--', 'cat', '/var/log/gdm/:0.log.2'] failed with exit code 1: cat: /var/log/gdm/:0.log.2: No such file or directory
InstallationMedia: Kubuntu 10.04 "Lucid Lynx" - Beta i386 (20100406.1)
Lsusb:
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: IBM 23734G2
Package: xserver-xorg-video-ati 1:6.13.0-1ubuntu5
PackageArchitecture: i386
PccardctlIdent:
 Socket 0:
   no product info available
 Socket 1:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
 Socket 1:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=8567e5f2-2176-4d29-826d-7f6316bd60b2 ro quiet splash
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Tags: lucid lucid
Uname: Linux 2.6.32-21-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 06/18/2007
dmi.bios.vendor: IBM
dmi.bios.version: 1RETDRWW (3.23 )
dmi.board.name: 23734G2
dmi.board.vendor: IBM
dmi.board.version: Not Available
dmi.chassis.asset.tag: 995gz93
dmi.chassis.type: 10
dmi.chassis.vendor: IBM
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnIBM:bvr1RETDRWW(3.23):bd06/18/2007:svnIBM:pn23734G2:pvrThinkPadT40:rvnIBM:rn23734G2:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
dmi.product.name: 23734G2
dmi.product.version: ThinkPad T40
dmi.sys.vendor: IBM
glxinfo: Error: [Errno 2] No such file or directory
system:
 distro: Ubuntu
 codename: lucid
 architecture: i686
 kernel: 2.6.32-21-generic

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : BootDmesg.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : Dependencies.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : Lspci.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : PciDisplay.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : ProcModules.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : RelatedPackageVersions.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : UdevDb.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : UdevLog.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : XorgLog.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : XorgLogOld.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : Xrandr.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : setxkbmap.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : xdpyinfo.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote : xkbcomp.txt

apport information

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

Forgot to mention: I did all investigations twice. First with the default Xorg trap handlers. After that with disabled Xorg trap handlers. The stack did no look different in gdb.

(attachment 1/4, Xorg.log with trap handlers)

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

attachment 2/4, gdb session with trap handlers

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

attachment 3/4 Xorg.log without trap handlers

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

attachment 4/4 gdb session log without trap handlers

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

Hi Uwe,

This bug was reported against an earlier version of Ubuntu, can you
test if it still occurs on Lucid?

Please note we also provide technical support for older versions of
Ubuntu, but not in the bug tracker. Instead, to raise the issue through
normal support channels, please see:

    http://www.ubuntu.com/support

If you are the original reporter and can still reproduce the issue on
Lucid, please run the following command to refresh the report:

  apport-collect 575140

If you are not the original reporter, please file a new bug report, so
we can work with you as the original reporter instead (you can reference
bug 575140 in your report if you think it may be related):

  ubuntu-bug xorg

If by chance you can no longer reproduce the issue on Lucid or if you
feel it is no longer relevant, please mark the bug report 'Fix Released'
or 'Invalid' as appropriate, at the following URL:

  https://bugs.launchpad.net/ubuntu/+bug/575140

Changed in xserver-xorg-video-ati (Ubuntu):
status: Confirmed → Incomplete
tags: added: needs-retested-on-lucid-by-june
Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

Hi Bryce,

> [This is an automatic notification.]
>
> This bug was reported against an earlier version of Ubuntu, can you
> test if it still occurs on Lucid?

Did your script fail here? The bug has been report against a very recent
version of Lucid and I have run apport-collect as you can see from all the
attachments.

Since reporting the bug and running apport-collect only one possibly relevant
update has come (linux-kernel)

< Current Operating System: Linux geuder-t40 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686
< Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=8567e5f2-2176-4d29-826d-7f6316bd60b2 ro quiet splash
---
> Current Operating System: Linux geuder-t40 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686
> Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic root=UUID=8567e5f2-2176-4d29-826d-7f6316bd60b2 ro quiet splash

The crash still appears and the stack is still exactly the same (modulo address randomization)

I change the status back to New and remove the "needs-retested-on-lucid-by-june" tag

Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → New
tags: removed: needs-retested-on-lucid-by-june
Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

FYI: the same problem has also been observed in Arch Linux with a slightly different model of Radeon graphics adapter.
http://bbs.archlinux.org/viewtopic.php?id=95549

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

I was somehow guessing that EXA could be the culprit and tried to verify my guess by disabling EXA.

How could I do that?

Simply renaming /usr/lib/xorg/modules/libexa.so did not work, the server gets a fatal error when it cannot locate the file.

I googled around and understood that XAA is a predecessor of EXA. So I created the following conf file:

Section "Device"
        Identifier "Configured Video Device"
        Driver "ati"
        Option "AccelMethod" "XAA"
EndSection

According the log the file was read without warnings and AccelMethod XAA was selected. But the Radeon driver still decided to load libexa.so. And no surprise the crash did occur again. Is EXA hardcoded in the drivers for this card or can I disable it somehow?

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Confirmed
Bryce Harrington (bryce)
tags: added: kubuntu
Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

Hmm, my stack looks pretty much like the one in https://bugs.launchpad.net/bugs/539772. But after installing xorg-server - 2:1.7.6-2ubuntu7.1, which is supposed to fix #539772 I can still easily reproduce the crash. Either I'm seeing a different problem here or the fix does not work.

Not marking as a duplicate yet. More investigations required. This was just a quick update.

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

ooops, please ignore my previous comment. I had a package pin left over from my investigations and not all packages were updated now. So there are still chances that the correction actually works. It's too late now, I'll investigate this tomorrow.

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) wrote :

Fix to https://bugs.launchpad.net/bugs/539772 solves this problem. Report marked as duplicate of #539772

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.