oFono backend crashes when adding modems
Submitted by Rodrigo Moya
Assigned to fol..@..e.bugs
Created attachment 246791 Patch that uses dup_strv to workaround bug in vala compiler
When the folks oFono backend gets notified about a new modem, it uses GVariant's get_strv to retrieve features, which results, due to a bug in the Vala compiler, in the generated C code freeing both the container array and its elements, which is wrong, as g_variant_get_strv uses (transfer container) for the returned value.
The fix for the vala compiler doesn't seem to be trivial, so while it's not fixed, a workaround is to use g_variant_dup_strv instead of get_strv so that the generated C code frees what it needs to free.
Patch 246791, "Patch that uses dup_strv to workaround bug in vala compiler":
Version: git master