Bug 19472 - segfault with zaphod mode in xserver-1.6-branch and ati driver
Summary: segfault with zaphod mode in xserver-1.6-branch and ati driver
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) OpenBSD
: medium major
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
Depends on:
Blocks: 13932
  Show dependency treegraph
Reported: 2009-01-08 13:18 UTC by Matthieu Herrb
Modified: 2009-09-25 14:13 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

xorg.conf (1.72 KB, text/plain)
2009-01-08 13:18 UTC, Matthieu Herrb
no flags Details
Xorg.0.log before the crash (45.45 KB, text/plain)
2009-01-08 13:24 UTC, Matthieu Herrb
no flags Details
patch against 6.12-branch (544 bytes, patch)
2009-06-18 13:44 UTC, Matthieu Herrb
no flags Details | Splinter Review

Description Matthieu Herrb 2009-01-08 13:18:11 UTC
Created attachment 21813 [details]

Trying zaphod mode in xserver-1.6-branch leads to a segfault. 


Program received signal SIGSEGV, Segmentation fault.
0x000000000042c8d6 in privateExists (privates=0x290, key=0x205dddbcc)
    at /local/xorg/xserver/dix/privates.c:79
79          return *key && *privates &&
(gdb) bt
#0  0x000000000042c8d6 in privateExists (privates=0x290, key=0x205dddbcc)
    at /local/xorg/xserver/dix/privates.c:79
#1  0x000000000042c3c3 in dixLookupPrivate (privates=0x290, key=0x205dddbcc)
    at /local/xorg/xserver/dix/privates.c:162
#2  0x00000002059a0e37 in XAAStateWrapSync (pScrn=0x206c0f000)
    at /local/xorg/xserver/hw/xfree86/xaa/xaaStateChange.c:323
#3  0x00000002092f7d08 in radeon_crtc_lock ()
   from /usr/X11R6/lib/modules/drivers/radeon_drv.so
#4  0x00000000004c894e in xf86CrtcSetModeTransform (crtc=0x20657a800, 
    mode=0x20657a8e8, rotation=1, transform=0x0, x=0, y=0)
    at /local/xorg/xserver/hw/xfree86/modes/xf86Crtc.c:273
#5  0x00000000004cd711 in xf86SetDesiredModes (scrn=0x206c0f000)
    at /local/xorg/xserver/hw/xfree86/modes/xf86Crtc.c:2452
#6  0x00000002092d9b93 in RADEONScreenInit ()
   from /usr/X11R6/lib/modules/drivers/radeon_drv.so
#7  0x000000000042bed7 in AddScreen (pfnInit=0x2092d9360 <RADEONScreenInit>, 
    argc=3, argv=0x7f7ffffecff8) at /local/xorg/xserver/dix/main.c:688
#8  0x000000000047c2a5 in InitOutput (pScreenInfo=0xa51440, argc=3, 
    at /local/xorg/xserver/hw/xfree86/common/xf86Init.c:1250
#9  0x000000000042b005 in main (argc=3, argv=0x7f7ffffecff8, 
    envp=0x7f7ffffed018) at /local/xorg/xserver/dix/main.c:309
Comment 1 Matthieu Herrb 2009-01-08 13:24:18 UTC
Created attachment 21814 [details]
Xorg.0.log before the crash
Comment 2 Keith Packard 2009-01-12 10:47:57 UTC
This looks like a Radeon driver bug where pScrn->pScreen is NULL in Zaphod mode.
Comment 3 Matthieu Herrb 2009-06-18 13:44:58 UTC
Created attachment 26931 [details] [review]
patch against 6.12-branch

Yes, that was it. Attached patch against 6.12 branch fixes it.
Comment 4 Alex Deucher 2009-09-25 14:13:11 UTC
fixed in: 718a611f3cc7f5eea95cd73a9dcc7913c922fcbc

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.