<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 - Segfault with amdgpu dri3 and 2d acceleration disabled"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94214">94214</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segfault with amdgpu dri3 and 2d acceleration disabled
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </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/AMDgpu
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>csaba.halasz@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xorg-team@lists.x.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Running X with option AccelMethod "none" (possibly also option noaccel) causes
segfault if dri3 is enabled:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007fc9a1c87db8 in amdgpu_dri3_pixmap_from_fd (screen=0x561f9d7c1e40,
fd=26, width=16, height=<optimized out>,
    stride=128, depth=<optimized out>, bpp=32 ' ') at
../../src/amdgpu_dri3.c:149
#2  0x0000561f9c32d289 in dri3_pixmap_from_fd
(ppixmap=ppixmap@entry=0x7ffc1c145628, screen=<optimized out>, fd=fd@entry=26,
    width=<optimized out>, height=<optimized out>, stride=128, depth=24 '\030',
bpp=32 ' ') at ../../dri3/dri3_screen.c:73
#3  0x0000561f9c32cdfa in proc_dri3_pixmap_from_buffer (client=0x561f9dc17e50)
at ../../dri3/dri3_request.c:162
#4  0x0000561f9c1fe12e in Dispatch () at ../../dix/dispatch.c:430
#5  0x0000561f9c201ecb in dix_main (argc=5, argv=0x7ffc1c145808,
envp=<optimized out>) at ../../dix/main.c:300
#6  0x00007fc9a50baead in __libc_start_main (main=<optimized out>,
argc=<optimized out>, ubp_av=<optimized out>,
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
stack_end=0x7ffc1c1457f8) at libc-start.c:244
#7  0x0000561f9c1ec6b1 in _start ()

The offending line seems to be

if (screen->SetSharedPixmapBacking(pixmap, (void*)(intptr_t)fd))
        return pixmap;

Version info: Xorg 1.18, amdgpu git a3eac85d</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>