GNOME Bugzilla – Bug 604670
evolution-addressbook-export segfaults when specifying addressbook
Last modified: 2010-01-13 18:20:19 UTC
Forwarding this bug: http://bugs.debian.org/554442 evolution-addressbook-export segfaults when specifying the addressbook on the command-line. Without the command-line parameter it works fine, but that prevents exporting anything other than the default address book. pabs@chianamo:~$ gdb --args /usr/lib/evolution/2.28/evolution-addressbook-export --output=/home/pabs/backup/contacts.vcf file:///home/pabs/.evolution/addressbook/local/system GNU gdb (GDB) 7.0-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/lib/evolution/2.28/evolution-addressbook-export...Reading symbols from /usr/lib/debug/usr/lib/evolution/2.28/evolution-addressbook-export...done. (no debugging symbols found)...done. (gdb) r Starting program: /usr/lib/evolution/2.28/evolution-addressbook-export --output=/home/pabs/backup/contacts.vcf file:///home/pabs/.evolution/addressbook/local/system [Thread debugging using libthread_db enabled] (evolution-addressbook-export:6100): GLib-GObject-CRITICAL **: /tmp/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function (evolution-addressbook-export:6100): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed (evolution-addressbook-export:6100): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed Program received signal SIGSEGV, Segmentation fault. e_source_group_new (name=0x7ffff637aba0 "", base_uri=0x606b00 "file:///home/pabs/.evolution/addressbook/local/system") at e-source-group.c:241 241 e-source-group.c: No such file or directory. in e-source-group.c (gdb) thread apply all bt full
+ Trace 219624
Thread 1 (Thread 0x7ffff7fb37f0 (LWP 6100))
pabs@chianamo:~$ gdb --args /usr/lib/evolution/2.28/evolution-addressbook-export --output=/home/pabs/backup/contacts.vcf GNU gdb (GDB) 7.0-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/lib/evolution/2.28/evolution-addressbook-export...Reading symbols from /usr/lib/debug/usr/lib/evolution/2.28/evolution-addressbook-export...done. (no debugging symbols found)...done. (gdb) r Starting program: /usr/lib/evolution/2.28/evolution-addressbook-export --output=/home/pabs/backup/contacts.vcf [Thread debugging using libthread_db enabled] [New Thread 0x7fffe9440910 (LWP 6562)] [New Thread 0x7ffff7fb1910 (LWP 6565)] [Thread 0x7fffe9440910 (LWP 6562) exited] [Thread 0x7ffff7fb1910 (LWP 6565) exited] Program exited normally.
The same downstream bug report: https://bugzilla.redhat.com/show_bug.cgi?id=550759
I can confirm this, though only for 2.28, because on 2.29.5 it doesn't crash.
Created attachment 151355 [details] [review] evo patch for evolution; It turned out that the glib type system wasn't initialized, and then it crashed. It is also applicable to actual master, thus I'll update both.
Created commit 6ada1ff in evo master (2.29.6+) Created commit e46b9af in evo gnome-2-28 (2.28.3+)