Bug 99129

Summary: crash with intel-virtual-output in xf86RandR12CrtcComputeGamma()
Product: xorg Reporter: Bruno Levy <Bruno.Levy>
Component: Server/Ext/RandRAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Bruno Levy 2016-12-17 16:45:15 UTC
Experienced systematic crash with intel-virtual-output when starting some applications (e.g. emacs and all applications with 3D graphics).

distribution: Debian Stretch
xserver-xorg-core_2%3a1.19.0-2_amd64.deb
xserver-xorg-video-intel_2%3a2.99.917+git20161105-1+b1_amd64.deb
nvidia proprietary driver ver. 375.20-4

gdb reports the crash in xf86RandR12.c line 1263, in the function xf86RandR12CrtcComputeGamma(). 

If the function is commented-out, then the server no longer crashes.
Comment 1 Chris Wilson 2016-12-17 16:55:17 UTC
commit 9ac7a3370ab265d4cbdbbf3dc588af88c37048e1
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Nov 29 22:01:21 2016 +0000

    sna: Handle xf86Randr12 gamma changes in xorg-xserver-1.19
    
    commit 17213b74fd7fc4c4e2fe7a3781e7422dd482a0ab
    Author: Michel Dänzer <michel.daenzer@amd.com>
    Date:   Tue Jun 21 16:44:20 2016 +0900
    
        xfree86/modes: Remove xf86RandR12CrtcGetGamma
    
    removed the randr_crtc->palettes allocation and initialisation causing a
    later dereference of the gamma table to crash. Looks like that was just
    ABI misuse.
    
    References: https://bugs.freedesktop.org/show_bug.cgi?id=98855
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

*** This bug has been marked as a duplicate of bug 98855 ***

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.