GNOME Bugzilla – Bug 544825
Deadlock with disk summary code...
Last modified: 2013-09-13 01:00:13 UTC
1. Program received signal SIGINT, Interrupt. 2. [Switching to Thread 0xb64226e0 (LWP 7323)] 3. 0xffffe430 in __kernel_vsyscall () 4. (gdb) t a a bt 5. 6. Thread 15 (Thread 0xb04ffb90 (LWP 7419)): 7. #0 0xffffe430 in __kernel_vsyscall () 8. #1 0xb70797a9 in __lll_lock_wait () from /lib/libpthread.so.0 9. #2 0xb7074c66 in _L_lock_89 () from /lib/libpthread.so.0 10. #3 0xb7074572 in pthread_mutex_lock () from /lib/libpthread.so.0 11. #4 0xb7d7720d in camel_read_mir_callback (ref=0xb04ff270, ncol=15, cols=0xafb800c4, name=0xafb80088) at camel-folder-summary.c:918 12. #5 0xb78a86c1 in sqlite3_exec () from /usr/lib/libsqlite3.so.0 13. #6 0xb7c77504 in camel_db_select (cdb=0xb1d453d0, 14. stmt=0xafb6f9c8 "SELECT uid, flags, size, dsent, dreceived, subject, mail_from, mail_to, mail_cc, mlist, part, labels, usertags, cinfo, bdata FROM 'INBOX/testfolder2' ", callback=0xb7d76fd0 <camel_read_mir_callback>, data=0xb04ff270, ex=0x0) at camel-db.c:422 15. #7 0xb7c77625 in camel_db_read_message_info_records (cdb=0xb1d453d0, folder_name=0xb1d427b0 "INBOX/testfolder2", p=0xb04ff270, 16. read_mir_callback=0xb7d76fd0 <camel_read_mir_callback>, ex=0x0) at camel-db.c:850 17. #8 0xb7d76e8c in camel_folder_summary_reload_from_db (s=0x84bbb50, ex=0xb04ff2e4) at camel-folder-summary.c:805 18. #9 0xb610be56 in regen_list_exec (m=0xb07415d0) at message-list.c:4078 19. #10 0xb60fcbd9 in mail_msg_proxy (msg=0xb07415d0) at mail-mt.c:523 20. #11 0xb65f6e36 in g_thread_pool_thread_proxy (data=0x84d93a0) at gthreadpool.c:265 21. #12 0xb65f579f in g_thread_create_proxy (data=0x830e588) at gthread.c:635 22. #13 0xb7073175 in start_thread () from /lib/libpthread.so.0 23. #14 0xb651cdce in clone () from /lib/libc.so.6 24. 25. Thread 13 (Thread 0xb26e3b90 (LWP 7412)): 26. #0 0xffffe430 in __kernel_vsyscall () 27. #1 0xb70797a9 in __lll_lock_wait () from /lib/libpthread.so.0 28. #2 0xb7074c66 in _L_lock_89 () from /lib/libpthread.so.0 29. #3 0xb7074572 in pthread_mutex_lock () from /lib/libpthread.so.0 30. #4 0xb7d78215 in message_info_from_uid (s=0x84bbb50, uid=0xb1d44dc0 "3226") at camel-folder-summary.c:473 31. #5 0xb7d72a20 in camel_folder_summary_uid (s=0x84bbb50, uid=0xb1d44dc0 "3226") at camel-folder-summary.c:548 32. #6 0xb7da0432 in vee_info_uint32 (mi=0x84da838, id=5) at camel-vee-summary.c:84 33. #7 0xb7d726c1 in camel_message_info_uint32 (mi=0xb1d67250, id=128) at camel-folder-summary.c:4238 34. #8 0xb7da18e8 in vtrash_getv (object=0x8348b70, ex=0x0, args=0xb26e2f64) at camel-vtrash-folder.c:146 35. #9 0xb7c9943a in camel_object_get (vo=0x8348b70, ex=0x0) at camel-object.c:1589 36. #10 0xb7d7d369 in camel_folder_get_unread_message_count (folder=0x8348b70) at camel-folder.c:663 37. #11 0xb60fa0b5 in update_1folder (mfi=0xb1d43840, new=0, info=0x0) at mail-folder-cache.c:319 38. #12 0xb60fa27f in folder_changed (o=0x8348b70, event_data=0x86febc8, user_data=0x0) at mail-folder-cache.c:434 39. #13 0xb7c9a470 in camel_object_trigger_event (vo=0x8348b70, name=0xb7da2a21 "folder_changed", event_data=0x86febc8) at camel-object.c:1495 40. #14 0xb7da0e7a in vtrash_add_folder (vf=0x8348b70, sub=0x866ef28) at camel-vtrash-folder.c:551 41. #15 0xb7d9b606 in camel_vee_folder_add_folder (vf=0x8348b70, sub=0x866ef28) at camel-vee-folder.c:223 42. #16 0xb7d967ab in camel_store_get_folder (store=0x830a000, folder_name=0x86f2ed8 "INBOX/testfolder3", flags=0, ex=0xb26e3264) at camel-store.c:303 43. #17 0xb1ebcbde in imap_can_refresh_folder (store=0x830a000, info=0xb1d44a28, ex=0xb26e3264) at camel-imap-store.c:3129 44. #18 0xb7d94ceb in camel_store_can_refresh_folder (store=0xb1d67250, info=0x80, ex=0xb26e3264) at camel-store.c:1320 45. #19 0xb6102f57 in get_folders (store=0x830a000, folders=0xb0740030, info=0xb1d44a28) at mail-send-recv.c:785 46. #20 0xb6102f3e in get_folders (store=0x830a000, folders=0xb0740030, info=0xb1d44600) at mail-send-recv.c:789 47. #21 0xb6102fba in refresh_folders_exec (m=0x836def0) at mail-send-recv.c:816 48. #22 0xb60fcbd9 in mail_msg_proxy (msg=0x836def0) at mail-mt.c:523 49. #23 0xb65f6e36 in g_thread_pool_thread_proxy (data=0x82ffb00) at gthreadpool.c:265 50. #24 0xb65f579f in g_thread_create_proxy (data=0xb073c540) at gthread.c:635 51. #25 0xb7073175 in start_thread () from /lib/libpthread.so.0 52. #26 0xb651cdce in clone () from /lib/libc.so.6 53. 54. Thread 12 (Thread 0xb1cffb90 (LWP 7403)): 55. #0 0xffffe430 in __kernel_vsyscall () 56. ---Type <return> to continue, or q <return> to quit--- 57. #1 0xb70797a9 in __lll_lock_wait () from /lib/libpthread.so.0 58. #2 0xb7074c66 in _L_lock_89 () from /lib/libpthread.so.0 59. #3 0xb7074572 in pthread_mutex_lock () from /lib/libpthread.so.0 60. #4 0xb7c7854f in camel_db_command (cdb=0xb1d453d0, stmt=0x86970e0 "DELETE FROM 'INBOX/testfolder2' WHERE uid = '2305'", ex=0xb1cfef84) at camel-db.c:143 61. #5 0xb7c7871e in camel_db_delete_uid (cdb=0xb1d453d0, folder=0xb1d427b0 "INBOX/testfolder2", uid=0x82ad4f0 "2305", ex=0xb1cfef84) at camel-db.c:862 62. #6 0xb7d74af4 in summary_remove_uid (s=0x84bbb50, uid=0x82ad4f0 "2305") at camel-folder-summary.c:1934 63. #7 0xb7d74ba8 in camel_folder_summary_remove (s=0x84bbb50, info=0x87ac058) at camel-folder-summary.c:1965 64. #8 0xb7d74c7a in camel_folder_summary_remove_uid (s=0x84bbb50, uid=0x86a7318 "2305") at camel-folder-summary.c:1996 65. #9 0xb1eae840 in camel_imap_folder_changed (folder=0x84c7e98, exists=2714, expunged=0x86feb98, ex=0x836d964) at camel-imap-folder.c:3237 66. #10 0xb1eafc17 in imap_rescan (folder=0x84c7e98, exists=2714, ex=0x836d964) at camel-imap-folder.c:1000 67. #11 0xb1eb0239 in camel_imap_folder_selected (folder=0x84c7e98, response=0x85af4e8, ex=0x836d964) at camel-imap-folder.c:421 68. #12 0xb1eb3290 in imap_refresh_info (folder=0x84c7e98, ex=0x836d964) at camel-imap-folder.c:669 69. #13 0xb7d69756 in disco_refresh_info (folder=0x84c7e98, ex=0x836d964) at camel-disco-folder.c:269 70. #14 0xb7d7d699 in camel_folder_refresh_info (folder=0x84c7e98, ex=0x836d964) at camel-folder.c:339 71. #15 0xb60ffcc7 in refresh_folder_exec (m=0x836d950) at mail-ops.c:1626 72. #16 0xb60fcbd9 in mail_msg_proxy (msg=0x836d950) at mail-mt.c:523 73. #17 0xb65f6e36 in g_thread_pool_thread_proxy (data=0x83935e0) at gthreadpool.c:265 74. #18 0xb65f579f in g_thread_create_proxy (data=0x84e0cc0) at gthread.c:635 75. #19 0xb7073175 in start_thread () from /lib/libpthread.so.0 76. #20 0xb651cdce in clone () from /lib/libc.so.6 77. 78. Thread 1 (Thread 0xb64226e0 (LWP 7323)): 79. #0 0xffffe430 in __kernel_vsyscall () 80. #1 0xb70797a9 in __lll_lock_wait () from /lib/libpthread.so.0 81. #2 0xb7074c66 in _L_lock_89 () from /lib/libpthread.so.0 82. #3 0xb7074572 in pthread_mutex_lock () from /lib/libpthread.so.0 83. #4 0xb7d78215 in message_info_from_uid (s=0x84bbb50, uid=0x8676dfb "1063") at camel-folder-summary.c:473 84. #5 0xb7d72a20 in camel_folder_summary_uid (s=0x84bbb50, uid=0x8676dfb "1063") at camel-folder-summary.c:548 85. #6 0xb7d7ee1b in get_message_info (folder=0x84c7e98, uid=0x8676dfb "1063") at camel-folder.c:1017 86. #7 0xb7d7c958 in camel_folder_get_message_info (folder=0x84c7e98, uid=0x8676dfb "1063") at camel-folder.c:1040 87. #8 0xb61105a0 in main_folder_changed (o=0x84c7e98, event_data=0x870a518, user_data=0x828a9e0) at message-list.c:3127 88. #9 0xb60fb2c3 in do_async_event (m=0x886f2d0) at mail-mt.c:684 89. #10 0xb60fd272 in mail_msg_idle_cb () at mail-mt.c:494 90. #11 0xb65c9231 in g_idle_dispatch (source=0x80f7de8, callback=0xfffffe00, user_data=0x0) at gmain.c:4173 91. #12 0xb65cb178 in IA__g_main_context_dispatch (context=0x8090ea8) at gmain.c:2068 92. #13 0xb65ce813 in g_main_context_iterate (context=0x8090ea8, block=1, dispatch=1, self=0x8068380) at gmain.c:2701 93. #14 0xb65ced32 in IA__g_main_loop_run (loop=0x80b1678) at gmain.c:2924 94. #15 0xb717a0a3 in bonobo_main () at bonobo-main.c:311 95. #16 0x0805dbe5 in main (argc=1, argv=0xbfc07224) at main.c:783
Committed to trunk.