(gdb) thread apply all bt

Thread 5 (Thread 0xb771bb40 (LWP 6049)):
#0  0x007d5416 in __kernel_vsyscall ()
#1  0x42aaefb0 in __GI___poll (fds=0xb6e00cc0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x42c7d7cc in g_poll (fds=0xb6e00cc0, nfds=3, timeout=-1) at gpoll.c:132
#3  0x42c6ec06 in g_main_context_poll (n_fds=3, fds=0xb6e00cc0, priority=<optimized out>, timeout=<optimized out>, context=0x84da5c8) at gmain.c:3386
#4  g_main_context_iterate (context=0x84da5c8, block=1120393120, dispatch=1, self=0x84c16a8) at gmain.c:3068
#5  0x42c6f337 in g_main_loop_run (loop=0x84da5b8) at gmain.c:3281
#6  0x4315118b in gdbus_shared_thread_func (user_data=0x84d9508) at gdbusprivate.c:276
#7  0x42c95ed5 in g_thread_create_proxy (data=0x84c16a8) at gthread.c:1962
#8  0x42bafcd3 in start_thread (arg=0xb771bb40) at pthread_create.c:309
#9  0x42ab983e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 4 (Thread 0xb65feb40 (LWP 6051)):
#0  0x007d5416 in __kernel_vsyscall ()
#1  0x42bb685b in read () at ../sysdeps/unix/syscall-template.S:82
#2  0x42c6a85b in read (__nbytes=128, __buf=0xb65fe1fc, __fd=<optimized out>) at /usr/include/bits/unistd.h:45
#3  unix_signal_helper_thread (data=0x0) at gmain.c:4551
#4  0x42c95ed5 in g_thread_create_proxy (data=0x84e87f0) at gthread.c:1962
#5  0x42bafcd3 in start_thread (arg=0xb65feb40) at pthread_create.c:309
#6  0x42ab983e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xb5bffb40 (LWP 9260)):
#0  0x007d5416 in __kernel_vsyscall ()
#1  0x42bb385c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:172
#2  0x4476bc5b in e_flag_wait (flag=0xb5c71590) at e-flag.c:130
#3  0x43025d4c in sync_push_request (cFile=0xb5cb8048, wait_for_finish=<optimized out>) at e-sqlite3-vfs.c:122
#4  0x43025e51 in e_sqlite3_file_xClose (pFile=0xb5cb8048) at e-sqlite3-vfs.c:209
#5  0x44952798 in sqlite3OsClose (pId=0xb5cb8048) at sqlite3.c:14302
#6  pager_end_transaction (pPager=0xb5cb7ef0, hasMaster=0) at sqlite3.c:38730
#7  0x44977826 in sqlite3PagerCommitPhaseTwo (pPager=0xb5cb7ef0) at sqlite3.c:42748
#8  sqlite3BtreeCommitPhaseTwo (p=0xb5ca7370, bCleanup=0) at sqlite3.c:50710
#9  0x4498e2b1 in sqlite3BtreeCommitPhaseTwo (bCleanup=0, p=<optimized out>) at sqlite3.c:50698
#10 vdbeCommit (p=0xb6a9c9d0, db=0xb5cac5e8) at sqlite3.c:59344
#11 sqlite3VdbeHalt (p=0xb6a9c9d0) at sqlite3.c:59744
#12 0x4499447d in sqlite3VdbeExec (p=0xb6a9c9d0) at sqlite3.c:65547
#13 0x44998ebe in sqlite3Step (p=0xb6a9c9d0) at sqlite3.c:61204
#14 sqlite3_step (pStmt=0xb6a9c9d0) at sqlite3.c:61277
#15 sqlite3_step (pStmt=0xb6a9c9d0) at sqlite3.c:61265
#16 0x4499e5ed in sqlite3_exec (db=0xb5cac5e8, zSql=0x3dc05e "COMMIT", xCallback=0, pArg=0x0, pzErrMsg=0xb5bfef1c) at sqlite3.c:86927
#17 0x003c5b08 in book_backend_sql_exec (db=0xb5cac5e8, stmt=0x3dc05e "COMMIT", callback=0, data=0x0, error=0xb5bfefbc)
    at e-book-backend-sqlitedb.c:252
#18 0x003c6c1b in book_backend_sqlitedb_end_transaction (error=<optimized out>, ebsdb=<optimized out>) at e-book-backend-sqlitedb.c:285
#19 book_backend_sqlitedb_end_transaction (ebsdb=<optimized out>, error=<optimized out>) at e-book-backend-sqlitedb.c:281
#20 0x003c7b51 in e_book_backend_sqlitedb_add_contacts (ebsdb=0xb6e04178 [EBookBackendSqliteDB], folderid=0xd92bf7 "EMA_FOLDER", contacts=
    0xb5bff008 = {...}, partial_content=0, error=0xb5bff058) at e-book-backend-sqlitedb.c:715
#21 0x003c7c1c in e_book_backend_sqlitedb_add_contact (ebsdb=0xb6e04178 [EBookBackendSqliteDB], folderid=0xd92bf7 "EMA_FOLDER", contact=
    0xb6e25208 [EContact], partial_content=0, error=0xb5bff058) at e-book-backend-sqlitedb.c:669
#22 0x00d8a05b in e_book_backend_mapi_notify_contact_update (ebma=0x84efc90 [EBookBackendMAPIGAL], pbook_view=0x0, contact=0xb6e25208 [EContact], 
    pr_last_modification_time=0xb5bff0b8, index=4463, total=84491, notify_contact_data=0xb5bff1f8) at e-book-backend-mapi.c:1561
#23 0x00d92688 in fetch_gal_cb (conn=0x852a808 [ExchangeMapiConnection], row_index=4463, n_rows=84491, aRow=0xb6ccdc64, data=0xb5bff188)
    at e-book-backend-mapi-gal.c:95
#24 0x0058142b in exchange_mapi_connection_fetch_gal (conn=0x852a808 [ExchangeMapiConnection], restrictions=0xb6a00048, build_props=
    0xd8b570 <mapi_book_utils_get_prop_list>, brp_data=0x1, cb=0xd92570 <fetch_gal_cb>, data=0xb5bff188, perror=0xb5bff1ac)
---Type <return> to continue, or q <return> to quit---
    at exchange-mapi-connection.c:1386
#25 0x00d921dc in ebbm_gal_fetch_contacts (ebma=0x84efc90 [EBookBackendMAPIGAL], restriction=0xb6a00048, book_view=0x0, notify_contact_data=
    0xb5bff1f8, error=0xb5bff274) at e-book-backend-mapi-gal.c:206
#26 0x00d87fe2 in ebbm_fetch_contacts (ebma=<optimized out>, restriction=<optimized out>, book_view=0x0, last_modification_secs=0xb5bff270, error=
    0xb5bff274) at e-book-backend-mapi.c:250
#27 0x00d8a4b1 in ebbm_update_cache_cb (data=0x84efc90) at e-book-backend-mapi.c:339
#28 0x42c95ed5 in g_thread_create_proxy (data=0xb5cd7af8) at gthread.c:1962
#29 0x42bafcd3 in start_thread (arg=0xb5bffb40) at pthread_create.c:309
#30 0x42ab983e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xb23f8b40 (LWP 9371)):
#0  0x007d5416 in __kernel_vsyscall ()
#1  0x42ab23bf in fdatasync () at ../sysdeps/unix/syscall-template.S:82
#2  0x44966d96 in full_fsync (dataOnly=0, fullSync=0, fd=<optimized out>) at sqlite3.c:27698
#3  unixSync (id=0xb5cd4a48, flags=2) at sqlite3.c:27746
#4  0x43025fed in call_old_file_Sync (flags=<optimized out>, cFile=<optimized out>) at e-sqlite3-vfs.c:55
#5  sync_request_thread_cb (task_data=0xb5c6f3f0, null_data=0x0) at e-sqlite3-vfs.c:75
#6  0x42c9834f in g_thread_pool_thread_proxy (data=0x84ea0f0) at gthreadpool.c:319
#7  0x42c95ed5 in g_thread_create_proxy (data=0x851b458) at gthread.c:1962
#8  0x42bafcd3 in start_thread (arg=0xb23f8b40) at pthread_create.c:309
#9  0x42ab983e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb771ca40 (LWP 6047)):
#0  0x007d5416 in __kernel_vsyscall ()
#1  0x42aaefb0 in __GI___poll (fds=0x84e88c0, nfds=2, timeout=5412) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x42c7d7cc in g_poll (fds=0x84e88c0, nfds=2, timeout=5412) at gpoll.c:132
#3  0x42c6ec06 in g_main_context_poll (n_fds=2, fds=0x84e88c0, priority=<optimized out>, timeout=<optimized out>, context=0x84bff50) at gmain.c:3386
#4  g_main_context_iterate (context=0x84bff50, block=1120393120, dispatch=1, self=0x84b0020) at gmain.c:3068
#5  0x42c6f337 in g_main_loop_run (loop=0x84be588) at gmain.c:3281
#6  0x0804a3fe in main (argc=1, argv=0xbfa9af44) at e-data-book-factory.c:892

