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 461125 - "category" in composer's "recipients chooser dialog" broken
"category" in composer's "recipients chooser dialog" broken
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
1.12.x (obsolete)
Other Linux
: High blocker
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
: 482926 486873 489628 491074 491691 494530 494759 496205 497232 498204 498392 499135 499275 499336 500212 501672 502201 502383 502666 502901 503460 503636 503811 504612 505747 506512 506868 507854 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-07-28 01:07 UTC by André Klapper
Modified: 2013-09-14 16:50 UTC
See Also:
GNOME target: 2.20.x
GNOME version: 2.19/2.20


Attachments
Double memory free (1002 bytes, patch)
2007-10-23 03:45 UTC, Akhil Laddha
rejected Details | Review

Description André Klapper 2007-07-28 01:07:45 UTC
built evo 2.11.5 today from svn.

new -> message
click on "to" button to choose recipients
change the category from "any category" to something else (here: "familie"). does not work.

e-d-s output:

(evolution-data-server-1.12:23725): libedata-book-WARNING **: impl_GNOME_Evolution_Addressbook_Book_getBookView ((contains "x-evolution-any-field" ""))

e_data_book_respond_get_book_view
book_view file uref 
book_view file uref 
impl_GNOME_Evolution_Addressbook_BookFactory_getBook
 + file:///home/andre/.evolution/addressbook/local/system
 => 0x81ab800
impl_GNOME_Evolution_Addressbook_Book_open (0x81ab800)
impl_GNOME_Evolution_Addressbook_BookFactory_getBook
 + file:///home/andre/.evolution/addressbook/local/system
 => 0x81ab830
impl_GNOME_Evolution_Addressbook_Book_open (0x81ab830)

(evolution-data-server-1.12:23725): libedata-book-WARNING **: impl_GNOME_Evolution_Addressbook_Book_getBookView ((or (beginswith "nickname"  "") (beginswith "email"  "") (beginswith "full_name"  "") (beginswith "file_as"  "") ))

e_data_book_respond_get_book_view
book_view file uref 

(evolution-data-server-1.12:23725): libedata-book-WARNING **: impl_GNOME_Evolution_Addressbook_Book_getBookView ((and (or (beginswith "nickname"  "") (beginswith "email"  "") (beginswith "full_name"  "") (beginswith "file_as"  "") ) (is "category_list"  "familie") ))

e_data_book_respond_get_book_view
*** glibc detected *** /home/andre/opt-gnome/libexec/evolution-data-server-1.12: double free or corruption (!prev): 0x081cf100 ***
======= Backtrace: =========
/lib/libc.so.6[0xfd4f41]
/lib/libc.so.6(cfree+0x90)[0xfd8580]
/home/andre/opt-gnome//lib/libglib-2.0.so.0(g_free+0x35)[0xc50be9]
/home/andre/opt-gnome//lib/evolution-data-server-1.2/extensions/libebookbackendfile.so[0x10d2e72]
/home/andre/opt-gnome//lib/libglib-2.0.so.0[0xc711cf]
/lib/libpthread.so.0[0xab82fb]
/lib/libc.so.6(clone+0x5e)[0x103d93e]
======= Memory map: ========
00110000-001fd000 r-xp 00000000 08:07 18940450   /home/andre/opt-gnome/lib/libedata-book-1.2.so.2.4.1
001fd000-00201000 rwxp 000ed000 08:07 18940450   /home/andre/opt-gnome/lib/libedata-book-1.2.so.2.4.1
00201000-0027f000 r-xp 00000000 08:06 1081520    /usr/lib/libnss3.so
0027f000-00284000 rwxp 0007e000 08:06 1081520    /usr/lib/libnss3.so
00284000-002a0000 r-xp 00000000 08:07 18678278   /home/andre/opt-gnome/lib/libdbus-glib-1.so.2.1.0
002a0000-002a1000 rwxp 0001c000 08:07 18678278   /home/andre/opt-gnome/lib/libdbus-glib-1.so.2.1.0
002a1000-002a3000 r-xp 00000000 08:07 18942764   /home/andre/opt-gnome/lib/libavahi-glib.so.1.0.1
002a3000-002a4000 rwxp 00001000 08:07 18942764   /home/andre/opt-gnome/lib/libavahi-glib.so.1.0.1
002a5000-002ca000 r-xp 00000000 08:06 1081522    /usr/lib/libsmime3.so
002ca000-002cc000 rwxp 00025000 08:06 1081522    /usr/lib/libsmime3.so
002cc000-0031f000 r-xp 00000000 08:07 18942855   /home/andre/opt-gnome/lib/libgnomevfs-2.so.0.1900.1
0031f000-00322000 rwxp 00052000 08:07 18942855   /home/andre/opt-gnome/lib/libgnomevfs-2.so.0.1900.1
00322000-00363000 r-xp 00000000 08:06 311483     /lib/libssl.so.0.9.8b
00363000-00367000 rwxp 00040000 08:06 311483     /lib/libssl.so.0.9.8b
00367000-00375000 r-xp 00000000 08:07 18942772   /home/andre/opt-gnome/lib/libavahi-client.so.3.2.1
00375000-00376000 rwxp 0000d000 08:07 18942772   /home/andre/opt-gnome/lib/libavahi-client.so.3.2.1
00376000-00378000 r-xp 00000000 08:06 2342954    /lib/libutil-2.6.so
00378000-00379000 r-xp 00001000 08:06 2342954    /lib/libutil-2.6.so
00379000-0037a000 rwxp 00002000 08:06 2342954    /lib/libutil-2.6.so
0037a000-0037d000 r-xp 00000000 08:07 18679219   /home/andre/opt-gnome/lib/libgmodule-2.0.so.0.1307.0
0037d000-0037e000 rwxp 00002000 08:07 18679219   /home/andre/opt-gnome/lib/libgmodule-2.0.so.0.1307.0
0037e000-00380000 r-xp 00000000 08:06 378014     /usr/lib/libplds4.so
00380000-00381000 rwxp 00002000 08:06 378014     /usr/lib/libplds4.so
00381000-003aa000 r-xp 00000000 08:06 1081524    /usr/lib/libssl3.so
003aa000-003ac000 rwxp 00028000 08:06 1081524    /usr/lib/libssl3.so
003ac000-0050b000 r-xp 00000000 08:07 18677802   /home/andre/opt-gnome/lib/libxml2.so.2.6.29
0050b000-00510000 rwxp 0015f000 08:07 18677802   /home/andre/opt-gnome/lib/libxml2.so.2.6.29
00510000-00511000 rwxp 00510000 00:00 0 
00511000-00521000 r-xp 00000000 08:06 2342952    /lib/libresolv-2.6.so
00521000-00522000 r-xp 0000f000 08:06 2342952    /lib/libresolv-2.6.so
00522000-00523000 rwxp 00010000 08:06 2342952    /lib/libresolv-2.6.so
00523000-00525000 rwxp 00523000 00:00 0 
00526000-0053b000 r-xp 00000000 08:06 2342928    /lib/libnsl-2.6.so
0053b000-0053c000 r-xp 00014000 08:06 2342928    /lib/libnsl-2.6.so
0053c000-0053d000 rwxp 00015000 08:06 2342928    /lib/libnsl-2.6.so
0053d000-0053f000 rwxp 0053d000 00:00 0 
0053f000-00570000 r-xp 00000000 08:07 18942734   /home/andre/opt-gnome/lib/libdbus-1.so.3.2.0
00570000-00571000 rwxp 00030000 08:07 18942734   /home/andre/opt-gnome/lib/libdbus-1.so.3.2.0
00571000-005a7000 r-xp 00000000 08:07 18679193   /home/andre/opt-gnome/lib/libgconf-2.so.4.1.2
005a7000-005aa000 rwxp 00035000 08:07 18679193   /home/andre/opt-gnome/lib/libgconf-2.so.4.1.2
005aa000-005b1000 r-xp 00000000 08:06 378279     /usr/lib/libpopt.so.0.0.0
005b1000-005b2000 rwxp 00006000 08:06 378279     /usr/lib/libpopt.so.0.0.0
005b3000-006a8000 r-xp 00000000 08:07 18940460   /home/andre/opt-gnome/lib/libedataserver-1.2.so.9.0.1
006a8000-006ab000 rwxp 000f4000 08:07 18940460   /home/andre/opt-gnome/lib/libedataserver-1.2.so.9.0.1
006ab000-007c7000 r-xp 00000000 08:06 311481     /lib/libcrypto.so.0.9.8b
007c7000-007d9000 rwxp 0011c000 08:06 311481     /lib/libcrypto.so.0.9.8b
007d9000-007dd000 rwxp 007d9000 00:00 0 
007dd000-007e6000 r-xp 00000000 08:07 18679113   /home/andre/opt-gnome/lib/libesd.so.0.2.38
007e6000-007e7000 rwxp 00009000 08:07 18679113   /home/andre/opt-gnome/lib/libesd.so.0.2.38
007e7000-00809000 r-xp 00000000 08:07 18942825   /home/andre/opt-gnome/lib/libaudiofile.so.0.0.2
00809000-0080c000 rwxp 00021000 08:07 18942825   /home/andre/opt-gnome/lib/libaudiofile.so.0.0.2
0080c000-00810000 r-xp 00000000 08:07 18679220   /home/andre/opt-gnome/lib/libgthread-2.0.so.0.1307.0
00810000-00811000 rwxp 00003000 08:07 18679220   /home/andre/opt-gnome/lib/libgthread-2.0.so.0.1307.0
00811000-00815000 r-xp 00000000 08:06 378013     /usr/lib/libplc4.so
00815000-00816000 rwxp 00003000 08:06 378013     /usr/lib/libplc4.so
00818000-00819000 r-xp 00818000 00:00 0          [vdso]
00819000-008f2000 r-xp 00000000 08:06 311485     /lib/libasound.so.2.0.0
008f2000-008f7000 rwxp 000d8000 08:06 311485     /lib/libasound.so.2.0.0
008f7000-0091e000 r-xp 00000000 08:06 2342925    /lib/libm-2.6.so
0091e000-0091f000 r-xp 00026000 08:06 2342925    /lib/libm-2.6.so
0091f000-00920000 rwxp 00027000 08:06 2342925    /lib/libm-2.6.so
00920000-00933000 r-xp 00000000 08:07 18679194   /home/andre/opt-gnome/lib/libbonobo-activation.so.4.0.0
00933000-00936000 rwxp 00013000 08:07 18679194   /home/andre/opt-gnome/lib/libbonobo-activation.so.4.0.0
00936000-00939000 r-xp 00000000 08:06 2342922    /lib/libdl-2.6.so
00939000-0093a000 r-xp 00002000 08:06 2342922    /lib/libdl-2.6.so
0093a000-0093b000 rwxp 00003000 08:06 2342922    /lib/libdl-2.6.so
0093b000-0093d000 r-xp 00000000 08:06 311471     /lib/libcom_err.so.2.1
0093d000-0093e000 rwxp 00001000 08:06 311471     /lib/libcom_err.so.2.1
0093e000-00950000 r-xp 00000000 08:06 311344     /lib/libz.so.1.2.3
00950000-00951000 rwxp 00011000 08:06 311344     /lib/libz.so.1.2.3
00951000-009a9000 r-xp 00000000 08:07 18679195   /home/andre/opt-gnome/lib/libbonobo-2.so.0.0.0
009a9000-009b3000 rwxp 00058000 08:07 18679195   /home/andre/opt-gnome/lib/libbonobo-2.so.0.0.0
009b3000-00a04000 r-xp 00000000 08:07 18679163   /home/andre/opt-gnome/lib/libORBit-2.so.0.1.0
00a04000-00a10000 rwxp 00050000 08:07 18679163   /home/andre/opt-gnome/lib/libORBit-2.so.0.1.0
00a10000-00a17000 r-xp 00000000 08:06 2342962    /lib/librt-2.6.so
00a17000-00a18000 r-xp 00006000 08:06 2342962    /lib/librt-2.6.so
00a18000-00a19000 rwxp 00007000 08:06 2342962    /lib/librt-2.6.so
00a19000-00a4e000 r-xp 00000000 08:06 378012     /usr/lib/libnspr4.so
00a4e000-00a4f000 rwxp 00035000 08:06 378012     /usr/lib/libnspr4.so
00a4f000-00a51000 rwxp 00a4f000 00:00 0 
00a51000-00a58000 r-xp 00000000 08:06 1081546    /usr/lib/libkrb5support.so.0.1
00a58000-00a59000 rwxp 00006000 08:06 1081546    /usr/lib/libkrb5support.so.0.1
00a59000-00a5b000 r-xp 00000000 08:06 311308     /lib/libkeyutils-1.2.so
Canceled
Comment 1 André Klapper 2007-07-28 01:10:23 UTC
Program received signal SIGABRT, Aborted.
[Switching to Thread 33414032 (LWP 23984)]
0x0047e402 in __kernel_vsyscall ()
(gdb) thread apply all bt

Thread 18 (Thread 33414032 (LWP 23984))

  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/libc.so.6
  • #2 abort
    from /lib/libc.so.6
  • #3 __libc_message
    from /lib/libc.so.6
  • #4 _int_free
    from /lib/libc.so.6
  • #5 free
    from /lib/libc.so.6
  • #6 IA__g_free
    at gmem.c line 187
  • #7 book_view_thread
    at e-book-backend-file.c line 628
  • #8 g_thread_create_proxy
    at gthread.c line 594
  • #9 start_thread
    from /lib/libpthread.so.0
  • #10 clone
    from /lib/libc.so.6


(hmm... why am i missing symbols? sigh...)
Comment 2 Sebastien Bacher 2007-08-29 08:35:35 UTC
The bug described on https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/135471 leads to as similar backtrace

"Binary package hint: evolution

The evolution addressbook crashes whenever I search my contacts list by "any field contains", unless all contacts match the search. So if any one contact doesn't match the search, the addressbook crashes.

The popup message I get:
"Evolution Error
The Evolution addressbook has quit unexpectedly.
Your contacts for file:///home/bill/.evolution/addressbook/local/system will not be available until Evolution is restarted."

100% repeatable.

To repeat:
(1) Go into your contacts list (any addressbook)
(2) Change the search to "Any field contains"
(3) Enter some text that shouldn't match any contacts
(4) Press enter
And it should pop up a dialog with the above error.
..."

Valgrind log for the crash:

==24571== Invalid free() / delete / delete[]
==24571==    at 0x402237F: free (vg_replace_malloc.c:233)
==24571==    by 0x47818C0: g_free (gmem.c:187)
==24571==    by 0x4F103ED: book_view_thread (e-book-backend-file.c:617)
==24571==    by 0x479D5EE: g_thread_create_proxy (gthread.c:634)
==24571==    by 0x484AFB9: start_thread (pthread_create.c:296)
==24571==    by 0x491F41D: clone (in /usr/lib/debug/libc-2.6.1.so)
==24571==  Address 0x5A880C0 is 0 bytes inside a block of size 695 free'd
==24571==    at 0x402237F: free (vg_replace_malloc.c:233)
==24571==    by 0x4052DDC: e_data_book_view_notify_update_vcard (in /usr/lib/libedata-book-1.2.so.2.4.1)
==24571==    by 0x4F10461: book_view_thread (e-book-backend-file.c:614)
==24571==    by 0x479D5EE: g_thread_create_proxy (gthread.c:634)
==24571==    by 0x484AFB9: start_thread (pthread_create.c:296)
==24571==    by 0x491F41D: clone (in /usr/lib/debug/libc-2.6.1.so)
Comment 3 Sebastien Bacher 2007-08-29 08:45:23 UTC
new valgrind with libedata-book debug version

==25310== Invalid free() / delete / delete[]
==25310==    at 0x402237F: free (vg_replace_malloc.c:233)
==25310==    by 0x47818C0: g_free (gmem.c:187)
==25310==    by 0x4F103ED: book_view_thread (e-book-backend-file.c:617)
==25310==    by 0x479D5EE: g_thread_create_proxy (gthread.c:634)
==25310==    by 0x484AFB9: start_thread (pthread_create.c:296)
==25310==    by 0x491F41D: clone (in /usr/lib/debug/libc-2.6.1.so)
==25310==  Address 0x4D7B590 is 0 bytes inside a block of size 695 free'd
==25310==    at 0x402237F: free (vg_replace_malloc.c:233)
==25310==    by 0x4052DDC: e_data_book_view_notify_update_vcard (e-data-book-view.c:325)
==25310==    by 0x4F10461: book_view_thread (e-book-backend-file.c:614)
==25310==    by 0x479D5EE: g_thread_create_proxy (gthread.c:634)
==25310==    by 0x484AFB9: start_thread (pthread_create.c:296)
==25310==    by 0x491F41D: clone (in /usr/lib/debug/libc-2.6.1.so)
Comment 4 André Klapper 2007-09-04 00:15:46 UTC
confirming as per seb's comments
Comment 5 Pedro Villavicencio 2007-09-12 21:07:49 UTC
reporter comments :

"
This seems to be fixed in the latest gutsy-devel. I can't reproduce it now.
   evolution 2.11.92-0ubuntu1
   evolution-data-server 1.11.92-0ubuntu1
Though I'm not sure this actually changed with those releases, or if it was some associated library.
"
Comment 6 André Klapper 2007-09-12 21:41:31 UTC
2.11.92svn, compiled yesterday, still nothing happens when i change categories.
Comment 7 bill 2007-10-04 04:51:43 UTC
I'm the one Pedro said called it fixed in gutsy-devel.  Well, I've reproduced it again.  There may be some entry it's been tripping over that had been removed from my addressbooks.
Comment 8 Sebastien Bacher 2007-10-22 08:42:12 UTC
*** Bug 486873 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2007-10-22 18:24:26 UTC
see bug 486873 - this still happens in the "Show:" quick search menu, and will crash for a lot of users (read: i expect a lot of duplicate reports). raising priority.
Comment 10 C de-Avillez 2007-10-22 20:16:49 UTC
*** Bug 482926 has been marked as a duplicate of this bug. ***
Comment 11 Akhil Laddha 2007-10-23 03:45:48 UTC
Created attachment 97687 [details] [review]
Double memory free

This crasher could be regression of http://bugzilla.gnome.org/show_bug.cgi?id=440524
Comment 12 Srinivasa Ragavan 2007-10-23 05:45:24 UTC
Akhil, Great job on your first patch. It fixes the bug perfectly, though minor glitches. 

You are right, e_data_book_view_notify_update_vcard frees the vcard and you dont have to free it. But inside e_data_book_view_notify_update_vcard there are places where it will not be freed. Just fix that also. (Means, remove that g_free in else and add it to the end :)

Comment 13 NicolasR 2007-10-23 08:10:16 UTC
The same bug happens in Mandriva 2008, with the EDS 1.12.0 included, and with EDS 1.12.1 that I just compiled on this Mandriva 2008.
But the patch from Akhil fixes it, so congratulations Akhil !
Comment 14 André Klapper 2007-10-24 12:20:58 UTC
*** Bug 489628 has been marked as a duplicate of this bug. ***
Comment 15 André Klapper 2007-10-28 15:07:37 UTC
*** Bug 491074 has been marked as a duplicate of this bug. ***
Comment 16 Srinivasa Ragavan 2007-10-29 02:17:41 UTC
Reworked, fixed and committed to stable/head.
Comment 18 André Klapper 2007-10-31 20:00:50 UTC
*** Bug 491691 has been marked as a duplicate of this bug. ***
Comment 19 André Klapper 2007-11-07 19:43:31 UTC
*** Bug 494530 has been marked as a duplicate of this bug. ***
Comment 20 André Klapper 2007-11-07 23:20:13 UTC
downstream ubuntu bug at https://bugs.launchpad.net/evolution/+bug/160839
Comment 21 André Klapper 2007-11-08 11:36:30 UTC
*** Bug 494759 has been marked as a duplicate of this bug. ***
Comment 22 André Klapper 2007-11-12 18:49:41 UTC
*** Bug 496205 has been marked as a duplicate of this bug. ***
Comment 23 André Klapper 2007-11-15 23:31:02 UTC
*** Bug 497232 has been marked as a duplicate of this bug. ***
Comment 24 André Klapper 2007-11-20 08:11:51 UTC
*** Bug 498392 has been marked as a duplicate of this bug. ***
Comment 25 André Klapper 2007-11-20 08:16:43 UTC
*** Bug 498204 has been marked as a duplicate of this bug. ***
Comment 26 André Klapper 2007-11-26 13:21:53 UTC
*** Bug 499336 has been marked as a duplicate of this bug. ***
Comment 27 André Klapper 2007-11-26 15:56:34 UTC
*** Bug 499135 has been marked as a duplicate of this bug. ***
Comment 28 André Klapper 2007-11-26 16:03:24 UTC
*** Bug 499275 has been marked as a duplicate of this bug. ***
Comment 29 André Klapper 2007-11-28 15:36:25 UTC
*** Bug 500212 has been marked as a duplicate of this bug. ***
Comment 30 André Klapper 2007-12-05 16:38:00 UTC
*** Bug 501672 has been marked as a duplicate of this bug. ***
Comment 31 André Klapper 2007-12-07 01:54:17 UTC
*** Bug 502201 has been marked as a duplicate of this bug. ***
Comment 32 André Klapper 2007-12-08 14:42:25 UTC
*** Bug 502383 has been marked as a duplicate of this bug. ***
Comment 33 André Klapper 2007-12-09 20:53:22 UTC
*** Bug 502666 has been marked as a duplicate of this bug. ***
Comment 34 André Klapper 2007-12-11 10:23:42 UTC
*** Bug 502901 has been marked as a duplicate of this bug. ***
Comment 35 André Klapper 2007-12-13 20:43:13 UTC
*** Bug 503460 has been marked as a duplicate of this bug. ***
Comment 36 André Klapper 2007-12-14 21:22:02 UTC
*** Bug 503636 has been marked as a duplicate of this bug. ***
Comment 37 André Klapper 2007-12-16 16:47:34 UTC
*** Bug 503811 has been marked as a duplicate of this bug. ***
Comment 38 André Klapper 2007-12-20 10:51:03 UTC
*** Bug 504612 has been marked as a duplicate of this bug. ***
Comment 39 Susana 2007-12-26 22:42:42 UTC
*** Bug 505747 has been marked as a duplicate of this bug. ***
Comment 40 André Klapper 2008-01-02 09:49:18 UTC
*** Bug 506512 has been marked as a duplicate of this bug. ***
Comment 41 André Klapper 2008-01-02 19:17:22 UTC
*** Bug 506868 has been marked as a duplicate of this bug. ***
Comment 42 André Klapper 2008-01-07 16:43:48 UTC
*** Bug 507854 has been marked as a duplicate of this bug. ***
Comment 43 Sebastien Bacher 2008-01-08 20:08:43 UTC
http://svn.gnome.org/viewvc/evolution-data-server?view=revision&revision=8161 has not been commited to trunk, is that a mistake or because it doesn't concern the new version?
Comment 44 André Klapper 2008-01-08 20:46:11 UTC
(In reply to comment #43)
<andre> 8157 & 8158 correspond, and 8159 & 8161 correspond