Bug 38792 - SEGFAULT with radeon driver
Summary: SEGFAULT with radeon driver
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.6 (2010.12)
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 00:34 UTC by rpr
Modified: 2011-07-03 07:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
/var/log/Xorg.0.log (48.78 KB, patch)
2011-06-30 00:34 UTC, rpr
no flags Details | Splinter Review
output of lspci -vv (39.73 KB, text/plain)
2011-06-30 00:35 UTC, rpr
no flags Details
output of "gdb /usr/bin/Xorg" (7.17 KB, patch)
2011-07-02 15:51 UTC, rpr
no flags Details | Splinter Review

Description rpr 2011-06-30 00:34:01 UTC
Created attachment 48578 [details] [review]
/var/log/Xorg.0.log

Xorg doesn't start with radeon driver on Ubuntu 11.04 x64 with
Linux 2.6.38-10-generic #44-Ubuntu SMP Thu Jun 2 21:32:22 UTC 2011 x86_64.

Near the end of /var/log/Xorg.0.log I found:

Backtrace:
[ 18.246] 0: /usr/bin/X (xorg_backtrace+0x26) [0x4a2656]
[ 18.246] 1: /usr/bin/X (0x400000+0x621ca) [0x4621ca]
[ 18.246] 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f13082db000+0xfc60) [0x7f13082eac60]
[ 18.246] 3: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x7f1305161000+0xd23fd) [0x7f13052333fd]
[ 18.246] 4: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x7f1305161000+0xd465f) [0x7f130523565f]
[ 18.246] 5: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x7f1305161000+0x8586e) [0x7f13051e686e]
[ 18.246] 6: /usr/bin/X (xf86SetDesiredModes+0x1e3) [0x48c7d3]
[ 18.246] 7: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x7f1305161000+0x44dd5) [0x7f13051a5dd5]
[ 18.246] 8: /usr/bin/X (AddScreen+0x1a8) [0x42e658]
[ 18.246] 9: /usr/bin/X (InitOutput+0x294) [0x470094]
[ 18.246] 10: /usr/bin/X (0x400000+0x218c3) [0x4218c3]
[ 18.246] 11: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xff) [0x7f1307224eff]
[ 18.246] 12: /usr/bin/X (0x400000+0x21629) [0x421629]
[ 18.246] Segmentation fault at address 0x1b0
[ 18.246]
Caught signal 11 (Segmentation fault). Server aborting

lspci says:
VGA compatible controller: ATI Technologies Inc M92 LP [Mobility Radeon HD 4300 Series] (prog-if 00 [VGA controller])
Comment 1 rpr 2011-06-30 00:35:22 UTC
Created attachment 48579 [details]
output of lspci -vv
Comment 2 Alex Deucher 2011-06-30 06:10:10 UTC
Is there a reason you are using UMS rather than KMS?  Can you install the xserver and driver debugging symbols and get a proper backtrace with gdb?

http://wiki.x.org/wiki/Development/Documentation/ServerDebugging
Comment 3 rpr 2011-07-02 15:50:28 UTC
(In reply to comment #2)
> Is there a reason you are using UMS rather than KMS?

On Ubuntu 10.10 x64 on the same machine I experienced the problem explained on
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/619365
As a workaround I had to disable KMS for radeon driver by running:
# echo options radeon modeset=0 > /etc/modprobe.d/radeon-kms.conf

After recent upgrade to Ubuntu 11.04 I didn't remove that setting.

Your hint was helpful: I enabled KMS and now Xorg starts fine using the radeon
driver. So, for me the problem has been solved.

If someone wants to investigate the issue with KMS disabled I'm attaching the
output of gdb.
Comment 4 rpr 2011-07-02 15:51:08 UTC
Created attachment 48696 [details] [review]
output of "gdb /usr/bin/Xorg"
Comment 5 Alex Deucher 2011-07-03 07:06:27 UTC
This was fixed in 84450ea9221f32296c1f786a6aa126a08bb9756f.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.