Bug 3093 - SIGSEGV imap_threaded_noop at imap-thread.c:1099
Summary: SIGSEGV imap_threaded_noop at imap-thread.c:1099
Status: RESOLVED WORKSFORME
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Folders/IMAP (show other bugs)
Version: 3.9.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2014-02-18 13:58 UTC by kardan
Modified: 2014-02-18 18:31 UTC (History)
0 users

See Also:


Attachments

Description kardan 2014-02-18 13:58:43 UTC
Claws Mail version 3.9.0cvs128

** (claws-mail:28475): WARNING **: [10:30:48] IMAP4 connection broken

Program received signal SIGSEGV, Segmentation fault.
imap_threaded_noop (folder=0xf05e00, p_exists=p_exists@entry=0x7fffffffde58, p_recent=p_recent@entry=0x7fffffffde5c, 
    p_expunge=p_expunge@entry=0x7fffffffde60, p_unseen=p_unseen@entry=0x7fffffffde64, p_uidnext=p_uidnext@entry=0x7fffffffde68, 
    p_uidval=p_uidval@entry=0x7fffffffde6c) at imap-thread.c:1099
1099                    * p_exists = imap->imap_selection_info->sel_exists;

sr/etpan/imap-thread.c:
        imap = get_imap(folder);
        param.imap = imap;
        threaded_run(folder, &param, &result, noop_run);
        if (result.error == 0 && imap && imap->imap_selection_info != NULL) {
                * p_exists = imap->imap_selection_info->sel_exists;
                * p_recent = imap->imap_selection_info->sel_recent;
                * p_unseen = imap->imap_selection_info->sel_unseen;
                * p_uidnext = imap->imap_selection_info->sel_uidnext;
                * p_uidval = imap->imap_selection_info->sel_uidvalidity;

(gdb) p *p_exists 
$6 = 35801088
(gdb) p *p_expunge 
$7 = 114882944
(gdb) p *p_unseen 
$8 = 0
(gdb) p *p_uidval 
$9 = 32767
(gdb) p *p_uidnext 
$10 = 4112902592
(gdb) p *p_recent 
$11 = 0

4004    static gint imap_cmd_noop(IMAPSession *session)
4005    {
4006            int r;
4007            unsigned int exists, recent, expunge, unseen, uidnext, uidval;
4008
4009            r = imap_threaded_noop(session->folder, &exists, &recent, &expunge, &unseen, &uidnext, &uidval);
4010            if (r != MAILIMAP_NO_ERROR) {
4011                    imap_handle_error(SESSION(session), NULL, r);
4012                    debug_print("noop err %d\n", r);
4013                    return r;

#0  imap_threaded_noop (folder=0xf05e00, p_exists=p_exists@entry=0x7fffffffde58, p_recent=p_recent@entry=0x7fffffffde5c, 
    p_expunge=p_expunge@entry=0x7fffffffde60, p_unseen=p_unseen@entry=0x7fffffffde64, p_uidnext=p_uidnext@entry=0x7fffffffde68, 
    p_uidval=p_uidval@entry=0x7fffffffde6c) at imap-thread.c:1099
#1  0x00000000004a5cd7 in imap_cmd_noop (session=session@entry=0x2224800) at imap.c:4009
#2  0x00000000004a623d in imap_ping (data=0x2224800) at imap.c:559
#3  imap_ping (data=0x2224800, data@entry=<error reading variable: value has been optimized out>) at imap.c:547
#4  0x00007ffff4fb2eeb in g_timeout_dispatch (source=source@entry=0x6d8f980, callback=<optimized out>, user_data=<optimized out>)
    at /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gmain.c:3882
#5  0x00007ffff4fb2355 in g_main_dispatch (context=0xbf6a60) at /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gmain.c:2539
#6  g_main_context_dispatch (context=context@entry=0xbf6a60) at /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gmain.c:3075
#7  0x00007ffff4fb2688 in g_main_context_iterate (context=0xbf6a60, block=block@entry=1, dispatch=dispatch@entry=1, 
    self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gmain.c:3146
#8  0x00007ffff4fb2a82 in g_main_loop_run (loop=0xef8840) at /tmp/buildd/glib2.0-2.33.12+really2.32.4/./glib/gmain.c:3340
#9  0x00007ffff6e89797 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#10 0x000000000044e8cb in main (argc=1, argv=0x7fffffffe438) at main.c:1719

(gdb) p *session                                                                                                                                    [50/1959]
$2 = {session = {type = SESSION_IMAP, sock = 0x0, server = 0x1bedf00 "mail.~.net", port = 993, nonblocking = 1, state = SESSION_DISCONNECTED, 
    last_access_time = 1392715665, tv_prev = {tv_sec = 1392568462, tv_usec = 11516}, conn_id = 0, 
io_tag = 0, read_buf = '\000' <repeats 4095 times>, 
    read_buf_p = 0x2224848 "", read_buf_len = 0, read_msg_buf = 0x767dc80, read_data_buf = 0x328e6a0, read_data_terminator = 0x0, write_buf = 0x0, 
    write_buf_p = 0x0, write_buf_len = 0, write_data = 0x0, write_data_p = 0x0, write_data_len = 0, timeout_tag = 0, timeout_interval = 0, data = 0x0, 
    recv_msg = 0, send_data_finished = 0, recv_data_finished = 0, destroy = 0x4a4ff0 <imap_session_destroy>, recv_msg_notify = 0, 
    recv_data_progressive_notify = 0, recv_data_notify = 0, send_data_progressive_notify = 0, send_data_notify = 0, recv_msg_notify_data = 0x0, 
    recv_data_progressive_notify_data = 0x0, recv_data_notify_data = 0x0, send_data_progressive_notify_data = 0x0, send_data_notify_data = 0x0, 
    account = 0xef3ab0, is_smtp = 0, ping_tag = 1643047, ssl_type = SSL_NONE}, authenticated = 1, capability = 0x325b670, uidplus = 0, 
  mbox = 0x2b3f3f0 "INBOX", cmd_count = 0, folder_content_changed = 1, exists = 159, recent = 0, expunge = 0, unseen = 0, uid_validity = 1328764410, 
  uid_next = 72102, folder = 0xf05e00, busy = 0, cancelled = 0, sens_update_block = 0}
(gdb) 
$3 = {session = {type = SESSION_IMAP, sock = 0x0, server = 0x1bedf00 "mail.~.net", port = 993, nonblocking = 1, state = SESSION_DISCONNECTED, 
    last_access_time = 1392715665, tv_prev = {tv_sec = 1392568462, tv_usec = 11516}, conn_id = 0, io_tag = 0, read_buf = '\000' <repeats 4095 times>, 
    read_buf_p = 0x2224848 "", read_buf_len = 0, read_msg_buf = 0x767dc80, read_data_buf = 0x328e6a0, read_data_terminator = 0x0, write_buf = 0x0, 
    write_buf_p = 0x0, write_buf_len = 0, write_data = 0x0, write_data_p = 0x0, write_data_len = 0, timeout_tag = 0, timeout_interval = 0, data = 0x0, 
    recv_msg = 0, send_data_finished = 0, recv_data_finished = 0, destroy = 0x4a4ff0 <imap_session_destroy>, recv_msg_notify = 0, 
    recv_data_progressive_notify = 0, recv_data_notify = 0, send_data_progressive_notify = 0, send_data_notify = 0, recv_msg_notify_data = 0x0, 
    recv_data_progressive_notify_data = 0x0, recv_data_notify_data = 0x0, send_data_progressive_notify_data = 0x0, send_data_notify_data = 0x0, 
    account = 0xef3ab0, is_smtp = 0, ping_tag = 1643047, ssl_type = SSL_NONE}, authenticated = 1, capability = 0x325b670, uidplus = 0, 
  mbox = 0x2b3f3f0 "INBOX", cmd_count = 0, folder_content_changed = 1, exists = 159, recent = 0, expunge = 0, unseen = 0, uid_validity = 1328764410, 
  uid_next = 72102, folder = 0xf05e00, busy = 0, cancelled = 0, sens_update_block = 0}
Comment 1 Paul 2014-02-18 14:03:24 UTC
please upgrade to the latest release before reporting bugs.
if you've upgraded and can reproduce this crash, then re-open this item and explain the steps needed to reproduce it.
Comment 2 Michael Schwendt 2014-02-18 18:29:28 UTC
Several users have reported it for 3.9.3 here:
https://bugzilla.redhat.com/1001508
Comment 3 Michael Schwendt 2014-02-18 18:31:11 UTC
Oh, and it's a dupe of bug 2926 in this tracker.

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