Bug 2145 - Claws becomes unresponsive and gets Killed while moving messages between imap folders
Summary: Claws becomes unresponsive and gets Killed while moving messages between imap...
Status: RESOLVED DUPLICATE of bug 1644
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Folders/IMAP (show other bugs)
Version: 3.7.5
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2010-03-21 05:41 UTC by amit.j.jain+claws
Modified: 2014-05-01 11:09 UTC (History)
0 users

See Also:


Attachments

Description amit.j.jain+claws 2010-03-21 05:41:20 UTC
Claws becomes unresponsive while moving mail between imap folders. I have about 10000+ emails in my different imap (gmail) accounts. At a time I archive (move about 100+ emails) between various folders. While doing this, claws periodically becomes unresponsive. I am unsure if it is because of a problem in handling IMAP/folders or executing "move action" on imap folders. 

Regards, 
Amit

The dump is given below:

Claws Mail version 3.7.5
GTK+ version 2.18.7 / GLib 2.22.4
Locale: en_US.utf8 (charset: UTF-8)
Features: IPv6 iconv compface GnuTLS LDAP JPilot GNU/aspell libetpan libSM
Operating system: Linux 2.6.32-ARCH (x86_64)
C Library: GNU libc 2.11.1
--
[Thread debugging using libthread_db enabled]
[New Thread 0x7fb4ed94d710 (LWP 20819)]
[New Thread 0x7fb4efc57710 (LWP 19270)]
0x00007fb5033dfa5d in waitpid () from /lib/libpthread.so.0
#0  0x00007fb5033dfa5d in waitpid () from /lib/libpthread.so.0
No symbol table info available.
#1  0x0000000000494f2b in ?? ()
No symbol table info available.
#2  <signal handler called>
No symbol table info available.
#3  0x00007fb502f26130 in g_str_hash () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#4  0x00007fb502ef56bd in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#5  0x000000000051d5a5 in msgcache_get_msg_by_id ()
No symbol table info available.
#6  0x00000000004b33b2 in folder_item_get_msginfo_by_msgid ()
No symbol table info available.
#7  0x00000000004b59a6 in ?? ()
No symbol table info available.
#8  0x00000000004b6318 in folder_item_move_msgs ()
No symbol table info available.
#9  0x00000000004aeba0 in filtering_move_and_copy_msgs ()
No symbol table info available.
#10 0x000000000044aa00 in ?? ()
No symbol table info available.
#11 0x000000000044acba in ?? ()
No symbol table info available.
#12 0x00007fb50319991e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#13 0x00007fb5031ad9d3 in signal_emit_unlocked_R ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#14 0x00007fb5031aed89 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#15 0x00007fb5031af0bf in g_signal_emit_by_name ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#16 0x00007fb50319991e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#17 0x00007fb5031ad9d3 in signal_emit_unlocked_R ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#18 0x00007fb5031aed89 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#19 0x00007fb5031af283 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#20 0x00007fb5055904f5 in gtk_real_button_released ()
   from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#21 0x00007fb50319991e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#22 0x00007fb5031ad2ec in signal_emit_unlocked_R ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#23 0x00007fb5031aed89 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#24 0x00007fb5031af283 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#25 0x00007fb50558f1ad in gtk_button_button_release ()
   from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#26 0x00007fb50563dd58 in _gtk_marshal_BOOLEAN__BOXED ()
   from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#27 0x00007fb50319991e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#28 0x00007fb5031ad69d in signal_emit_unlocked_R ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#29 0x00007fb5031aec1c in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#30 0x00007fb5031af283 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#31 0x00007fb50574510f in gtk_widget_event_internal ()
   from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#32 0x00007fb505636303 in gtk_propagate_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#33 0x00007fb5056372d3 in gtk_main_do_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#34 0x00007fb5052b597c in gdk_event_dispatch ()
   from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#35 0x00007fb502f0426e in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#36 0x00007fb502f07c28 in g_main_context_iterate ()
   from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#37 0x00007fb502f08085 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#38 0x00007fb5056377a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#39 0x00000000004f2f19 in main ()
No symbol table info available.
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
Comment 1 kardan 2010-08-26 15:10:20 UTC
same here.

Claws Mail version 3.7.6cvs28
GNU gdb (GDB) 7.1-ubuntu
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
Linux 2.6.32-24-generic-pae #41-Ubuntu SMP i686 GNU/Linux
libgtk2.0-0                                     2.20.1-0ubuntu2
LANG=de_DE.UTF-8

Program received signal SIGSEGV, Segmentation fault.
0x080fd6c6 in folder_item_get_msginfo_by_msgid (item=0xc0570000,
    msgid=0xc0763000 <Address 0xc0763000 out of bounds>) at folder.c:2771
2771    folder.c: No such file or directory.
        in folder.c
(gdb) run
Starting program: /usr/bin/claws-mail
[Thread debugging using libthread_db enabled]
(claws-mail:4289): Claws-Mail-WARNING **: tag name != "folder"
(claws-mail:4289): Claws-Mail-WARNING **: tag name != "folder"
(claws-mail:4289): Claws-Mail-WARNING **: tag name != "folder"
(claws-mail:4289): Claws-Mail-WARNING **: tag name != "folder"
(claws-mail:4289): Claws-Mail-WARNING **: tag name != "folder"
(claws-mail:4289): Claws-Mail-WARNING **: tag name != "folder"
[New Thread 0xb6e5ab70 (LWP 4302)]

Program received signal SIGSEGV, Segmentation fault.
0x080fd6c6 in folder_item_get_msginfo_by_msgid (item=0xc0570000,
    msgid=0xc0763000 <Address 0xc0763000 out of bounds>) at folder.c:2771
2771    folder.c: No such file or directory.
        in folder.c
(gdb) bt
#0  0x080fd6c6 in folder_item_get_msginfo_by_msgid (item=0xc0570000,
    msgid=0xc0763000 <Address 0xc0763000 out of bounds>) at folder.c:2771
#1  0x081e1426 in procmsg_msg_has_flagged_parent_real (info=0x83d0d10,
    perm_flags=4, parentmsgs=<value optimized out>) at procmsg.c:2029
#2  0x081e15cc in procmsg_msg_has_flagged_parent (info=0x83d0d10, perm_flags=4)
    at procmsg.c:2077
#3  0x081e1639 in procmsg_msg_has_marked_parent (info=0x83d0d10)
    at procmsg.c:2089
#4  0x081e1938 in update_folder_msg_counts (item=0x86c94c8,
    msginfo=0xc0763000, old_flags=65539) at procmsg.c:1831
#5  0x081e1cdb in procmsg_msginfo_unset_flags (msginfo=0x83d0d10,
    perm_flags=3, tmp_flags=0) at procmsg.c:1950
#6  0x081f7d2a in summary_msginfo_unset_flags (msginfo=0x83d0d10, flags=3,
    tmp_flags=139884784) at summaryview.c:3302
#7  0x081ffa3c in msginfo_mark_as_read (summaryview=0x8577e00, msginfo=0x0,
    row=0x8722bb0) at summaryview.c:3386
#8  0x081ffc45 in msginfo_mark_as_read_timeout (data=0x84f9bf8)
    at summaryview.c:3405
#9  0x00834d5c in ?? () from /lib/libglib-2.0.so.0
#10 0x008345e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#11 0x008382d8 in ?? () from /lib/libglib-2.0.so.0
#12 0x00838817 in g_main_loop_run () from /lib/libglib-2.0.so.0
#13 0x002a23c9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x081426f5 in main (argc=1, argv=0xbffff2e4) at main.c:1661
Comment 2 Michael Schwendt 2011-01-23 22:14:58 UTC
Becoming unresponsive and crashing with a segfault are two different symptoms.

I'd like comment 1 to be filed as a separate ticket, because it affects several users running Fedora 13 and 14, too, and it would be good to have a separate ticket tracking this. I've killed several duplicates today, all with the same backtrace and IMAP GoogleMail, but different usage prior to the crash. Some users tried to delete a message, some tried to open another folder while Claws Mail was busy working on one, and I know Claws Mail can also crash occasionally during IMAP if the connection is interrupted somehow.

See e.g. http://bugz.fedoraproject.org/claws-mail
 -> https://bugzilla.redhat.com/631090
Comment 3 users 2014-05-01 11:08:07 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

++ ChangeLog	2014-05-01 11:08:05.059847812 +0200
http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=2f82c4d478562869a5c1740326d13f269bedc6f4
Merge: ec473b1 cbcbd9f
Author: Colin Leroy <colin@colino.net>
Date:   Thu May 1 11:08:04 2014 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=cbcbd9f670977dc662cc57ffc16c9da0785d09e5
Author: Colin Leroy <colin@colino.net>
Date:   Thu May 1 11:07:02 2014 +0200

    Better fix: cancel cb also when moving, exec'ing, etc

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=69ad42ac63e99ea220f04043b6fc832f57654ff4
Author: Colin Leroy <colin@colino.net>
Date:   Thu May 1 10:54:47 2014 +0200

    Track the mark-as-read timeout to be able to cancel it properly
    when changing message or folder. Should fix bug #1644, "race condition
    between message move and mark as read after timeout", bug #2145 "Claws
    becomes unresponsive and gets Killed while moving messages between imap
    folders", and bug #2643 "claws crash when accessing imap folder"

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=37c645c548099e584a0e81a0b50d412d397e1d61
Author: Colin Leroy <colin@colino.net>
Date:   Thu May 1 10:19:56 2014 +0200

    Better fix

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=3b9495ffd45462514899cf4d247e9703dcf5e748
Author: Colin Leroy <colin@colino.net>
Date:   Thu May 1 10:18:57 2014 +0200

    Fix type
Comment 4 Colin Leroy 2014-05-01 11:09:09 UTC

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

Note You need to log in before you can comment on or make changes to this bug.