GNOME Bugzilla – Bug 628299
Crash in g_variant_is_trusted at gvariant-core.c:578
Last modified: 2013-09-14 16:53:35 UTC
I got this crash when I clicked on calendar component of evolution. (e-calendar-factory:15205): GLib-CRITICAL **: g_variant_new_string: assertion `g_utf8_validate (string, -1, NULL)' failed [Thread 0xb3c0eb70 (LWP 15282) exited] Program received signal SIGSEGV, Segmentation fault. g_variant_is_trusted (value=0x0) at gvariant-core.c:578 578 return (value->state & STATE_TRUSTED) != 0; (gdb) t a a bt
+ Trace 223473
Thread 1 (Thread 0xb6a7db60 (LWP 15205))
+ Trace 223474
Looks like a bug in e-d-s. It's returning an error to the method invocation, but the GError used appears to contain a message that isn't valid UTF-8.
Created attachment 169656 [details] [review] EDS patch Initialize the error message. Fixes the crash. Need to fix the right error message from the server later.
Review of attachment 169656 [details] [review]: Please free the memory which is allocated or just initialize it in the stack itself. If you can map the server error with one of the standard errors, please do it right away. Please commit it after the changes.
Reworked and committed an updated patch, http://git.gnome.org/browse/evolution-data-server/commit/?id=fa9d7b6fc5816b4f6360344a1be13d768bc53ff4