FS#43061 - [xf86-video-ati] X.org segfaults when launching Emacs with hybrid ATI/Intel GPU

Attached to Project: Arch Linux
Opened by Elias Amaral (herecomesthenoob) - Wednesday, 10 December 2014, 04:26 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 20 June 2015, 12:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I have an hybrid ATI/Intel GPU and whenever I open Emacs, X crashes.

My notebook is a Dell Inspiron 15R-5537-A10 - it has a Radeon HD 8670M GPU and Intel i7-4500U with Intel HD Graphics 4400 integrated GPU.

The hybrid GPU otherwise works, with PRIME (by setting it with xrandr and running glxinfo with or without DRI_PRIME=1). The above crash happens either if I don't configure PRIME, or if I configure it and either set or don't set DRI_PRIME. I can run any program, except Emacs. It also crashes when I run vanilla Emacs with no configurations.

A workaround is to add modprobe.blacklist=radeon to the kernel boot line, making Emacs run fine.


Additional info:

$ lspci | egrep 'VGA|Display'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M] (rev ff)

$ pacman -Qv xorg-server xf86-video-intel xf86-video-ati mesa-dri libdrm linux emacs glibc | grep -v :
xorg-server 1.16.2-1
xf86-video-intel 2.99.916-3
mesa-dri 10.3.5-1
libdrm 2.4.58-1
linux 3.17.4-1
emacs 24.4-1
glibc 2.20-4

Also this from Xorg.log (the full log is attached)

[ 78.539] (EE) Backtrace:
[ 78.539] (EE) 0: /usr/bin/Xorg.bin (xorg_backtrace+0x56) [0x593d36]
[ 78.539] (EE) 1: /usr/bin/Xorg.bin (0x400000+0x197e89) [0x597e89]
[ 78.539] (EE) 2: /usr/lib/libc.so.6 (0x7f8c6f003000+0x33b20) [0x7f8c6f036b20]
[ 78.539] (EE)
[ 78.539] (EE) Segmentation fault at address 0x0
[ 78.539] (EE)
[ 78.539] (EE) Caught signal 11 (Segmentation fault). Server aborting


Steps to reproduce:

1. Start X (in my case, LightDM launches XFCE on boot, but it happens in other DEs too)

2. Launch Emacs
   dmesg (61.8 KiB)
   Xorg.log (46.1 KiB)
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 20 June 2015, 12:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  upstream reports says it's fixed.
Comment by Elias Amaral (herecomesthenoob) - Wednesday, 10 December 2014, 09:48 GMT Comment by Elias Amaral (herecomesthenoob) - Wednesday, 10 December 2014, 10:51 GMT
By using git versions of Mesa packages, from this repository:

http://pkgbuild.com/~lcarlier

It doesn't crash anymore. More specifically those versions

pacman -Qv xf86-video-intel-git xf86-video-ati-git mesa-dri-git libdrm-git | grep -v :
xf86-video-intel-git 8630.6c2707d-1
xf86-video-ati-git 3166.c9f8f64-1
mesa-dri-git 66817.65ef78e-1
libdrm-git 5331.00847fa-1
Comment by Laurent Carlier (lordheavy) - Wednesday, 10 December 2014, 15:48 GMT
let's wait for mesa 10.4 if it fix your bug :p

Loading...