GNOME Bugzilla – Bug 168945
Segfault inside buildwindowtree()
Last modified: 2006-01-27 19:35:15 UTC
Version details: 3.2.13 Hello. I'm using dasher 3.2.13, and there seems to be a bug inside buildwindowtree() (Src/Gtk2/accessibility.cc) that causes a segmentation fault on my system. Right after the for loop, this line comes up: tmptree->parent->next = NULL; Apparently the assumption was that the loop always runs at least once, so nothing bad happens, but, at least for me, that's not the case and dereferencing tmptree->parent->next crashes the application.
Created attachment 38132 [details] [review] dasher-3.2.13-buildwindowtree.patch Simple workaround. However, I'm not sure this is the right fix. Let me know if you want to know anything else about my system. Thanks.
Created attachment 38532 [details] [review] dasher-3.2.15-buildwindowtree.patch Apparently there was an attempt to fix this: http://cvs.gnome.org/viewcvs/dasher/Src/Gtk2/accessibility.cc?r1=1.25&r2=1.26 However, with dasher-3.2.15 (which includes that CVS fix) it's still crashing for me. This is the updated patch I made to fix this in dasher-3.2.15.
*** Bug 170401 has been marked as a duplicate of this bug. ***
Cock. Got it. Line 253 of main.cc, drop the #ifdef #endif pair. I'm not too keen on depending on libwnck, but it provides useful functionality and there's no other way of getting it. Best plan may be to work around it based on the library version.
Is this commited?
You seem to have found the fix, is it committed? There are no ifdef at this point currently, but there are a lot around...
Yes, this is committed.
This code has now been removed, pending a rewrite in a future release (probably 4.2), as the function wasn't generally working well anyway.