GNOME Bugzilla – Bug 621221
imapx deadlock
Last modified: 2010-06-10 17:02:34 UTC
Program received signal SIGINT, Interrupt. 0x00000031506d7e13 in poll () from /lib64/libc.so.6 (gdb) thread a a bt
+ Trace 222343
Thread 24 (Thread 0x7fffbebfd710 (LWP 8596))
Thread 20 (Thread 0x7fffdf5fe710 (LWP 8592))
Classic AB-BA deadlock. In Thread 20, frame #5 message_info_from_uid() we obtain the summary_lock. Then in frame #3 camel_db_select() tries to get cdb->lock. In Thread 24, frame #7 camel_db_select() holds cdb->lock. Then in frame #4 folder_summary_insert() tries to get summary_lock. Which order are these locks supposed to be obtained in? One of the above code paths is buggy.
Thanks for a bug report. With recent changes in gnome-2-30 (added recursive locks for the camel-folder-summary) one can do the same (almost the same) as in bug #617261 to avoid the bug. I'm marking this as a duplicate and I'm committing similar patch to gnome-2-30 of eds. *** This bug has been marked as a duplicate of bug 617261 ***