From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 89286] Xorg SEGFAULT on 3d/glx related application Date: Mon, 23 Feb 2015 20:03:46 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2136465443==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C41BF6E4B6 for ; Mon, 23 Feb 2015 12:03:46 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2136465443== Content-Type: multipart/alternative; boundary="1424721826.6FB0DCDa0.13945"; charset="UTF-8" --1424721826.6FB0DCDa0.13945 Date: Mon, 23 Feb 2015 20:03:46 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=89286 Bug ID: 89286 Summary: Xorg SEGFAULT on 3d/glx related application Product: Mesa Version: 10.3 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: fdo@won2.de QA Contact: dri-devel@lists.freedesktop.org Created attachment 113766 --> https://bugs.freedesktop.org/attachment.cgi?id=113766&action=edit kernel dmesg I have a debian jessie install and Xorg segfaults on any 3d/glx related application. The application works (i.e. 3D rendering works) but on process exit Xorg crashes. I'm using a custom 3D app, but this also happens with a simple "glxinfo" on exit. I have gdb'ed it for a stacktrace: #0 0x0000000000000020 in ?? () #1 0x00007ffff0b66f62 in pb_get_base_buffer (offset=0x7fffffffd83c, base_buf=0x7fffffffd840, buf=) at ../../../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:197 #2 get_radeon_bo (_buf=) at ../../../../../../../src/gallium/winsys/radeon/drm/radeon_drm_bo.c:96 #3 0x00007ffff0b674e3 in radeon_bo_get_tiling (_buf=, microtiled=0x7fffffffd908, macrotiled=0x7fffffffd90c, bankw=0x7fffffffd950, bankh=0x7fffffffd954, tile_split=0x7fffffffd95c, stencil_tile_split=0x7fffffffd960, mtilea=0x7fffffffd958, scanout=0x7fffffffd903) at ../../../../../../../src/gallium/winsys/radeon/drm/radeon_drm_bo.c:690 #4 0x00007ffff0b788f2 in r600_texture_from_handle (screen=0x5555559fa640, templ=0x7fffffffe6d0, whandle=) at ../../../../../../src/gallium/drivers/radeon/r600_texture.c:826 #5 0x00007ffff0953bcf in dri2_create_image_from_winsys (_screen=, width=1280, height=1024, format=4099, whandle=whandle@entry=0x7fffffffe760, pitch=1280, loaderPrivate=0x0) at ../../../../../../src/gallium/state_trackers/dri/dri2.c:733 #6 0x00007ffff0953df8 in dri2_create_image_from_name (_screen=, width=, height=, format=, name=, pitch=, loaderPrivate=0x0) at ../../../../../../src/gallium/state_trackers/dri/dri2.c:759 #7 0x00007fffecfa220c in ?? () from /usr/lib/x86_64-linux-gnu/libEGL.so.1 #8 0x00007fffecf968e7 in eglCreateImageKHR () from /usr/lib/x86_64-linux-gnu/libEGL.so.1 #9 0x00007ffff1d8ee14 in _glamor_egl_create_image (glamor_egl=, glamor_egl=, depth=, name=1, stride=, height=, width=) at ../../../../glamor/glamor_egl.c:137 #10 glamor_egl_create_textured_pixmap (pixmap=pixmap@entry=0x55555652a8a0, handle=handle@entry=45, stride=stride@entry=5120) at ../../../../glamor/glamor_egl.c:302 #11 0x00007ffff1d8f03d in glamor_egl_create_textured_screen (screen=screen@entry=0x5555560fcc50, handle=handle@entry=45, stride=stride@entry=5120) at ../../../../glamor/glamor_egl.c:232 #12 0x00007ffff1d8f13d in glamor_egl_create_textured_screen_ext (screen=screen@entry=0x5555560fcc50, handle=45, stride=5120, back_pixmap=back_pixmap@entry=0x0) at ../../../../glamor/glamor_egl.c:254 #13 0x00007ffff222f48c in radeon_glamor_create_screen_resources (screen=screen@entry=0x5555560fcc50) at ../../src/radeon_glamor.c:67 #14 0x00007ffff2227e0a in RADEONCreateScreenResources_KMS (pScreen=0x5555560fcc50) at ../../src/radeon_kms.c:258 #15 0x00005555556204de in xf86CrtcCreateScreenResources (screen=0x5555560fcc50) at ../../../../hw/xfree86/modes/xf86Crtc.c:709 #16 0x00005555555af456 in dix_main (argc=3, argv=0x7fffffffebf8, envp=) at ../../dix/main.c:223 #17 0x00007ffff5d15b45 in __libc_start_main (main=0x5555555998e0
, argc=3, argv=0x7fffffffebf8, init=, fini=, rtld_fini=, stack_end=0x7fffffffebe8) at libc-start.c:287 #18 0x000055555559990e in _start () It's a dual CPU Xeon E5 server with a onboard matrox card: # lspci |grep VGA 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Oland PRO [Radeon R7 240] 07:01.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 (rev 0a) I have Xorg 7.7+7, that is xserver 1.16.4, there's no old glamor package flying around (as asked on IRC). It's mesa 10.3.2-1, kernel 3.16.0-4-amd64. I had to create a xorg.conf so the driver will load/find my card. It looks like this: Section "Device" Identifier "radeon" Driver "radeon" BusID "PCI:03:00:0" EndSection -- You are receiving this mail because: You are the assignee for the bug. --1424721826.6FB0DCDa0.13945 Date: Mon, 23 Feb 2015 20:03:46 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 89286
Summary Xorg SEGFAULT on 3d/glx related application
Product Mesa
Version 10.3
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter fdo@won2.de
QA Contact dri-devel@lists.freedesktop.org

Created attachment 113766 [details]
kernel dmesg

I have a debian jessie install and Xorg segfaults on any 3d/glx related
application. The application works (i.e. 3D rendering works) but on process
exit Xorg crashes. I'm using a custom 3D app, but this also happens with a
simple "glxinfo" on exit.

I have gdb'ed it for a stacktrace:

#0  0x0000000000000020 in ?? ()
#1  0x00007ffff0b66f62 in pb_get_base_buffer (offset=0x7fffffffd83c,
base_buf=0x7fffffffd840, buf=<optimized out>) at
../../../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:197
#2  get_radeon_bo (_buf=<optimized out>) at
../../../../../../../src/gallium/winsys/radeon/drm/radeon_drm_bo.c:96
#3  0x00007ffff0b674e3 in radeon_bo_get_tiling (_buf=<optimized out>,
microtiled=0x7fffffffd908, macrotiled=0x7fffffffd90c, bankw=0x7fffffffd950,
bankh=0x7fffffffd954, tile_split=0x7fffffffd95c, 
    stencil_tile_split=0x7fffffffd960, mtilea=0x7fffffffd958,
scanout=0x7fffffffd903) at
../../../../../../../src/gallium/winsys/radeon/drm/radeon_drm_bo.c:690
#4  0x00007ffff0b788f2 in r600_texture_from_handle (screen=0x5555559fa640,
templ=0x7fffffffe6d0, whandle=<optimized out>) at
../../../../../../src/gallium/drivers/radeon/r600_texture.c:826
#5  0x00007ffff0953bcf in dri2_create_image_from_winsys (_screen=<optimized
out>, width=1280, height=1024, format=4099,
whandle=whandle@entry=0x7fffffffe760, pitch=1280, loaderPrivate=0x0)
    at ../../../../../../src/gallium/state_trackers/dri/dri2.c:733
#6  0x00007ffff0953df8 in dri2_create_image_from_name (_screen=<optimized out>,
width=<optimized out>, height=<optimized out>, format=<optimized out>,
name=<optimized out>, pitch=<optimized out>, loaderPrivate=0x0)
    at ../../../../../../src/gallium/state_trackers/dri/dri2.c:759
#7  0x00007fffecfa220c in ?? () from /usr/lib/x86_64-linux-gnu/libEGL.so.1
#8  0x00007fffecf968e7 in eglCreateImageKHR () from
/usr/lib/x86_64-linux-gnu/libEGL.so.1
#9  0x00007ffff1d8ee14 in _glamor_egl_create_image (glamor_egl=<optimized out>,
glamor_egl=<optimized out>, depth=<optimized out>, name=1, stride=<optimized
out>, height=<optimized out>, width=<optimized out>)
    at ../../../../glamor/glamor_egl.c:137
#10 glamor_egl_create_textured_pixmap (pixmap=pixmap@entry=0x55555652a8a0,
handle=handle@entry=45, stride=stride@entry=5120) at
../../../../glamor/glamor_egl.c:302
#11 0x00007ffff1d8f03d in glamor_egl_create_textured_screen
(screen=screen@entry=0x5555560fcc50, handle=handle@entry=45,
stride=stride@entry=5120) at ../../../../glamor/glamor_egl.c:232
#12 0x00007ffff1d8f13d in glamor_egl_create_textured_screen_ext
(screen=screen@entry=0x5555560fcc50, handle=45, stride=5120,
back_pixmap=back_pixmap@entry=0x0) at ../../../../glamor/glamor_egl.c:254
#13 0x00007ffff222f48c in radeon_glamor_create_screen_resources
(screen=screen@entry=0x5555560fcc50) at ../../src/radeon_glamor.c:67
#14 0x00007ffff2227e0a in RADEONCreateScreenResources_KMS
(pScreen=0x5555560fcc50) at ../../src/radeon_kms.c:258
#15 0x00005555556204de in xf86CrtcCreateScreenResources (screen=0x5555560fcc50)
at ../../../../hw/xfree86/modes/xf86Crtc.c:709
#16 0x00005555555af456 in dix_main (argc=3, argv=0x7fffffffebf8,
envp=<optimized out>) at ../../dix/main.c:223
#17 0x00007ffff5d15b45 in __libc_start_main (main=0x5555555998e0 <main>,
argc=3, argv=0x7fffffffebf8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffebe8) at libc-start.c:287
#18 0x000055555559990e in _start ()

It's a dual CPU Xeon E5 server with a onboard matrox card:
# lspci |grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Oland
PRO [Radeon R7 240]
07:01.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW
WPCM450 (rev 0a)

I have Xorg 7.7+7, that is xserver 1.16.4, there's no old glamor package flying
around (as asked on IRC). It's mesa 10.3.2-1, kernel 3.16.0-4-amd64.

I had to create a xorg.conf so the driver will load/find my card. It looks like
this:

Section "Device"
        Identifier  "radeon"
        Driver      "radeon"
        BusID       "PCI:03:00:0"
EndSection


You are receiving this mail because:
  • You are the assignee for the bug.
--1424721826.6FB0DCDa0.13945-- --===============2136465443== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============2136465443==--