FS#56115 - [workrave] 1.10.18-1 core dumps in both X11 and Wayland

Attached to Project: Community Packages
Opened by Amir Mohammadi (183.amir) - Wednesday, 25 October 2017, 15:49 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 03 November 2017, 17:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
Hi, I just upgraded to workrave 1.10.18-1 and it seems to crash in both X11 and Wayland environments.

Additional info:
* package version(s)
* config and/or log files etc.

workrave 1.10.18-1

Steps to reproduce:
run workrave

$ workrave
(workrave:25615): GLib-GIO-ERROR **: Settings schema 'org.workrave.monitor' does not contain a key named 'sensitivity'
PID: 25615 (workrave)
UID: 1000 (amir)
GID: 1000 (amir)
Signal: 5 (TRAP)
Timestamp: Wed 2017-10-25 17:45:32 CEST (3min 33s ago)
Command Line: workrave
Executable: /usr/bin/workrave
Control Group: /user.slice/user-1000.slice/user@1000.service/gnome-terminal-server.service
Unit: user@1000.service
User Unit: gnome-terminal-server.service
Slice: user-1000.slice
Owner UID: 1000 (amir)
Boot ID: 8b34de00a92d4b7a9886ddd156da6c56
Machine ID: 7976738470854f418d246faebfc5aea5
Hostname: archie
Storage: /var/lib/systemd/coredump/core.workrave.1000.8b34de00a92d4b7a9886ddd156da6c56.25615.1508946332000000.lz4
Message: Process 25615 (workrave) of user 1000 dumped core.

Stack trace of thread 25615:
#0 0x00007f0cf6e0bcd2 n/a (libglib-2.0.so.0)
#1 0x00007f0cf6e0becd g_log_default_handler (libglib-2.0.so.0)
#2 0x00007f0cf6e0c4ef g_logv (libglib-2.0.so.0)
#3 0x00007f0cf6e0c680 g_log (libglib-2.0.so.0)
#4 0x00007f0cf7d95d72 n/a (libgio-2.0.so.0)
#5 0x00007f0cf7cda7e1 g_settings_get_value (libgio-2.0.so.0)
#6 0x0000564d71da5e52 _ZNK21GSettingsConfigurator9get_valueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE11VariantTypeR7Variant (workrave)
#7 0x0000564d71da10aa _ZNK12Configurator9get_valueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE11VariantTypeR7Variant (workrave)
#8 0x0000564d71da2503 _ZN12Configurator9set_valueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER7VariantN8workrave11ConfigFlagsE (workrave)
#9 0x0000564d71da30e9 _ZN12Configurator9set_valueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN8workrave11ConfigFlagsE (workrave)
#10 0x0000564d71d79ac3 _ZN4Core12init_monitorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE (workrave)
#11 0x0000564d71d7c36c _ZN4Core4initEiPPcPN8workrave4IAppERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE (workrave)
#12 0x0000564d71d31e8c _ZN3GUI9init_coreEv (workrave)
#13 0x0000564d71d237b6 _ZN3GUI4mainEv (workrave)
#14 0x0000564d71d58bfe run (workrave)
#15 0x00007f0cf5ef7f6a __libc_start_main (libc.so.6)
#16 0x0000564d71d25a4a _start (workrave)

Stack trace of thread 25616:
#0 0x00007f0cf5fc2d4b __poll (libc.so.6)
#1 0x00007f0cf6e02ed3 n/a (libglib-2.0.so.0)
#2 0x00007f0cf6e02fae g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f0cf6e03002 n/a (libglib-2.0.so.0)
#4 0x00007f0cf6df71eb n/a (libglib-2.0.so.0)
#5 0x00007f0cf629508a start_thread (libpthread.so.0)
#6 0x00007f0cf5fcd24f __clone (libc.so.6)

Stack trace of thread 25617:
#0 0x00007f0cf629fad4 sendmsg (libpthread.so.0)
#1 0x00007f0cf7cfd3e3 n/a (libgio-2.0.so.0)
#2 0x00007f0cf7cfd607 g_socket_send_message (libgio-2.0.so.0)
#3 0x00007f0cf7ce7697 n/a (libgio-2.0.so.0)
#4 0x00007f0cf7ce9a05 n/a (libgio-2.0.so.0)
#5 0x00007f0cf7ce9c00 n/a (libgio-2.0.so.0)
#6 0x00007f0cf7d7d0dc n/a (libgio-2.0.so.0)
#7 0x00007f0cf7d7d119 n/a (libgio-2.0.so.0)
#8 0x00007f0cf6e010be g_main_context_dispatch (libglib-2.0.so.0)
#9 0x00007f0cf6e02f69 n/a (libglib-2.0.so.0)
#10 0x00007f0cf6e03f42 g_main_loop_run (libglib-2.0.so.0)
#11 0x00007f0cf7cdde28 n/a (libgio-2.0.so.0)
#12 0x00007f0cf6df71eb n/a (libglib-2.0.so.0)
#13 0x00007f0cf629508a start_thread (libpthread.so.0)
#14 0x00007f0cf5fcd24f __clone (libc.so.6)

Stack trace of thread 25618:
#0 0x00007f0cf7ce8a62 g_dbus_message_set_path (libgio-2.0.so.0)
#1 0x00007f0cf7d577a4 g_dbus_message_new_method_call (libgio-2.0.so.0)
#2 0x00007f0cf7d61cd3 n/a (libgio-2.0.so.0)
#3 0x00007f0cf7d61d85 g_dbus_connection_call (libgio-2.0.so.0)
#4 0x00007f0ce9f6d9e0 n/a (libdconfsettings.so)
#5 0x00007f0cf6e010be g_main_context_dispatch (libglib-2.0.so.0)
#6 0x00007f0cf6e02f69 n/a (libglib-2.0.so.0)
#7 0x00007f0cf6e02fae g_main_context_iteration (libglib-2.0.so.0)
#8 0x00007f0ce9f6db0e n/a (libdconfsettings.so)
#9 0x00007f0cf6df71eb n/a (libglib-2.0.so.0)
#10 0x00007f0cf629508a start_thread (libpthread.so.0)
#11 0x00007f0cf5fcd24f __clone (libc.so.6)
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 03 November 2017, 17:19 GMT
Reason for closing:  Fixed
Comment by Amir Mohammadi (183.amir) - Wednesday, 25 October 2017, 15:53 GMT
Here is the gdb backtrace:
#0 0x00007f0cf6e0bcd2 in () at /usr/lib/libglib-2.0.so.0
#1 0x00007f0cf6e0becd in g_log_default_handler () at /usr/lib/libglib-2.0.so.0
#2 0x00007f0cf6e0c4ef in g_logv () at /usr/lib/libglib-2.0.so.0
#3 0x00007f0cf6e0c680 in g_log () at /usr/lib/libglib-2.0.so.0
#4 0x00007f0cf7d95d72 in () at /usr/lib/libgio-2.0.so.0
#5 0x00007f0cf7cda7e1 in g_settings_get_value () at /usr/lib/libgio-2.0.so.0
#6 0x0000564d71da5e52 in GSettingsConfigurator::get_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, VariantType, Variant&) const ()
#7 0x0000564d71da10aa in Configurator::get_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, VariantType, Variant&) const ()
#8 0x0000564d71da2503 in Configurator::set_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Variant&, workrave::ConfigFlags) ()
#9 0x0000564d71da30e9 in Configurator::set_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, workrave::ConfigFlags) ()
#10 0x0000564d71d79ac3 in Core::init_monitor(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#11 0x0000564d71d7c36c in Core::init(int, char**, workrave::IApp*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#12 0x0000564d71d31e8c in GUI::init_core() ()
#13 0x0000564d71d237b6 in GUI::main() ()
#14 0x0000564d71d58bfe in run ()
#15 0x00007f0cf5ef7f6a in __libc_start_main () at /usr/lib/libc.so.6
#16 0x0000564d71d25a4a in _start ()
Comment by Jan de Groot (JGC) - Thursday, 26 October 2017, 22:37 GMT
The assertion is clear: there's a missing key in the gsettings schema. Workrave doesn't crash with SIGSEGV but with SIGTRAP.

This commit causes the crash:
https://github.com/rcaelers/workrave/commit/81329192d052fc89b06d6783cd46c791c8e0d0b9

Comment by Pieter Frenssen (pfrenssen) - Monday, 30 October 2017, 10:59 GMT
Here is the upstream bug report: https://issues.workrave.org/show_bug.cgi?id=1256
Comment by Amir Mohammadi (183.amir) - Monday, 30 October 2017, 13:20 GMT
The upstream developer is not very responsive. If any of you know how to fix this, it would be great if you could commit some time in fixing this.
Comment by Andrei Pozolotin (random-archer) - Thursday, 02 November 2017, 13:28 GMT Comment by Amir Mohammadi (183.amir) - Thursday, 02 November 2017, 13:40 GMT
I have tried many different alternatives including stretchly but I prefer workrave.
Anyways, let's not diverge from the discussion here which is about a bug on workrave.
Comment by Rich Daley (richd) - Friday, 03 November 2017, 09:53 GMT
This patch fixes it for me. I'll submit it upstream as a PR too.

You can add it to your PKGBUILD in the meantime with:

prepare() {
cd "$srcdir"/workrave-${pkgver//./_}
patch -p0 < ../../gschema.patch
}
Comment by Sergej Pupykin (sergej) - Friday, 03 November 2017, 14:50 GMT
Thank you, please try workrave-1.10.18-2
Comment by Andrei Pozolotin (random-archer) - Friday, 03 November 2017, 17:00 GMT
workrave-1.10.18-2 works, thank you

Loading...