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 627332 - Crash in talloc_free_internal , ebbm_contacts_fetch_contacts
Crash in talloc_free_internal , ebbm_contacts_fetch_contacts
Status: RESOLVED DUPLICATE of bug 627999
Product: evolution-mapi
Classification: Applications
Component: Contacts (Addressbook)
0.31.x
Other Linux
: High critical
: ---
Assigned To: evolution-mapi-maint
evolution-mapi-maint
Depends on:
Blocks:
 
 
Reported: 2010-08-19 05:30 UTC by Akhil Laddha
Modified: 2010-08-30 10:26 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
eds patch (705 bytes, patch)
2010-08-25 15:12 UTC, Milan Crha
committed Details | Review

Description Akhil Laddha 2010-08-19 05:30:48 UTC
evolution-mapi 0.31.91

Launched evolution in task view with mapi account enabled

(e-addressbook-factory:12636): libedata-book-WARNING **: file is not a valid summary file

(e-addressbook-factory:12636): libedata-book-WARNING **: file is not a valid summary file
[New Thread 0xb1e52b70 (LWP 12649)]
[New Thread 0xb3afeb70 (LWP 12651)]
[New Thread 0xb32fdb70 (LWP 12652)]
[New Thread 0xb2afcb70 (LWP 12653)]
[New Thread 0xb1651b70 (LWP 12654)]
[New Thread 0xb0e50b70 (LWP 12655)]
[New Thread 0xb04ffb70 (LWP 12656)]
[New Thread 0xafcfeb70 (LWP 12657)]
[New Thread 0xaefffb70 (LWP 12658)]
[New Thread 0xae7feb70 (LWP 12659)]
[New Thread 0xadffdb70 (LWP 12660)]
[New Thread 0xad7fcb70 (LWP 12661)]
[Thread 0xad7fcb70 (LWP 12661) exited]
[New Thread 0xacffbb70 (LWP 12662)]
talloc: double free error - first free may be at lib/stream/packet.c:516
Bad talloc magic value - double free

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xadffdb70 (LWP 12660)]
0xffffe430 in __kernel_vsyscall ()
(gdb) t a a bt

Thread 13 (Thread 0xae7feb70 (LWP 12659))

  • #0 g_static_rec_mutex_lock
    at gthread.c line 1409
  • #1 exchange_mapi_connection_resolve_named_prop
    at exchange-mapi-connection.c line 2358
  • #2 exchange_mapi_util_find_array_namedid
    at exchange-mapi-utils.c line 293
  • #3 mapi_book_utils_contact_from_props
    at e-book-backend-mapi.c line 1821
  • #4 fetch_contacts_cb
    at e-book-backend-mapi-contacts.c line 606
  • #5 exchange_mapi_connection_fetch_items
    at exchange-mapi-connection.c line 1694
  • #6 ebbm_contacts_fetch_contacts
    at e-book-backend-mapi-contacts.c line 1106
  • #7 ebbm_fetch_contacts
    at e-book-backend-mapi.c line 245
  • #8 ebbm_update_cache_cb
    at e-book-backend-mapi.c line 325
  • #9 g_thread_create_proxy
    at gthread.c line 1897
  • #10 start_thread
    from /lib/libpthread.so.0
  • #11 clone
    from /lib/libc.so.6
(gdb) 
(gdb)
Comment 1 Akhil Laddha 2010-08-23 11:45:43 UTC
Valgrind of e-addressbook-factory

Changed task status from not started to in progress

GThread-ERROR **: file gthread-posix.c: line 385 (g_thread_join_posix_impl): error 'Invalid argument' during 'pthread_join (*(pthread_t*)thread, &ignore)'
aborting...
==6442== 
==6442== Process terminating with default action of signal 5 (SIGTRAP)
==6442==    at 0x50E8307: g_logv (gmessages.c:544)
==6442==    by 0x50E83A7: g_log (gmessages.c:568)
==6442==    by 0x4EA4C8E: g_thread_join_posix_impl (gthread-posix.c:385)
==6442==    by 0x510BDD5: g_thread_join (gthread.c:2042)
==6442==    by 0x64BBE38: ebbm_dispose (e-book-backend-mapi.c:1301)
==6442==    by 0x4E6F1F2: g_object_unref (gobject.c:2543)
==6442==    by 0x4046501: e_data_book_dispose (e-data-book.c:848)
==6442==    by 0x4E6F1F2: g_object_unref (gobject.c:2543)
==6442==    by 0x4045D62: impl_Book_close (e-data-book.c:735)
==6442==    by 0x40503BE: _e_gdbus_gdbus_cclosure_marshaller_BOOLEAN__OBJECT (e-gdbus-marshallers.c:165)
==6442==    by 0x4E683D9: g_closure_invoke (gclosure.c:766)
==6442==    by 0x4E804D3: signal_emit_unlocked_R (gsignal.c:3252)
==6442== 
==6442== HEAP SUMMARY:
==6442==     in use at exit: 13,448,084 bytes in 92,808 blocks
==6442==   total heap usage: 12,852,870 allocs, 12,760,062 frees, 5,045,939,183 bytes allocated
==6442== 
==6442== LEAK SUMMARY:
==6442==    definitely lost: 13,243 bytes in 474 blocks
==6442==    indirectly lost: 0 bytes in 0 blocks
==6442==      possibly lost: 13,184,176 bytes in 89,975 blocks
==6442==    still reachable: 250,665 bytes in 2,359 blocks
==6442==         suppressed: 0 bytes in 0 blocks
Comment 2 Milan Crha 2010-08-25 15:12:26 UTC
Created attachment 168744 [details] [review]
eds patch

for evolution-data-server;

I do not see this myself, but when I was looking on bug #627331 I realized an issue related to this bug report, so I did a little change in that bug for this and this patch for eds. Please test with both applied (or updated git master sources) and if you still see it, then reopen. Thanks in advance.
Comment 3 Milan Crha 2010-08-25 15:13:51 UTC
Actually, the above patch is related to the valgrind output only, somehow.
Comment 4 Milan Crha 2010-08-25 15:16:11 UTC
Created commit 9def147 in eds master (2.31.91+)

I'm not closing this, please retest.
Comment 5 Akhil Laddha 2010-08-27 08:30:50 UTC
I still get the crash while auto completing.
Comment 6 Milan Crha 2010-08-30 10:26:25 UTC
This should be fixed within ug #627999, thus I'm marking it as a duplicate (see the comment at the patch attachment, it covers both broken summary file and openchange/samba4 thread unsafety).

*** This bug has been marked as a duplicate of bug 627999 ***