<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - X.org segfaults when launching Emacs with hybrid ATI/Intel GPU"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87188">87188</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>X.org segfaults when launching Emacs with hybrid ATI/Intel GPU
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/Radeon
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xorg-driver-ati@lists.x.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tolkiendili@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xorg-team@lists.x.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=110674" name="attach_110674" title="Xorg.0.log after the crash">attachment 110674</a> <a href="attachment.cgi?id=110674&action=edit" title="Xorg.0.log after the crash">[details]</a></span>
Xorg.0.log after the crash

I've made this bug report on the Arch Linux bug tracker, here:

<a href="https://bugs.archlinux.org/task/43061">https://bugs.archlinux.org/task/43061</a>

It may be of interest so I'm reproducing its description here. I'm using the
latest stable software as of 10 Dec 2014 (versions below). I'm available to do
further debugging like running X on gdb (but I'm not sure how to do this, since
X is normally run on a wrapper script) or installing different versions.

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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>