GNOME Bugzilla – Bug 636251
Fails to add contact
Last modified: 2010-12-13 15:17:13 UTC
empathy git master fails to add a contact. After the add contact dialog is filled in and 'Add' is clicked: (gdb) bt
+ Trace 224932
Created attachment 175665 [details] [review] Fix crash when adding contact
Difference in vala compilation output before and after the patch to folks: diff --git a/before.txt b/after.txt index 5f1a276..77d36bc 100644 --- a/before.txt +++ b/after.txt @@ -1,12 +1,10 @@ static void _lambda28_ (const gchar* k, GValue* v, Block16Data* _data16_) { FolksIndividualAggregator * self; gchar* _tmp0_; - GValue* _tmp1_ = NULL; - GValue* _tmp2_; + GValue* _tmp1_; self = _data16_->self; g_return_if_fail (k != NULL); _tmp0_ = g_strdup ((const gchar*) k); - _tmp2_ = __g_value_dup0 ((G_VALUE_HOLDS (v, G_TYPE_VALUE) && g_value_get - g_hash_table_insert (_data16_->retval, _tmp0_, _tmp2_); + _tmp1_ = __g_value_dup0 (v); + g_hash_table_insert (_data16_->retval, _tmp0_, _tmp1_); }
That's a Folks bug.
Stef, what version of Vala are you using? I presume the patch doesn't introduce any warnings from Vala (since I guess that's why the typecast was originally added)?
stef@shondo:~$ /opt/gnome/bin/valac --version Vala 0.11.2.23-011d3 That strange version number above is git master (ie: 0.12). I've confirmed this on #vala
I can confirm this crash. Core-WARNING **: Invalid GValue unboxing (wrong type or NULL) aborting...
+ Trace 225014
Pushed to master inside an #if VALA_0_12. commit c7505774b7a70d0c1e979a10439ceb87419d74f2 Author: Stef Walter <stefw@collabora.co.uk> Date: Wed Dec 1 20:50:22 2010 +0000 Bug 636251 — Fails to add contact Vala compiles this line of code wrong, and tries to double check that there is a GValue boxed inside of the GValue. Closes: bgo#636251 folks/individual-aggregator.vala | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
*** Bug 636965 has been marked as a duplicate of this bug. ***