amdgpu->amdgpu (localhost) SIGSEGV in somewhere mesa
waypipe
crashes es2gears_wayland
for me when I try to run it on the same machine on amdgpu
. Running it directly works without problems.
lightly symbolized gdb backtrace
$ waypipe ssh localhost
$ gdb es2gears_wayland
Reading symbols from es2gears_wayland...
(gdb) run
Starting program: ...-mesa-demos-8.5.0/bin/es2gears_wayland
[Thread debugging using libthread_db enabled]
...
EGL_VERSION = 1.5
[New Thread 0x7fff97fff640 (LWP 472793)]
vertex shader info:
fragment shader info:
info:
Thread 1 "es2gears_waylan" received signal SIGSEGV, Segmentation fault.
wl_proxy_get_version (proxy=proxy@entry=0x0) at ../src/wayland-client.c:2212
2212 ../src/wayland-client.c: No such file or directory.
(gdb) bt
#0 wl_proxy_get_version (proxy=proxy@entry=0x0) at ../src/wayland-client.c:2212
#1 0x00007ffff7bad767 in wl_drm_create_prime_buffer (offset0=0, offset1=0, stride1=0, offset2=0, stride2=0, stride0=1216,
format=808669784, height=300, width=300, name=8, wl_drm=0x0) at src/egl/wayland/wayland-drm/wayland-drm-client-protocol.h:303
#2 create_wl_buffer (dri2_dpy=dri2_dpy@entry=0x419e00, dri2_surf=dri2_surf@entry=0x58eb10, image=<optimized out>)
at ../src/egl/drivers/dri2/platform_wayland.c:1478
#3 0x00007ffff7badf3b in dri2_wl_swap_buffers_with_damage (disp=0x419320, draw=0x58eb10, rects=0x0, n_rects=0)
at ../src/egl/drivers/dri2/platform_wayland.c:1554
#4 0x00007ffff7ba2db0 in dri2_swap_buffers (disp=0x419320, surf=0x58eb10) at ../src/egl/drivers/dri2/egl_dri2.c:2015
#5 0x00007ffff7b9b5ce in eglSwapBuffers (dpy=0x419320, surface=0x58eb10) at ../src/egl/main/eglapi.c:1363
#6 0x00000000004052c6 in draw (window=0x409260 <window>) at ../src/egl/eglut/eglut_wayland.c:240
#7 _eglutNativeEventLoop () at ../src/egl/eglut/eglut_wayland.c:268
#8 0x000000000040466b in eglutMainLoop () at ../src/egl/eglut/eglut.c:267
#9 0x00000000004024c4 in main (argc=1, argv=0x7fffffffd0d8) at ../src/egl/opengles2/es2gears.c:719
wayland-info output under waypipe ssh localhost
wayland-info
interface: 'wl_shm', version: 1, name: 1
formats (fourcc):
0x48344241 = 'AB4H'
0x48344258 = 'XB4H'
0x30334241 = 'AB30'
0x30334258 = 'XB30'
0x36314752 = 'RG16'
0x35314152 = 'RA15'
0x35315852 = 'RX15'
0x32314152 = 'RA12'
0x32315852 = 'RX12'
0x34324742 = 'BG24'
0x34324241 = 'AB24'
0x34324258 = 'XB24'
1 = 'XR24'
0 = 'AR24'
interface: 'wl_drm', version: 2, name: 2
interface: 'zwp_linux_dmabuf_v1', version: 4, name: 3
main device: 0xE280
tranche
target device: 0xE280
flags: none
formats (fourcc) and modifiers (names):
0x48344241 = 'AB4H'; 0x0000000000000000 = LINEAR
0x48344258 = 'XB4H'; 0x0000000000000000 = LINEAR
0x30335241 = 'AR30'; 0x0000000000000000 = LINEAR
0x30335258 = 'XR30'; 0x0000000000000000 = LINEAR
0x30334241 = 'AB30'; 0x0000000000000000 = LINEAR
0x30334258 = 'XB30'; 0x0000000000000000 = LINEAR
0x34325241 = 'AR24'; 0x0000000000000000 = LINEAR
0x34324241 = 'AB24'; 0x0000000000000000 = LINEAR
0x34325258 = 'XR24'; 0x0000000000000000 = LINEAR
0x34324258 = 'XB24'; 0x0000000000000000 = LINEAR
0x35315241 = 'AR15'; 0x0000000000000000 = LINEAR
0x36314752 = 'RG16'; 0x0000000000000000 = LINEAR
0x20203852 = 'R8 '; 0x0000000000000000 = LINEAR
0x20363152 = 'R16 '; 0x0000000000000000 = LINEAR
0x38385247 = 'GR88'; 0x0000000000000000 = LINEAR
0x32335247 = 'GR32'; 0x0000000000000000 = LINEAR
interface: 'wl_compositor', version: 4, name: 4
interface: 'wl_subcompositor', version: 1, name: 5
interface: 'wl_data_device_manager', version: 3, name: 6
interface: 'zwlr_gamma_control_manager_v1', version: 1, name: 7
interface: 'zxdg_output_manager_v1', version: 3, name: 8
xdg_output_v1
output: 43
name: 'DP-3'
description: 'Dell Inc. DELL S2817Q J42MC66D085M (DP-3)'
logical_x: 0, logical_y: 0
logical_width: 1920, logical_height: 1080
interface: 'org_kde_kwin_idle', version: 1, name: 9
interface: 'zwp_idle_inhibit_manager_v1', version: 1, name: 10
interface: 'zwlr_layer_shell_v1', version: 4, name: 11
interface: 'xdg_wm_base', version: 2, name: 12
interface: 'zwp_tablet_manager_v2', version: 1, name: 13
interface: 'org_kde_kwin_server_decoration_manager', version: 1, name: 14
interface: 'zxdg_decoration_manager_v1', version: 1, name: 15
interface: 'zwp_relative_pointer_manager_v1', version: 1, name: 16
interface: 'zwp_pointer_constraints_v1', version: 1, name: 17
interface: 'wp_presentation', version: 1, name: 18
presentation clock id: 1 (CLOCK_MONOTONIC)
interface: 'zwlr_output_manager_v1', version: 2, name: 19
interface: 'zwlr_output_power_manager_v1', version: 1, name: 20
interface: 'zwp_input_method_manager_v2', version: 1, name: 21
interface: 'zwp_text_input_manager_v3', version: 1, name: 22
interface: 'zwlr_foreign_toplevel_manager_v1', version: 3, name: 23
interface: 'wp_drm_lease_device_v1', version: 1, name: 24
interface: 'zwlr_export_dmabuf_manager_v1', version: 1, name: 25
interface: 'zwlr_screencopy_manager_v1', version: 3, name: 26
interface: 'zwlr_data_control_manager_v1', version: 2, name: 27
interface: 'zwp_primary_selection_device_manager_v1', version: 1, name: 28
interface: 'wp_viewporter', version: 1, name: 29
interface: 'zxdg_exporter_v1', version: 1, name: 30
interface: 'zxdg_importer_v1', version: 1, name: 31
interface: 'zxdg_exporter_v2', version: 1, name: 32
interface: 'zxdg_importer_v2', version: 1, name: 33
interface: 'xdg_activation_v1', version: 1, name: 34
interface: 'zwp_virtual_keyboard_manager_v1', version: 1, name: 35
interface: 'zwlr_virtual_pointer_manager_v1', version: 2, name: 36
interface: 'zwlr_input_inhibit_manager_v1', version: 1, name: 37
interface: 'zwp_keyboard_shortcuts_inhibit_manager_v1', version: 1, name: 38
interface: 'wl_seat', version: 7, name: 39
name: seat0
capabilities: pointer keyboard
keyboard repeat rate: 50
keyboard repeat delay: 200
interface: 'zwp_pointer_gestures_v1', version: 3, name: 40
interface: 'wl_output', version: 4, name: 43
name: DP-3
description: Dell Inc. DELL S2817Q J42MC66D085M (DP-3)
x: 0, y: 0, scale: 2,
physical_width: 620 mm, physical_height: 340 mm,
make: 'Dell Inc.', model: 'DELL S2817Q',
subpixel_orientation: unknown, output_transform: normal,
mode:
width: 3840 px, height: 2160 px, refresh: 59.997 Hz,
flags: current
lspci -k
$ lspci -k
...
09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa XT [Radeon PRO WX 2100]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device 0b0c
Kernel driver in use: amdgpu
Kernel modules: amdgpu
WAYLAND_DEBUG=1 es2gears_wayland output
$ WAYLAND_DEBUG=1 es2gears_wayland
[ 585779.371] -> wl_display@1.get_registry(new id wl_registry@2)
[ 585779.384] -> wl_display@1.sync(new id wl_callback@3)
[ 585805.059] wl_display@1.delete_id(3)
[ 585805.071] wl_registry@2.global(1, "wl_shm", 1)
[ 585805.077] wl_registry@2.global(2, "wl_drm", 2)
[ 585805.078] wl_registry@2.global(3, "zwp_linux_dmabuf_v1", 4)
[ 585805.079] wl_registry@2.global(4, "wl_compositor", 4)
[ 585805.081] -> wl_registry@2.bind(4, "wl_compositor", 1, new id [unknown]@4)
[ 585805.086] wl_registry@2.global(5, "wl_subcompositor", 1)
[ 585805.088] wl_registry@2.global(6, "wl_data_device_manager", 3)
[ 585805.090] wl_registry@2.global(7, "zwlr_gamma_control_manager_v1", 1)
[ 585805.092] wl_registry@2.global(8, "zxdg_output_manager_v1", 3)
[ 585805.093] wl_registry@2.global(9, "org_kde_kwin_idle", 1)
[ 585805.096] wl_registry@2.global(10, "zwp_idle_inhibit_manager_v1", 1)
[ 585805.097] wl_registry@2.global(11, "zwlr_layer_shell_v1", 4)
[ 585805.099] wl_registry@2.global(12, "xdg_wm_base", 2)
[ 585805.100] -> wl_registry@2.bind(12, "xdg_wm_base", 1, new id [unknown]@5)
[ 585805.104] wl_registry@2.global(13, "zwp_tablet_manager_v2", 1)
[ 585805.105] wl_registry@2.global(14, "org_kde_kwin_server_decoration_manager", 1)
[ 585805.108] wl_registry@2.global(15, "zxdg_decoration_manager_v1", 1)
[ 585805.110] wl_registry@2.global(16, "zwp_relative_pointer_manager_v1", 1)
[ 585805.113] wl_registry@2.global(17, "zwp_pointer_constraints_v1", 1)
[ 585805.114] wl_registry@2.global(18, "wp_presentation", 1)
[ 585805.117] wl_registry@2.global(19, "zwlr_output_manager_v1", 2)
[ 585805.119] wl_registry@2.global(20, "zwlr_output_power_manager_v1", 1)
[ 585805.122] wl_registry@2.global(21, "zwp_input_method_manager_v2", 1)
[ 585805.125] wl_registry@2.global(22, "zwp_text_input_manager_v3", 1)
[ 585805.128] wl_registry@2.global(23, "zwlr_foreign_toplevel_manager_v1", 3)
[ 585805.130] wl_registry@2.global(24, "wp_drm_lease_device_v1", 1)
[ 585805.132] wl_registry@2.global(25, "zwlr_export_dmabuf_manager_v1", 1)
[ 585805.135] wl_registry@2.global(26, "zwlr_screencopy_manager_v1", 3)
[ 585805.137] wl_registry@2.global(27, "zwlr_data_control_manager_v1", 2)
[ 585805.139] wl_registry@2.global(28, "zwp_primary_selection_device_manager_v1", 1)
[ 585805.141] wl_registry@2.global(29, "wp_viewporter", 1)
[ 585805.143] wl_registry@2.global(30, "zxdg_exporter_v1", 1)
[ 585805.144] wl_registry@2.global(31, "zxdg_importer_v1", 1)
[ 585805.146] wl_registry@2.global(32, "zxdg_exporter_v2", 1)
[ 585805.148] wl_registry@2.global(33, "zxdg_importer_v2", 1)
[ 585805.150] wl_registry@2.global(34, "xdg_activation_v1", 1)
[ 585805.152] wl_registry@2.global(35, "zwp_virtual_keyboard_manager_v1", 1)
[ 585805.154] wl_registry@2.global(36, "zwlr_virtual_pointer_manager_v1", 2)
[ 585805.156] wl_registry@2.global(37, "zwlr_input_inhibit_manager_v1", 1)
[ 585805.157] wl_registry@2.global(38, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[ 585805.160] wl_registry@2.global(39, "wl_seat", 7)
[ 585805.162] wl_registry@2.global(40, "zwp_pointer_gestures_v1", 3)
[ 585805.164] wl_registry@2.global(43, "wl_output", 4)
[ 585805.166] wl_callback@3.done(57801)
[ 585805.980] -> wl_display@1.get_registry(new id wl_registry@3)
[ 585805.985] -> wl_display@1.sync(new id wl_callback@6)
[ 585806.252] wl_display@1.delete_id(6)
[ 585806.261] wl_registry@3.global(1, "wl_shm", 1)
[ 585806.264] wl_registry@3.global(2, "wl_drm", 2)
[ 585806.266] wl_registry@3.global(3, "zwp_linux_dmabuf_v1", 4)
[ 585806.269] -> wl_registry@3.bind(3, "zwp_linux_dmabuf_v1", 4, new id [unknown]@7)
[ 585806.273] wl_registry@3.global(4, "wl_compositor", 4)
[ 585806.275] wl_registry@3.global(5, "wl_subcompositor", 1)
[ 585806.276] wl_registry@3.global(6, "wl_data_device_manager", 3)
[ 585806.278] wl_registry@3.global(7, "zwlr_gamma_control_manager_v1", 1)
[ 585806.280] wl_registry@3.global(8, "zxdg_output_manager_v1", 3)
[ 585806.282] wl_registry@3.global(9, "org_kde_kwin_idle", 1)
[ 585806.284] wl_registry@3.global(10, "zwp_idle_inhibit_manager_v1", 1)
[ 585806.286] wl_registry@3.global(11, "zwlr_layer_shell_v1", 4)
[ 585806.288] wl_registry@3.global(12, "xdg_wm_base", 2)
[ 585806.289] wl_registry@3.global(13, "zwp_tablet_manager_v2", 1)
[ 585806.291] wl_registry@3.global(14, "org_kde_kwin_server_decoration_manager", 1)
[ 585806.293] wl_registry@3.global(15, "zxdg_decoration_manager_v1", 1)
[ 585806.295] wl_registry@3.global(16, "zwp_relative_pointer_manager_v1", 1)
[ 585806.296] wl_registry@3.global(17, "zwp_pointer_constraints_v1", 1)
[ 585806.298] wl_registry@3.global(18, "wp_presentation", 1)
[ 585806.300] wl_registry@3.global(19, "zwlr_output_manager_v1", 2)
[ 585806.302] wl_registry@3.global(20, "zwlr_output_power_manager_v1", 1)
[ 585806.303] wl_registry@3.global(21, "zwp_input_method_manager_v2", 1)
[ 585806.306] wl_registry@3.global(22, "zwp_text_input_manager_v3", 1)
[ 585806.307] wl_registry@3.global(23, "zwlr_foreign_toplevel_manager_v1", 3)
[ 585806.309] wl_registry@3.global(24, "wp_drm_lease_device_v1", 1)
[ 585806.311] wl_registry@3.global(25, "zwlr_export_dmabuf_manager_v1", 1)
[ 585806.313] wl_registry@3.global(26, "zwlr_screencopy_manager_v1", 3)
[ 585806.316] wl_registry@3.global(27, "zwlr_data_control_manager_v1", 2)
[ 585806.318] wl_registry@3.global(28, "zwp_primary_selection_device_manager_v1", 1)
[ 585806.319] wl_registry@3.global(29, "wp_viewporter", 1)
[ 585806.321] wl_registry@3.global(30, "zxdg_exporter_v1", 1)
[ 585806.323] wl_registry@3.global(31, "zxdg_importer_v1", 1)
[ 585806.325] wl_registry@3.global(32, "zxdg_exporter_v2", 1)
[ 585806.326] wl_registry@3.global(33, "zxdg_importer_v2", 1)
[ 585806.328] wl_registry@3.global(34, "xdg_activation_v1", 1)
[ 585806.330] wl_registry@3.global(35, "zwp_virtual_keyboard_manager_v1", 1)
[ 585806.331] wl_registry@3.global(36, "zwlr_virtual_pointer_manager_v1", 2)
[ 585806.333] wl_registry@3.global(37, "zwlr_input_inhibit_manager_v1", 1)
[ 585806.335] wl_registry@3.global(38, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[ 585806.337] wl_registry@3.global(39, "wl_seat", 7)
[ 585806.339] wl_registry@3.global(40, "zwp_pointer_gestures_v1", 3)
[ 585806.341] wl_registry@3.global(43, "wl_output", 4)
[ 585806.343] wl_callback@6.done(57801)
[ 585806.345] -> zwp_linux_dmabuf_v1@7.get_default_feedback(new id zwp_linux_dmabuf_feedback_v1@6)
[ 585806.348] -> wl_display@1.sync(new id wl_callback@8)
[ 585806.504] wl_display@1.delete_id(8)
[ 585806.507] zwp_linux_dmabuf_feedback_v1@6.main_device(array[8])
[ 585807.073] zwp_linux_dmabuf_feedback_v1@6.format_table(fd 4, 1968)
[ 585807.080] zwp_linux_dmabuf_feedback_v1@6.tranche_formats(array[32])
[ 585807.083] zwp_linux_dmabuf_feedback_v1@6.tranche_target_device(array[8])
[ 585807.085] zwp_linux_dmabuf_feedback_v1@6.tranche_flags(0)
[ 585807.087] zwp_linux_dmabuf_feedback_v1@6.tranche_done()
[ 585807.088] zwp_linux_dmabuf_feedback_v1@6.done()
[ 585807.089] wl_callback@8.done(57801)
[ 585807.091] -> zwp_linux_dmabuf_feedback_v1@6.destroy()
EGL_VERSION = 1.5
[ 585821.356] -> wl_compositor@4.create_surface(new id wl_surface@8)
[ 585821.366] -> xdg_wm_base@5.get_xdg_surface(new id xdg_surface@9, wl_surface@8)
[ 585821.369] -> xdg_surface@9.get_toplevel(new id xdg_toplevel@10)
[ 585821.371] -> xdg_toplevel@10.set_title("es2gears")
[ 585821.374] -> xdg_toplevel@10.set_app_id("es2gears")
[ 585821.376] -> wl_surface@8.commit()
[ 585821.383] -> zwp_linux_dmabuf_v1@7.get_surface_feedback(new id zwp_linux_dmabuf_feedback_v1@11, wl_surface@8)
[ 585821.387] -> wl_display@1.sync(new id wl_callback@12)
[ 585821.603] wl_display@1.delete_id(6)
[ 585821.611] wl_display@1.delete_id(12)
[ 585821.613] wl_callback@12.done(57803)
[ 585822.518] zwp_linux_dmabuf_feedback_v1@11.main_device(array[8])
[ 585822.521] zwp_linux_dmabuf_feedback_v1@11.format_table(fd 8, 1968)
[ 585822.525] zwp_linux_dmabuf_feedback_v1@11.tranche_formats(array[32])
[ 585822.528] zwp_linux_dmabuf_feedback_v1@11.tranche_target_device(array[8])
[ 585822.530] zwp_linux_dmabuf_feedback_v1@11.tranche_flags(0)
[ 585822.531] zwp_linux_dmabuf_feedback_v1@11.tranche_done()
[ 585822.533] zwp_linux_dmabuf_feedback_v1@11.done()
vertex shader info:
fragment shader info:
info:
[ 585825.333] xdg_wm_base@5.ping(57803)
[ 585825.337] -> xdg_wm_base@5.pong(57803)
[ 585825.339] xdg_toplevel@10.configure(0, 0, array[0])
[ 585825.341] xdg_surface@9.configure(57802)
[ 585825.343] -> xdg_surface@9.ack_configure(57802)
[ 585825.551] -> wl_compositor@4.create_region(new id wl_region@12)
[ 585825.555] -> wl_region@12.add(0, 0, 300, 300)
[ 585825.558] -> wl_surface@8.set_opaque_region(wl_region@12)
[ 585825.559] -> wl_region@12.destroy()
[ 585825.565] -> wl_surface@8.frame(new id wl_callback@6)
Segmentation fault (core dumped)
waypipe
is built from 434270bd. linux-6.0.2
, mesa-22.2.1
.