Bug 94214 - Segfault with amdgpu dri3 and 2d acceleration disabled
Summary: Segfault with amdgpu dri3 and 2d acceleration disabled
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/AMDgpu (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 94224 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-19 14:34 UTC by csaba.halasz
Modified: 2019-11-19 07:19 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description csaba.halasz 2016-02-19 14:34:00 UTC
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
Comment 1 Andy Furniss 2016-02-20 00:50:42 UTC
*** Bug 94224 has been marked as a duplicate of this bug. ***
Comment 2 Martin Peres 2019-11-19 07:19:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/issues/1.


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.