Bug 2643 - claws crash when accessing imap folder
Summary: claws crash when accessing imap folder
Status: RESOLVED DUPLICATE of bug 1644
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Folders/IMAP (show other bugs)
Version: 3.8.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2012-04-04 22:58 UTC by reynaldomic
Modified: 2014-05-01 11:10 UTC (History)
0 users

See Also:


Attachments

Description reynaldomic 2012-04-04 22:58:59 UTC
As the summary says i'm experiencing some random crashes when i access a folder of my imap account (gmail imap).

I've seen this behaviour at least from two previous releases, that is 3.7.9 and 3.7.10

I've finally been able to compile from source enabling debug traces. Below I attach a debug trace when it crashed.

####################


Claws Mail version 3.8.0
GTK+ version 2.24.10 / GLib 2.30.2
Locale: es_PE.utf8 (charset: UTF-8)
Features: IPv6 iconv compface GnuTLS LDAP JPilot GNU/aspell libetpan libSM
Operating system: Linux 3.2.9-1-ARCH (x86_64)
C Library: GNU libc 2.15
--
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7f1daaa20700 (LWP 29367)]
0x00007f1db5b9fe4d in waitpid () from /lib/libpthread.so.0
#0  0x00007f1db5b9fe4d in waitpid () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00000000004b58a2 in crash_handler (sig=11) at crash.c:541
        pid = 30552
        crashed_ = 1
#2  <signal handler called>
No symbol table info available.
#3  0x00000000006a49d5 in gtk_cmctree_node_get_row_data (ctree=0x247c5e0, node=0x39bc240) at gtkcmctree.c:4549
No locals.
#4  0x0000000000611f4e in summary_set_row_marks (summaryview=0x265e720, row=0x39bc240) at summaryview.c:3733
        ctree = 0x247c5e0
        style = 0x0
        msginfo = 0x7f1db54a76ba
        flags = {perm_flags = 2946792352, tmp_flags = 32767}
        col_pos = 0x265e858
#5  0x0000000000610f54 in msginfo_mark_as_read (summaryview=0x265e720, msginfo=0x4224d00, row=0x39bc240) at summaryview.c:3431
No locals.
#6  0x0000000000610fcd in msginfo_mark_as_read_timeout (data=0x2d3ccb0) at summaryview.c:3448
        mdata = 0x2d3ccb0
#7  0x00007f1db548d09b in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#8  0x00007f1db548b8bd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#9  0x00007f1db548c0b8 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x00007f1db548c5f2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0x00007f1db7ea9637 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#12 0x000000000052ec6f in main (argc=2, argv=0x7fffafa48fc8) at main.c:1653
        connection = 0x24873c8
        error = 0x0
        userrc = 0x24913a0 "/home/rbm/.claws-mail/imapcache"
        mainwin = 0x24d5a00
        folderview = 0x24d04e0
        icon = 0x24a3320
        crash_file_present = 0
        num_folder_class = 5
        asked_for_migration = 0
        start_done = 0
        gui_manager = 0x246e990
        plug_list = 0x0
        never_ran = 0
        start = {tv_sec = 1333559755, tv_usec = 959322}
        end = {tv_sec = 1333559756, tv_usec = 427109}
        diff = {tv_sec = 0, tv_usec = 467787}
        timing_name = 0x7036a6 "startup"
        __FUNCTION__ = "main"
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
Comment 1 kardan 2013-08-01 14:07:53 UTC
This seems to be related. Happened when switching between folders.
3.9.2git27

[13:32:55] IMAP4< 131 OK Store completed.
imap-thread.c:3256:imap store run - end 0
imap-thread.c:404:generic_cb                                                    imap-thread.c:3278:imap store - end
Program received signal SIGSEGV, Segmentation fault.
summary_set_row_marks (summaryview=summaryview@entry=0x8652fc8, row=row@entry=0x8a85da0) at summaryview.c:3823                 
3823            flags = msginfo->flags;
Thread 1 (Thread 0xb63bab00 (LWP 25992))
#0  summary_set_row_marks (summaryview=summaryview@entry=0x8652fc8, row=row@entry=0x8a85da0) at summaryview.c:3823
#1  0x081b201d in msginfo_mark_as_read (summaryview=0x8652fc8, msginfo=<optimized out>, row=0x8a85da0) at summaryview.c:3524
#2  0x081b20ed in msginfo_mark_as_read_timeout (data=data@entry=0x88922c0) at summaryview.c:3541
#3  0xb740d087 in g_timeout_dispatch (source=source@entry=0x844ab00, callback=0x81b20a0 <msginfo_mark_as_read_timeout>, user_da
ta=0x88922c0) at /build/glib2.0-EIRQgp/glib2.0-2.36.3/./glib/gmain.c:4413
#4  0xb740c333 in g_main_dispatch (context=0x84e66b0, context@entry=0x8733c18) at /build/glib2.0-EIRQgp/glib2.0-2.36.3/./glib/gmain.c:3054
Comment 2 users 2014-05-01 11:08:31 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 3 Colin Leroy 2014-05-01 11:10:40 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.