Bug#815013: xserver-xorg-video-intel: SNA causes crash with Java application

2016-02-18 Thread Josh Lawrence
Hello,

I can confirm this bug and the fix. This also appears to the same as
the following:

#814722
#813716

Thanks for the workaround


-- 
Josh Lawrence



Bug#815013: xserver-xorg-video-intel: SNA causes crash with Java application

2016-02-17 Thread Tim
Package: xserver-xorg-video-intel
Version: 2:2.99.917+git20160127-1+b1
Severity: important


I was using Debian jessie which was working fine.  Then I upgraded to
stretch and my X sessions started crashing.  Without debugging too
much, I then upgraded to sid in the hope that the X libraries/drivers
would magically fix the problem.  Still broken.  So then I did some
investigation.

The behavior I observed on stretch and sid is that once I open a
GUI-intensive Java application (in my case Burp Proxy) a little bit of
clicking around and using scroll bars causes X to crash.  I am unable
to restart xdm after this, so I believe the video card gets stuck in a
broken state.

Upon reading a bit on the intel(4) man page, I saw the AccelMethod
options, so I added this to my xorg.conf:

Option "AccelMethod""UXA"

The Xorg.0.log file indicates that UXA is indeed being used now, and
so far I haven't had another crash.  So it appears SNA is the culprit.
The Xorg.0.log file you see below is from *after* I made this change.
I will also attach the Xorg.0.log.old file, which shows what happens
when SNA is enabled (note the crash at the end of the file).

cheers,
tim


-- Package-specific info:
X server symlink status:

lrwxrwxrwx 1 root root 13 Mar 31  2014 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 274 Feb  9 03:12 /usr/bin/Xorg

VGA-compatible devices on PCI bus:
--
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT 
Integrated Graphics Controller [8086:0a16] (rev 0b)

Xorg X server configuration file status:

-rw-r--r-- 1 root root 4955 Feb 17 10:12 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
---
Section "ServerLayout"
Identifier "X.org Configured"
Screen  0  "Screen0" 0 0
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection

Section "Module"
Load  "glx"
EndSection

Section "InputClass"
Identifier  "evdevClass"  # required
MatchIsTouchpad "yes"   # required
Driver  "evdev" # required
EndSection

Section "InputClass"
Identifier  "touchpadClass" # required
MatchIsTouchpad "yes"   # required
Driver  "synaptics" # required
Option  "MinSpeed"  "0.5"
Option  "MaxSpeed"  "1.0"
Option  "AccelFactor"   "0.075"
Option  "TapButton1""1"
Option  "TapButton2""2" # multitouch
Option  "TapButton3""3" # multitouch
Option  "VertTwoFingerScroll"   "1" # multitouch
Option  "HorizTwoFingerScroll"  "1" # multitouch
Option  "VertEdgeScroll""1"
Option  "CoastingSpeed" "8"
Option  "CornerCoasting""1"
Option  "CircularScrolling" "1"
Option  "CircScrollTrigger" "7"
Option  "EdgeMotionUseAlways"   "1"
Option  "LBCornerButton""8" # browser "back" btn
Option  "RBCornerButton""9" # browser "forward" btn
EndSection


Section "InputDevice"
Identifier  "Keyboard0"
Driver  "kbd"
EndSection


Section "InputClass"
Identifier  "Kingsis Peripherals Evoluent VerticalMouse 2"
#0x Product 0x3061
Driver  "evdev" # required

MatchUSBID  ":3061"
Option  "Protocol" "auto"
Option  "Buttons" "9"
Option  "ButtonMapping" "1 9 2 4 5 3 3 3 3"
Option  "ZAxisMapping" "4 5"
Option  "GrabDevice" "True"
EndSection



Section "InputDevice"
Identifier  "Mouse0"
Driver  "evdev"
Option  "Protocol" "auto"
#Option "Device" "/dev/input/mice"
Option  "Device" 
"/dev/input/by-path/platform-i8042-serio-1-event-mouse"
Option  "ZAxisMapping" "4 5 6 7"
Option  "Emulate3Buttons"   "true"
EndSection


Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName"Monitor Model"
EndSection

Section "Dev