GNOME Bugzilla – Bug 769061
GNOME-Software crashes on startup for first run
Last modified: 2016-07-22 11:57:52 UTC
On the first run of gnome-software, the application crashes a few seconds after startup. Stacktrace: Program received signal SIGSEGV, Segmentation fault. __memmove_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1550 1550 ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: No such file or directory. (gdb) bt
+ Trace 236474
Created attachment 331923 [details] [review] Block signal emission of unmapped signal before resizing array The unmapped signal handler removes dialogs from the ptr array keeping track of dialogs. However, this signal handler might get run when we set the ptr array's size to zero, which causes memmove to be run twice. Block the unmapped signal handler when resizing the array so that this doesn't happen.
Created attachment 331943 [details] [review] Disconnect signal handlers Use disconnect_by_func, not block_matched
Pushed with a couple of trivial fixes, thanks!