Skip to content

Instantly share code, notes, and snippets.

@Mel34
Created September 1, 2019 16:28
Show Gist options
  • Save Mel34/369721185b23727be193459090044e98 to your computer and use it in GitHub Desktop.
Save Mel34/369721185b23727be193459090044e98 to your computer and use it in GitHub Desktop.
~ ▶ coredumpctl gdb sway
PID: 21867 (sway)
UID: 1000 (anon)
GID: 1000 (anon)
Signal: 11 (SEGV)
Timestamp: Sun 2019-09-01 18:22:59 CEST (4min 20s ago)
Command Line: sway -d
Executable: /usr/local/bin/sway
Control Group: /user.slice/user-1000.slice/session-7.scope
Unit: session-7.scope
Slice: user-1000.slice
Session: 7
Owner UID: 1000 (anon)
Boot ID: 301e3816483a47188d32e1d3cbbca8da
Machine ID: 82fa93ed44924e66a827ceea3e09c7e2
Hostname: loonix
Storage: /var/lib/systemd/coredump/core.sway.1000.301e3816483a47188d32e1d3cbbca8da.21867.1567354979000000.lz4
Message: Process 21867 (sway) of user 1000 dumped core.
Stack trace of thread 21867:
#0 0x00007f2299b2a1c3 wl_list_insert (libwayland-server.so.0)
#1 0x000055859586fc28 wl_signal_add (sway)
#2 0x0000558595870d83 handle_map (sway)
#3 0x00007f2299ae434e wlr_signal_emit_safe (libwlroots.so.3)
#4 0x00007f2299ac947a handle_xdg_surface_commit (libwlroots.so.3)
#5 0x00007f2299adfd8a surface_commit_pending (libwlroots.so.3)
#6 0x00007f2299ae0088 surface_commit (libwlroots.so.3)
#7 0x00007f2298dce6d0 ffi_call_unix64 (libffi.so.6)
#8 0x00007f2298dce0a0 ffi_call (libffi.so.6)
#9 0x00007f2299b2982f n/a (libwayland-server.so.0)
#10 0x00007f2299b26193 n/a (libwayland-server.so.0)
#11 0x00007f2299b277f2 wl_event_loop_dispatch (libwayland-server.so.0)
#12 0x00007f2299b2639c wl_display_run (libwayland-server.so.0)
#13 0x0000558595864cc7 server_run (sway)
#14 0x0000558595864313 main (sway)
#15 0x00007f2299860ee3 __libc_start_main (libc.so.6)
#16 0x000055859585604e _start (sway)
Stack trace of thread 21871:
#0 0x00007f2299828415 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f229761925c n/a (radeonsi_dri.so)
#2 0x00007f2297618e58 n/a (radeonsi_dri.so)
#3 0x00007f229982257f start_thread (libpthread.so.0)
#4 0x00007f22999360e3 __clone (libc.so.6)
Stack trace of thread 21874:
#0 0x00007f2299828415 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f229761925c n/a (radeonsi_dri.so)
#2 0x00007f2297618e58 n/a (radeonsi_dri.so)
#3 0x00007f229982257f start_thread (libpthread.so.0)
#4 0x00007f22999360e3 __clone (libc.so.6)
Stack trace of thread 21873:
#0 0x00007f2299828415 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f229761925c n/a (radeonsi_dri.so)
#2 0x00007f2297618e58 n/a (radeonsi_dri.so)
#3 0x00007f229982257f start_thread (libpthread.so.0)
#4 0x00007f22999360e3 __clone (libc.so.6)
Stack trace of thread 21875:
#0 0x00007f2299828415 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f229761925c n/a (radeonsi_dri.so)
#2 0x00007f2297618e58 n/a (radeonsi_dri.so)
#3 0x00007f229982257f start_thread (libpthread.so.0)
#4 0x00007f22999360e3 __clone (libc.so.6)
Stack trace of thread 21870:
#0 0x00007f2299828415 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f229761925c n/a (radeonsi_dri.so)
#2 0x00007f2297618e58 n/a (radeonsi_dri.so)
#3 0x00007f229982257f start_thread (libpthread.so.0)
#4 0x00007f22999360e3 __clone (libc.so.6)
Stack trace of thread 21872:
#0 0x00007f2299828415 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f229761925c n/a (radeonsi_dri.so)
#2 0x00007f2297618e58 n/a (radeonsi_dri.so)
#3 0x00007f229982257f start_thread (libpthread.so.0)
#4 0x00007f22999360e3 __clone (libc.so.6)
Stack trace of thread 21869:
#0 0x00007f2299828415 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f229761925c n/a (radeonsi_dri.so)
#2 0x00007f2297618e58 n/a (radeonsi_dri.so)
#3 0x00007f229982257f start_thread (libpthread.so.0)
#4 0x00007f22999360e3 __clone (libc.so.6)
Stack trace of thread 21876:
#0 0x00007f2299828415 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f229761925c n/a (radeonsi_dri.so)
#2 0x00007f2297618e58 n/a (radeonsi_dri.so)
#3 0x00007f229982257f start_thread (libpthread.so.0)
#4 0x00007f22999360e3 __clone (libc.so.6)
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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 "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/sway...
[New LWP 21867]
[New LWP 21871]
[New LWP 21874]
[New LWP 21873]
[New LWP 21875]
[New LWP 21870]
[New LWP 21872]
[New LWP 21869]
[New LWP 21876]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `sway -d'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f2299b2a1c3 in wl_list_insert () from /usr/lib/libwayland-server.so.0
[Current thread is 1 (Thread 0x7f229836e0c0 (LWP 21867))]
(gdb) bt full
#0 0x00007f2299b2a1c3 in wl_list_insert () at /usr/lib/libwayland-server.so.0
#1 0x000055859586fc28 in wl_signal_add (signal=0x558596840810, listener=0x558596840a00)
at /usr/include/wayland-server-core.h:435
#2 0x0000558595870d83 in handle_map (listener=0x558596840a60, data=0x5585968405c0)
at ../sway/desktop/xdg_shell.c:447
xdg_shell_view = 0x5585968408b0
view = 0x5585968408b0
xdg_surface = 0x5585968405c0
csd = true
#3 0x00007f2299ae434e in wlr_signal_emit_safe (signal=signal@entry=0x5585968406b8, data=data@entry=0x5585968405c0)
at ../util/signal.c:29
pos = 0x558596840a60
l = 0x558596840a60
cursor = {link = {prev = 0x558596840a60, next = 0x7ffcb7c9e770}, notify = 0x7f2299ae42c0 <handle_noop>}
end = {link = {prev = 0x7ffcb7c9e750, next = 0x5585968406b8}, notify = 0x7f2299ae42c0 <handle_noop>}
#4 0x00007f2299ac947a in handle_xdg_surface_commit (wlr_surface=<optimized out>)
at ../types/xdg_shell/wlr_xdg_surface.c:360
surface = 0x5585968405c0
__PRETTY_FUNCTION__ = "handle_xdg_surface_commit"
#5 0x00007f2299adfd8a in surface_commit_pending (surface=surface@entry=0x55859683f940)
at ../types/wlr_surface.c:372
invalid_buffer = true
subsurface = 0x55859683fb28
#6 0x00007f2299ae0088 in surface_commit (client=<optimized out>, resource=<optimized out>)
at ../types/wlr_surface.c:444
surface = 0x55859683f940
subsurface = <optimized out>
#7 0x00007f2298dce6d0 in ffi_call_unix64 () at /usr/lib/libffi.so.6
#8 0x00007f2298dce0a0 in ffi_call () at /usr/lib/libffi.so.6
#9 0x00007f2299b2982f in () at /usr/lib/libwayland-server.so.0
#10 0x00007f2299b26193 in () at /usr/lib/libwayland-server.so.0
#11 0x00007f2299b277f2 in wl_event_loop_dispatch () at /usr/lib/libwayland-server.so.0
#12 0x00007f2299b2639c in wl_display_run () at /usr/lib/libwayland-server.so.0
#13 0x0000558595864cc7 in server_run (server=0x5585958cefc0 <server>) at ../sway/server.c:205
#14 0x0000558595864313 in main (argc=2, argv=0x7ffcb7c9ef28) at ../sway/main.c:400
verbose = 0
debug = 1
validate = 0
allow_unsupported_gpu = 0
long_options =
{{name = 0x5585958b4008 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x5585958b400d "config", has_arg = 1, flag = 0x0, val = 99}, {name = 0x5585958b4014 "validate", has_arg = 0, flag = 0x0, val = 67}, {name = 0x5585958b401d "debug", has_arg = 0, flag = 0x0, val = 100}, {name = 0x5585958b4023 "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x5585958b402b "verbose", has_arg = 0, flag = 0x0, val = 86}, {name = 0x5585958b4033 "get-socketpath", has_arg = 0, flag = 0x0, val = 112}, {name = 0x5585958b4042 "unsupported-gpu", has_arg = 0, flag = 0x0, val = 117}, {name = 0x5585958b4052 "my-next-gpu-wont-be-nvidia", has_arg = 0, flag = 0x0, val = 117}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
config_path = 0x0
usage = 0x5585958b3ad0 "Usage: sway [options] [command]\n\n -h, --help", ' ' <repeats 13 times>, "Show help message and quit.\n -c, --config <config> Specify a config file.\n -C, --validate Check the validity of the config file, th"...
c = -1
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment