Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#51668 - [workrave] 1.10.16-1 segfaults on startup

Attached to Project: Community Packages
Opened by Pico (Avatar) - Thursday, 03 November 2016, 08:00 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 17 November 2016, 14:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The workrave application segfaults on startup.

Additional info:
* Version: 1.10.16-1

Steps to reproduce:
This should be reproducible simply by running workrave.

GDB stack trace without debugging:
Thread 1 "workrave" received signal SIGSEGV, Segmentation fault.
0x0000000000000020 in ?? ()
(gdb) bt
#0 0x0000000000000020 in ()
#1 0x00007ffff6d3056b in XQueryExtension () at /usr/lib/libX11.so.6
#2 0x00007ffff6d240f2 in XInitExtension () at /usr/lib/libX11.so.6
#3 0x00007ffff290238f in XextAddDisplay () at /usr/lib/libXext.so.6
#4 0x00007ffff75ac061 in XScreenSaverQueryExtension () at /usr/lib/libXss.so.1
#5 0x00000000004d02e6 in XScreenSaverMonitor::init() ()
#6 0x00000000004cf41c in UnixInputMonitorFactory::get_monitor(IInputMonitorFactory::MonitorCapability) ()
#7 0x00000000004d08ac in ActivityMonitor::ActivityMonitor() ()
#8 0x00000000004adad6 in Core::init_monitor(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#9 0x00000000004b019a in Core::init(int, char**, workrave::IApp*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#10 0x0000000000469ba3 in GUI::init_core() ()
#11 0x000000000045d508 in GUI::main() ()
#12 0x000000000048d8bb in run ()
#13 0x00007ffff2d2c291 in __libc_start_main () at /usr/lib/libc.so.6
#14 0x000000000045f5aa in _start ()

Sorry, I've not yet been able to build a debug version.


This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 17 November 2016, 14:01 GMT
Reason for closing:  Upstream
Additional comments about closing:  issue reported to upstream
Comment by Daniel M. Capella (polyzen) - Thursday, 03 November 2016, 18:07 GMT
Cannot reproduce.
Comment by Pico (Avatar) - Thursday, 03 November 2016, 19:43 GMT
I compiled the package and it's libs with debug info, so here's the more detailed stack trace:

#0 0x00007ffff6b46569 in XQueryExtension (dpy=dpy@entry=0x9673a0, name=name@entry=0x7ffff75aca05 "MIT-SCREEN-SAVER", major_opcode=major_opcode@entry=0x7fffffffdb44, first_event=first_event@entry=0x7fffffffdb48, first_error=first_error@entry=0x7fffffffdb4c) at QuExt.c:43
#1 0x00007ffff6b3a0f2 in XInitExtension (dpy=dpy@entry=0x9673a0, name=name@entry=0x7ffff75aca05 "MIT-SCREEN-SAVER") at InitExt.c:47
#2 0x00007ffff27182ef in XextAddDisplay (extinfo=0x7ffff77ae130 <_screen_saver_info_data>, dpy=0x9673a0, ext_name=0x7ffff75aca05 "MIT-SCREEN-SAVER", hooks=0x7ffff77ae0c0 <screen_saver_extension_hooks>, nevents=1, data=0x0)
at extutil.c:110
#3 0x00007ffff75ac081 in XScreenSaverQueryExtension (dpy=<optimized out>, event_base_return=0x7fffffffdc0c, error_base_return=0x7fffffffdc10) at XScrnSaver.c:158
#4 0x0000000000613d7c in XScreenSaverMonitor::init() (this=0x9f8e20) at XScreenSaverMonitor.cc:71
#5 0x0000000000611a90 in UnixInputMonitorFactory::get_monitor(IInputMonitorFactory::MonitorCapability) (this=0x9eb980, capability=IInputMonitorFactory::CAPABILITY_ACTIVITY) at UnixInputMonitorFactory.cc:107
#6 0x00000000005e62b8 in InputMonitorFactory::get_monitor(IInputMonitorFactory::MonitorCapability) (capability=IInputMonitorFactory::CAPABILITY_ACTIVITY) at InputMonitorFactory.cc:62
#7 0x00000000006143da in ActivityMonitor::ActivityMonitor() (this=0x9f8d80) at ActivityMonitor.cc:76
#8 0x00000000005cf1ce in Core::init_monitor(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0x9e9ab0, display_name="wayland-0") at Core.cc:286
#9 0x00000000005ce76d in Core::init(int, char**, workrave::IApp*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0x9e9ab0, argc=1, argv=0x7fffffffe288, app=0x91afb8, display_name="wayland-0") at Core.cc:171
#10 0x00000000005558e6 in GUI::init_core() (this=0x91afb0) at GUI.cc:544
#11 0x00000000005546c4 in GUI::main() (this=0x91afb0) at GUI.cc:221
#12 0x000000000059d2e9 in run(int, char**) (argc=1, argv=0x7fffffffe288) at main.cc:68
#13 0x000000000059d352 in main(int, char**) (argc=1, argv=0x7fffffffe288) at main.cc:87

I get this crash on 2 different machines both with gnome3 (if that's relevant).
Let me know if there's any info I can provide to make it easier to debug.
Thanks,
Comment by Pico (Avatar) - Saturday, 05 November 2016, 09:46 GMT
I realized that I missed compiling libxi with debug info as well, so here's yet another backtrace:
Thread 1 "workrave" received signal SIGSEGV, Segmentation fault.
_XSend (dpy=dpy@entry=0x9673a0, data=data@entry=0x7ffff75aca05 "MIT-SCREEN-SAVER", size=16) at xcb_io.c:447
447 xcb_connection_t *c = dpy->xcb->connection;
(gdb) bt
#0 0x00007ffff6b4fe3e in _XSend (dpy=dpy@entry=0x9673a0, data=data@entry=0x7ffff75aca05 "MIT-SCREEN-SAVER", size=16) at xcb_io.c:447
#1 0x00007ffff6b465b4 in XQueryExtension (dpy=dpy@entry=0x9673a0, name=name@entry=0x7ffff75aca05 "MIT-SCREEN-SAVER", major_opcode=major_opcode@entry=0x7fffffffdb44, first_event=first_event@entry=0x7fffffffdb48, first_error=first_error@entry=0x7fffffffdb4c) at QuExt.c:47
#2 0x00007ffff6b3a0f2 in XInitExtension (dpy=dpy@entry=0x9673a0, name=name@entry=0x7ffff75aca05 "MIT-SCREEN-SAVER") at InitExt.c:47
#3 0x00007ffff27182ef in XextAddDisplay (extinfo=0x7ffff77ae130 <_screen_saver_info_data>, dpy=0x9673a0, ext_name=0x7ffff75aca05 "MIT-SCREEN-SAVER", hooks=0x7ffff77ae0c0 <screen_saver_extension_hooks>, nevents=1, data=0x0)
at extutil.c:110
#4 0x00007ffff75ac081 in XScreenSaverQueryExtension (dpy=<optimized out>, event_base_return=0x7fffffffdc0c, error_base_return=0x7fffffffdc10) at XScrnSaver.c:158
#5 0x0000000000613d7c in XScreenSaverMonitor::init() (this=0x9f4020) at XScreenSaverMonitor.cc:71
#6 0x0000000000611a90 in UnixInputMonitorFactory::get_monitor(IInputMonitorFactory::MonitorCapability) (this=0x9eb2f0, capability=IInputMonitorFactory::CAPABILITY_ACTIVITY) at UnixInputMonitorFactory.cc:107
#7 0x00000000005e62b8 in InputMonitorFactory::get_monitor(IInputMonitorFactory::MonitorCapability) (capability=IInputMonitorFactory::CAPABILITY_ACTIVITY) at InputMonitorFactory.cc:62
#8 0x00000000006143da in ActivityMonitor::ActivityMonitor() (this=0x9f95c0) at ActivityMonitor.cc:76
#9 0x00000000005cf1ce in Core::init_monitor(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0x9e98c0, display_name="wayland-0") at Core.cc:286
#10 0x00000000005ce76d in Core::init(int, char**, workrave::IApp*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0x9e98c0, argc=1, argv=0x7fffffffe288, app=0x91afb8, display_name="wayland-0") at Core.cc:171
#11 0x00000000005558e6 in GUI::init_core() (this=0x91afb0) at GUI.cc:544
#12 0x00000000005546c4 in GUI::main() (this=0x91afb0) at GUI.cc:221
#13 0x000000000059d2e9 in run(int, char**) (argc=1, argv=0x7fffffffe288) at main.cc:68
#14 0x000000000059d352 in main(int, char**) (argc=1, argv=0x7fffffffe288) at main.cc:87
(gdb) p dpy->xcb
$1 = (struct _X11XCBPrivate *) 0x0

I'll report this upstream as well.
Comment by Pico (Avatar) - Saturday, 05 November 2016, 09:51 GMT Comment by Daniel M. Capella (polyzen) - Saturday, 05 November 2016, 09:57 GMT
Appears so.

Loading...