root@zcu102-zynqmp:~# gdb --args weston --backend=drm-backend.so --tty=1 GNU gdb (GDB) 8.0 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-xilinx-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from weston...Reading symbols from /usr/bin/.debug/weston...done. done. (gdb) r Starting program: /usr/bin/weston --backend=drm-backend.so --tty=1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Date: 2018-04-19 UTC [21:35:08.315] weston 2.0.0 http://wayland.freedesktop.org Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=2.0.0 Build: 1.99.94-2-g4c4f13d configure.ac: bump to version 2.0.0 for the official release (2017-02-24 16:19:03 -0800) [21:35:08.315] Command line: /usr/bin/weston --backend=drm-backend.so --tty=1 [21:35:08.315] OS: Linux, 4.14.0-72902-g92ac6a8-dirty, #11 SMP Thu Mar 1 17:23:18 PST 2018, aarch64 [21:35:08.316] Using config file './weston.ini' [21:35:08.317] Output repaint window is 7 ms maximum. [21:35:08.325] Loading module '/usr/lib/libweston-2/drm-backend.so' [21:35:08.484] initializing drm backend [21:35:08.485] using /dev/dri/card0 [21:35:08.486] Loading module '/usr/lib/libweston-2/gl-renderer.so' gbm: failed to open any driver (search paths /usr/lib/dri) gbm: Last dlopen error: /usr/lib/dri/xilinx_drm_dri.so: cannot open shared object file: No such file or directory failed to load driver: xilinx_drm gbm: failed to open any driver (search paths /usr/lib/dri) gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory failed to load driver: kms_swrast warning: File "/usr/lib/libstdc++.so.6.0.24-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /usr/lib/libstdc++.so.6.0.24-gdb.py line to your configuration file "/home/root/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/home/root/.gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the shell: info "(gdb)Auto-loading safe path" [21:35:12.830] EGL client extensions: EGL_EXT_client_extensions EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_MESA_platform_gbm [21:35:12.830] warning: EGL_EXT_buffer_age not supported. Performance could be affected. [21:35:12.830] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected. [21:35:12.830] EGL_KHR_surfaceless_context available [21:35:12.888] Failed to make EGL context current. [21:35:12.888] EGL error state: EGL_BAD_MATCH (0x3009) [21:35:12.888] EGL error state: EGL_SUCCESS (0x3000) [21:35:12.919] failed to initialize egl Program received signal SIGSEGV, Segmentation fault. 0x0000007fbf68557c in wl_list_remove (elm=elm@entry=0x42c760) at /usr/src/debug/wayland/1.13.0-r0/wayland-1.13.0/src/wayland-util.c:55 55 elm->prev->next = elm->next; (gdb) [ 163.991081] random: crng init done (gdb) bt full #0 0x0000007fbf68557c in wl_list_remove (elm=elm@entry=0x42c760) at /usr/src/debug/wayland/1.13.0-r0/wayland-1.13.0/src/wayland-util.c:55 No locals. #1 0x0000007fbf1e1344 in gl_renderer_destroy (ec=0x420330) at /usr/src/debug/weston/2.0.0-r0/weston-2.0.0/libweston/gl-renderer.c:2805 image = next = 0x42c548 #2 0x0000007fbf6ad798 in weston_compositor_shutdown (ec=ec@entry=0x420330) at /usr/src/debug/weston/2.0.0-r0/weston-2.0.0/libweston/compositor.c:5166 output = next = 0x4204d8 #3 0x0000007fbf29c098 in drm_backend_create (config=0x7ffffff728, compositor=0x420330) at /usr/src/debug/weston/2.0.0-r0/weston-2.0.0/libweston/compositor-drm.c:3369 loop = ret = path = seat_id = #4 weston_backend_init (compositor=0x420330, config_base=) at /usr/src/debug/weston/2.0.0-r0/weston-2.0.0/libweston/compositor-drm.c:3396 config = {base = {struct_version = 2, struct_size = 56}, connector = 0, tty = 1, use_pixman = false, seat_id = 0x0, gbm_format = 0x421490 "rgb565", configure_device = 0x405680 } #5 0x0000000000404870 in load_drm_backend (wc=0x41f230, argv=0x7ffffffcb8, argc=0x7ffffff80c, c=0x420330) at /usr/src/debug/weston/2.0.0-r0/weston-2.0.0/compositor/main.c:1243 config = {base = {struct_version = 2, struct_size = 56}, connector = 0, tty = 1, use_pixman = false, seat_id = 0x0, gbm_format = 0x421490 "rgb565", configure_device = 0x405680 } section = ret = 0 options = {{type = WESTON_OPTION_INTEGER, name = 0x40ad28 "connector", short_name = 0, data = 0x7ffffff868}, {type = WESTON_OPTION_STRING, name = 0x409f70 "seat", short_name = 0, data = 0x7ffffff878}, { type = WESTON_OPTION_INTEGER, name = 0x40ad08 "tty", short_name = 0, data = 0x7ffffff86c}, {type = WESTON_OPTION_BOOLEAN, name = 0x40ad38 "current-mode", short_name = 0, data = 0x7ffffff850}, {type = WESTON_OPTION_BOOLEAN, name = 0x40ac30 "use-pixman", short_name = 0, data = 0x7ffffff870}} #6 load_backend (config=0x41f230, argv=0x7ffffffcb8, argc=0x7ffffff80c, backend=, compositor=0x420330) at /usr/src/debug/weston/2.0.0-r0/weston-2.0.0/compositor/main.c:1726 No locals. #7 main (argc=, argv=0x7ffffffcb8) at /usr/src/debug/weston/2.0.0-r0/weston-2.0.0/compositor/main.c:1875 ret = 1 display = 0x41efc0 ec = 0x420330 signals = {0x41f0f0, 0x41f140, 0x41f190, 0x41f1e0} loop = i = fd = backend = 0x41ed50 "drm-backend.so" shell = 0x0 xwayland = 0 modules = 0x0 option_modules = 0x0 log = 0x0 server_socket = idle_time = -1 help = 0 socket_name = 0x0 version = 0 noconfig = 0 numlock_on = 2 config_file = 0x0 config = section = 0x7 primary_client = primary_client_destroyed = {link = {prev = 0x0, next = 0x40ad28}, notify = 0x0} seat = user_data = {config = 0x41f230, parsed_options = 0x0, pending_output_listener = {link = {prev = 0x7fbf6daa10 , next = 0x7ffffff8a0}, notify = 0x7fbf6daa10 }, drm_use_current_mode = false} require_input = 1 core_options = {{type = WESTON_OPTION_STRING, name = 0x40a090 "backend", short_name = 66, data = 0x7ffffff7b8}, {type = WESTON_OPTION_STRING, name = 0x40a098 "shell", short_name = 0, data = 0x7ffffff7c0}, { type = WESTON_OPTION_STRING, name = 0x40a0a0 "socket", short_name = 83, data = 0x7ffffff7e0}, {type = WESTON_OPTION_INTEGER, name = 0x40a0a8 "idle-time", short_name = 105, data = 0x7ffffff7a0}, { type = WESTON_OPTION_BOOLEAN, name = 0x40a0b8 "xwayland", short_name = 0, data = 0x7ffffff79c}, {type = WESTON_OPTION_STRING, name = 0x40a0c8 "modules", short_name = 0, data = 0x7ffffff7d0}, {type = WESTON_OPTION_STRING, name = 0x40a0d0 "log", short_name = 0, data = 0x7ffffff7d8}, {type = WESTON_OPTION_BOOLEAN, name = 0x40a0d8 "help", short_name = 104, data = 0x7ffffff7a4}, {type = WESTON_OPTION_BOOLEAN, name = 0x40a0e0 "version", short_name = 0, data = 0x7ffffff7a8}, {type = WESTON_OPTION_BOOLEAN, name = 0x40a0e8 "no-config", short_name = 0, data = 0x7ffffff7ac}, {type = WESTON_OPTION_STRING, name = 0x40a0f8 "config", short_name = 99, data = 0x7ffffff7e8}} (gdb)