This is one simple patch to fix seg fault of evolution-data-server,
when new contact is added for new created DB.

The root cause is simple: do_create (bf, XIMIAN_VCARD,....) would access
bf->priv->file_db and cause seg fault if not initialized.

I have created one bz, also attached patch for comments.

Adding default vcard for new created DB always failed with seg fault, as
file_db was not initialized before access. This patch fix it.

Signed-off-by: Edwin Zhai <>
Index: evolution-data-server/addressbook/backends/file/e-book-backend-file.c
2011-04-26 15:46:03.000000000 +0800
evolution-data-server/addressbook/backends/file/e-book-backend-file.c 2011-04-26 15:59:13.000000000 +0800
@@ -1247,6 +1247,8 @@
                EContact *contact = NULL;

+                /* Initialize file_db, or else following do_create
cause seg fault */
+                bf->priv->file_db = db;
                if (!do_create (bf, XIMIAN_VCARD, &contact, NULL))
                    g_warning ("Cannot create default contact");
                if (contact)

Yocto Project @

evolution-hackers mailing list
To change your list options or unsubscribe, visit ...

Reply via email to