After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 604670 - evolution-addressbook-export segfaults when specifying addressbook
evolution-addressbook-export segfaults when specifying addressbook
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Contacts
2.28.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2009-12-16 02:12 UTC by Paul Wise
Modified: 2010-01-13 18:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
evo patch (498 bytes, patch)
2010-01-13 18:17 UTC, Milan Crha
committed Details | Review

Description Paul Wise 2009-12-16 02:12:30 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

Thread 1 (Thread 0x7ffff7fb37f0 (LWP 6100))

  • #0 e_source_group_new
    at e-source-group.c line 241
  • #1 e_book_new_from_uri
    at e-book.c line 3861
  • #2 action_list_cards_init
    at evolution-addressbook-export-list-cards.c line 768
  • #3 main
    at evolution-addressbook-export.c line 158

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.
Comment 1 Milan Crha 2010-01-12 19:14:27 UTC
The same downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=550759
Comment 2 Milan Crha 2010-01-13 17:43:26 UTC
I can confirm this, though only for 2.28, because on 2.29.5 it doesn't crash.
Comment 3 Milan Crha 2010-01-13 18:17:05 UTC
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.
Comment 4 Milan Crha 2010-01-13 18:20:19 UTC
Created commit 6ada1ff in evo master (2.29.6+)
Created commit e46b9af in evo gnome-2-28 (2.28.3+)