Skip to content

Instantly share code, notes, and snippets.

@juliusHuelsmann
Created February 15, 2020 20:50
Show Gist options
  • Save juliusHuelsmann/eb544fb0dddd67b0f9e5f05474a20f92 to your computer and use it in GitHub Desktop.
Save juliusHuelsmann/eb544fb0dddd67b0f9e5f05474a20f92 to your computer and use it in GitHub Desktop.
gdb backtrace sway with debug symbols
GNU gdb (GDB) 9.1
Copyright (C) 2020 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 /mnt/data/online/repos/sway/build/sway/sway...
[New LWP 6354]
[New LWP 6357]
[New LWP 6358]
[New LWP 6359]
[New LWP 6356]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `build/sway/sway'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007fa43b628ce5 in raise () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7fa43a928dc0 (LWP 6354))]
(gdb) bt full
#0 0x00007fa43b628ce5 in raise () at /lib64/libc.so.6
#1 0x00007fa43b612857 in abort () at /lib64/libc.so.6
#2 0x00007fa43b612727 in _nl_load_domain.cold () at /lib64/libc.so.6
#3 0x00007fa43b621426 in () at /lib64/libc.so.6
#4 0x00007fa43bcae7a9 in () at /lib64/libinput.so.10
#5 0x00007fa43bcb61db in () at /lib64/libinput.so.10
#6 0x00007fa43bcb5b3f in libinput_dispatch () at /lib64/libinput.so.10
#7 0x00007fa43be60d83 in handle_libinput_readable (fd=21, mask=1, _backend=0x55d736726250) at ../subprojects/wlroots/backend/libinput/backend.c:34
backend = 0x55d736726250
event = 0x0
#8 0x00007fa43be60fb3 in backend_start (wlr_backend=0x55d736726250) at ../subprojects/wlroots/backend/libinput/backend.c:82
backend = 0x55d736726250
libinput_fd = 21
no_devs = 0x0
event_loop = 0x55d736738a00
#9 0x00007fa43be554fe in wlr_backend_start (backend=0x55d736726250) at ../subprojects/wlroots/backend/backend.c:36
#10 0x00007fa43be64ccf in multi_backend_start (wlr_backend=0x55d7367202d0) at ../subprojects/wlroots/backend/multi/backend.c:31
backend = 0x55d7367202d0
sub = 0x55d736726310
#11 0x00007fa43be554fe in wlr_backend_start (backend=0x55d7367202d0) at ../subprojects/wlroots/backend/backend.c:36
#12 0x000055d735d3316e in server_start (server=0x55d735da2100 <server>) at ../sway/server.c:198
#13 0x000055d735d327b9 in main (argc=1, argv=0x7ffc4c338eb8) at ../sway/main.c:394
verbose = 0
debug = 0
validate = 0
allow_unsupported_gpu = 0
long_options =
{{name = 0x55d735d86068 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x55d735d8606d "config", has_arg = 1, flag = 0x0, val = 99}, {name = 0x55d735d86074 "validate", has_arg = 0, flag = 0x0, val = 67}, {name = 0x55d735d8607d "debug", has_arg = 0, flag = 0x0, val = 100}, {name = 0x55d735d86083 "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x55d735d8608b "verbose", has_arg = 0, flag = 0x0, val = 86}, {name = 0x55d735d86093 "get-socketpath", has_arg = 0, flag = 0x0, val = 112}, {name = 0x55d735d860a2 "unsupported-gpu", has_arg = 0, flag = 0x0, val = 117}, {name = 0x55d735d860b2 "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 = 0x55d735d85b40 "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) quit
PID: 6354 (sway)
UID: 1000 (x)
GID: 985 (users)
Signal: 6 (ABRT)
Timestamp: Sat 2020-02-15 20:48:15 GMT (23s ago)
Command Line: build/sway/sway
Executable: /mnt/data/online/repos/sway/build/sway/sway
Control Group: /user.slice/user-1000.slice/session-2.scope
Unit: session-2.scope
Slice: user-1000.slice
Session: 2
Owner UID: 1000 (x)
Boot ID: e36eecc675ac46469d90526007e27ae7
Machine ID: d8e7c78fa709468ea189300705b31ff4
Hostname: machineBook
Storage: /var/lib/systemd/coredump/core.sway.1000.e36eecc675ac46469d90526007e27ae7.6354.1581799695000000000000.lz4
Message: Process 6354 (sway) of user 1000 dumped core.
Stack trace of thread 6354:
#0 0x00007fa43b628ce5 raise (libc.so.6 + 0x3bce5)
#1 0x00007fa43b612857 abort (libc.so.6 + 0x25857)
#2 0x00007fa43b612727 __assert_fail_base.cold (libc.so.6 + 0x25727)
#3 0x00007fa43b621426 __assert_fail (libc.so.6 + 0x34426)
#4 0x00007fa43bcae7a9 n/a (libinput.so.10 + 0x217a9)
#5 0x00007fa43bcb61db n/a (libinput.so.10 + 0x291db)
#6 0x00007fa43bcb5b3f libinput_dispatch (libinput.so.10 + 0x28b3f)
#7 0x00007fa43be60d83 handle_libinput_readable (libwlroots.so.5 + 0x37d83)
#8 0x00007fa43be60fb3 backend_start (libwlroots.so.5 + 0x37fb3)
#9 0x00007fa43be554fe wlr_backend_start (libwlroots.so.5 + 0x2c4fe)
#10 0x00007fa43be64ccf multi_backend_start (libwlroots.so.5 + 0x3bccf)
#11 0x00007fa43be554fe wlr_backend_start (libwlroots.so.5 + 0x2c4fe)
#12 0x000055d735d3316e server_start (sway + 0x1f16e)
#13 0x000055d735d327b9 main (sway + 0x1e7b9)
#14 0x00007fa43b614023 __libc_start_main (libc.so.6 + 0x27023)
#15 0x000055d735d2426e _start (sway + 0x1026e)
Stack trace of thread 6357:
#0 0x00007fa43b108cf5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfcf5)
#1 0x00007fa43a0f0e1c n/a (i965_dri.so + 0x4f8e1c)
#2 0x00007fa43a0f0a18 n/a (i965_dri.so + 0x4f8a18)
#3 0x00007fa43b10246f start_thread (libpthread.so.0 + 0x946f)
#4 0x00007fa43b6ec3d3 __clone (libc.so.6 + 0xff3d3)
Stack trace of thread 6358:
#0 0x00007fa43b108cf5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfcf5)
#1 0x00007fa43a0f0e1c n/a (i965_dri.so + 0x4f8e1c)
#2 0x00007fa43a0f0a18 n/a (i965_dri.so + 0x4f8a18)
#3 0x00007fa43b10246f start_thread (libpthread.so.0 + 0x946f)
#4 0x00007fa43b6ec3d3 __clone (libc.so.6 + 0xff3d3)
Stack trace of thread 6359:
#0 0x00007fa43b108cf5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfcf5)
#1 0x00007fa43a0f0e1c n/a (i965_dri.so + 0x4f8e1c)
#2 0x00007fa43a0f0a18 n/a (i965_dri.so + 0x4f8a18)
#3 0x00007fa43b10246f start_thread (libpthread.so.0 + 0x946f)
#4 0x00007fa43b6ec3d3 __clone (libc.so.6 + 0xff3d3)
Stack trace of thread 6356:
#0 0x00007fa43b108cf5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfcf5)
#1 0x00007fa43a0f0e1c n/a (i965_dri.so + 0x4f8e1c)
#2 0x00007fa43a0f0a18 n/a (i965_dri.so + 0x4f8a18)
#3 0x00007fa43b10246f start_thread (libpthread.so.0 + 0x946f)
#4 0x00007fa43b6ec3d3 __clone (libc.so.6 + 0xff3d3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment