Closed Ogromny closed 6 years ago
Can you provide a stack trace for sway? (coredumpctl gdb sway
and then bt full
)
Next time don't forget to enable debug logs for sway (sway -d
).
I have just added the debug log ^^
Nice. Can you add the stack trace?
stack trace
GNU gdb (GDB) 8.2
Copyright (C) 2018 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/bin/sway...done.
[New LWP 20038]
[New LWP 20039]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `sway --debug'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f786d7652b8 in malloc_consolidate () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f786a4049c0 (LWP 20038))]
(gdb) #0 0x00007f786d7652b8 in malloc_consolidate () at /usr/lib/libc.so.6
#1 0x00007f786d767f58 in _int_malloc () at /usr/lib/libc.so.6
#2 0x00007f786d769ada in malloc () at /usr/lib/libc.so.6
#3 0x00007f786d754791 in _IO_file_doallocate () at /usr/lib/libc.so.6
#4 0x00007f786d762bc0 in _IO_doallocbuf () at /usr/lib/libc.so.6
#5 0x00007f786d760364 in __GI__IO_file_seekoff () at /usr/lib/libc.so.6
#6 0x00007f786d75cfcd in fseek () at /usr/lib/libc.so.6
#7 0x000055ab9d7347f3 in read_config
(file=file@entry=0x55ab9f8e8a00, config=config@entry=0x55ab9f95beb0, swaynag=swaynag@entry=0x55ab9f95beb8)
at ../sway/sway/config.c:632
ret_seek = <optimized out>
ret_tell = <optimized out>
reading_main_config = true
this_config = 0x0
config_size = 0
success = <optimized out>
line_number = <optimized out>
line = <optimized out>
stack = <optimized out>
read = <optimized out>
#8 0x000055ab9d734ae1 in load_config
(path=path@entry=0x55ab9f926700 "/home/ogromny/.config/sway/config", config=0x55ab9f95beb0, swaynag=0x55ab9f95beb8) at ../sway/sway/config.c:369
sb =
{st_dev = 2053, st_ino = 1351205, st_nlink = 1, st_mode = 33188, st_uid = 1000, st_gid = 985, __pad0 = 0, st_rdev = 0, st_size = 6806, st_blksize = 4096, st_blocks = 16, st_atim = {tv_sec = 1539011512, tv_nsec = 209913813}, st_mtim = {tv_sec = 1539011512, tv_nsec = 209913813}, st_ctim = {tv_sec = 1539011512, tv_nsec = 209913813}, __glibc_reserved = {0, 0, 0}}
f = 0x55ab9f8e8a00
config_load_success = <optimized out>
#9 0x000055ab9d7353dd in load_main_config
(file=<optimized out>, is_active=is_active@entry=true, validating=validating@entry=false)
at ../sway/sway/config.c:461
path = 0x55ab9f926700 "/home/ogromny/.config/sway/config"
old_config = 0x55ab9f55d4d0
success = true
#10 0x000055ab9d754256 in do_reload (data=<optimized out>) at ../sway/sway/commands/reload.c:19
bar_ids = 0x55ab9f95c4b0
#11 0x00007f786dbba66c in wl_event_loop_dispatch_idle () at /usr/lib/libwayland-server.so.0
#12 0x00007f786dbba726 in wl_event_loop_dispatch () at /usr/lib/libwayland-server.so.0
#13 0x00007f786dbb92ac in wl_display_run () at /usr/lib/libwayland-server.so.0
#14 0x000055ab9d73270a in main (argc=<optimized out>, argv=<optimized out>) at ../sway/sway/main.c:384
verbose = 0
debug = 1
validate = 0
long_options =
{{name = 0x55ab9d76c18a "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x55ab9d76e680 "config", has_arg = 1, flag = 0x0, val = 99}, {name = 0x55ab9d76c18f "validate", has_arg = 0, flag = 0x0, val = 67}, {name = 0x55ab9d76c198 "debug", has_arg = 0, flag = 0x0, val = 100}, {name = 0x55ab9d76c0c6 "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x55ab9d76b29d "verbose", has_arg = 0, flag = 0x0, val = 86}, {name = 0x55ab9d76c19e "get-socketpath", has_arg = 0, flag = 0x0, val = 112}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
config_path = 0x0
usage = 0x55ab9d76c340 "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 = <optimized out>
(gdb) PID: 20038 (sway)
UID: 1000 (ogromny)
GID: 985 (users)
Signal: 11 (SEGV)
Timestamp: Mon 2018-10-08 17:13:34 CEST (7min ago)
Command Line: sway --debug
Executable: /usr/bin/sway
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice
Session: 1
Owner UID: 1000 (ogromny)
Boot ID: 2b15c8de31164816ac191e3c47810110
Machine ID: 9338f28dabe240b4a8241d710c54ecfc
Hostname: Ogromny
Storage: /var/lib/systemd/coredump/core.sway.1000.2b15c8de31164816ac191e3c47810110.20038.1539011614000000.lz4
Message: Process 20038 (sway) of user 1000 dumped core.
Stack trace of thread 20038:
#0 0x00007f786d7652b8 malloc_consolidate (libc.so.6)
#1 0x00007f786d767f58 _int_malloc (libc.so.6)
#2 0x00007f786d769ada malloc (libc.so.6)
#3 0x00007f786d754791 _IO_file_doallocate (libc.so.6)
#4 0x00007f786d762bc0 _IO_doallocbuf (libc.so.6)
#5 0x00007f786d760364 _IO_file_seekoff@@GLIBC_2.2.5 (libc.so.6)
#6 0x00007f786d75cfcd fseek (libc.so.6)
#7 0x000055ab9d7347f3 read_config (sway)
#8 0x000055ab9d734ae1 load_config (sway)
#9 0x000055ab9d7353dd load_main_config (sway)
#10 0x000055ab9d754256 do_reload (sway)
#11 0x00007f786dbba66c wl_event_loop_dispatch_idle (libwayland-server.so.0)
#12 0x00007f786dbba726 wl_event_loop_dispatch (libwayland-server.so.0)
#13 0x00007f786dbb92ac wl_display_run (libwayland-server.so.0)
#14 0x000055ab9d73270a main (sway)
#15 0x00007f786d708223 __libc_start_main (libc.so.6)
#16 0x000055ab9d73281e _start (sway)
Stack trace of thread 20039:
#0 0x00007f786d6d0afc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f7869bf417c n/a (i965_dri.so)
#2 0x00007f7869bf3eb8 n/a (i965_dri.so)
#3 0x00007f786d6caa9d start_thread (libpthread.so.0)
#4 0x00007f786d7dfa43 __clone (libc.so.6)
I can confirm this happening reliably to me as well. Started when I updated sway - can't say exactly which version I had unfortunately but I know it was NOT older than this https://github.com/swaywm/sway/commit/1c1fbd49db9a493af8101792ceede5f035724a6d.
Can you test #2804 please?
Hi,
I have just updated sway, and since when I press CMD + SHIFT + C ( reload ) sway just crash...
Here is my config
Here is the crash
Here is the log