GNOME Bugzilla – Bug 691672
evince-3.6.1 segfaults when dbus isn't running
Last modified: 2013-05-19 11:41:22 UTC
If evince is built with ./configure --enable-dbus, when the binary is run on a machine without dbus running, evince will segfault when launched without a file, and will simply exit when evince is run with a file as an argument. I was referred here from this gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=451578 , where it was determined that the best solution is to fix the segfault.
Created attachment 233399 [details] [review] Patch to fix segfault and allow files to still be opened without running dbus This is a patch against evince-3.6.1 because I don't have a new enough version of gtk+ on my machine to build the trunk version of evince to test the patch; however, the patch does apply cleanly against the trunk. The patch checks for a null pointer in the code that was causing the segfault and instead of just returning from the dbus enabled open uri code falls back to the function that opens documents with dbus support when the program doesn't have a connection to dbus.
Comment on attachment 233399 [details] [review] Patch to fix segfault and allow files to still be opened without running dbus Pushed to git master, thank you very much
*** Bug 700572 has been marked as a duplicate of this bug. ***