GNOME Bugzilla – Bug 749844
segfault if wacom tablet (BambooFun) is plugged in at login
Last modified: 2015-08-20 10:40:19 UTC
gnome-settings-daemon-3.16.2 reliably crashes when logging into gnome if my BambooFun wacom tablet is plugged in at the time. If I log in without the tablet and only plug in the tablet afterwards, there is no crash. This is with dconf-0.24.0, glib-2.44.1, libwacom-0.12. Backtrace:
+ Trace 235089
Downstream report: https://bugs.gentoo.org/show_bug.cgi?id=550368
Created attachment 303946 [details] [review] proposed patch This fixes the crash for me.
Comment on attachment 303946 [details] [review] proposed patch Thanks for the patch, I see how it helps fixing the crash, I however think that it's weird to have an array expected to be free()d initialized to const strings, this is IMO easy to go unnoticed as code evolves and changes accumulate. It looks to me like we could just be resetting the key to its default ['','',''] value in this case, I'm attaching an alternative patch.
Created attachment 304009 [details] [review] device-mapper: Reset the "display" setting on NULL outputs We used to attempt to reconstruct the ['','',''] default, although this failed on NULL outputs as we tried to feed NULLs into "as" variants/settings. Fix this by just resetting the key when the device gets a NULL output, we can also make the other path clearer as we can't get NULLs in edid[] as we previously might. Based on a patch by Alexandre Rostovtsev <tetromino@gentoo.org>
Review of attachment 304009 [details] [review]: Sure, this will also work.
Attachment 304009 [details] pushed as 21d26aa - device-mapper: Reset the "display" setting on NULL outputs
This has been pushed all the way to gnome-3-14. Thanks again for the patch/report!
*** Bug 751439 has been marked as a duplicate of this bug. ***
*** Bug 747865 has been marked as a duplicate of this bug. ***
*** Bug 752135 has been marked as a duplicate of this bug. ***
*** Bug 753587 has been marked as a duplicate of this bug. ***