Recent update causes segfault in proxy mode

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Fri Apr 29 09:46:25 UTC 2016


* Ralf Hildebrandt <Ralf.Hildebrandt at charite.de>:

> Unfortunately, I'm not getting a backtrace :(

got it:

# gdb /usr/lib/dovecot/imap 16784
GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/dovecot/imap...Reading symbols from /usr/lib/debug/.build-id/5a/15dc6951744d026af424747e7b72a4fb550c6b.debug...done.
done.
Attaching to program: /usr/lib/dovecot/imap, process 16784
ptrace: No such process.
[New LWP 16784]
Core was generated by `dovecot/imap'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  buffer_delete (_buf=0x0, pos=0, size=0) at buffer.c:213
213	buffer.c: No such file or directory.
(gdb) bt full
#0  buffer_delete (_buf=0x0, pos=0, size=0) at buffer.c:213
        buf = 0x0
        end_size = <optimized out>
#1  0x00007febcad5407e in array_delete_i (count=1, idx=1992, array=0x7febcd4b7b68) at ../../../../src/lib/array.h:200
No locals.
#2  imapc_untagged_expunge (reply=<optimized out>, mbox=0x7febcd4b77f0) at imapc-mailbox.c:473
        msgmap = 0x7febcd4b9320
        lseq = 3444200800
        uid = 142578
        rseq = 1993
#3  0x00007febcad56632 in imapc_storage_client_untagged_cb (reply=0x7ffe117d5500, context=0x7febcd483080) at imapc-storage.c:204
        mcb__foreach_end = 0x7febcd4b7f48
        client = 0x7febcd483080
        mbox = 0x7febcd4b77f0
        cb = <optimized out>
        mcb = 0x7febcd4b7f28
#4  0x00007febcad5c90a in imapc_connection_input_untagged (conn=conn at entry=0x7febcd4a5560) at imapc-connection.c:1144
        imap_args = 0x7febcd4a9b08
        data = <optimized out>
        size = 140650738261000
        name = 0x7febcd4a9c08 "EXPUNGE"
        value = <optimized out>
        parser = 0x7febcd4a57b0
        reply = {name = 0x7febcd4a9c08 "EXPUNGE", num = 1993, args = 0x7febcd4a9b08, file_args = 0x7febcd4a7470, file_args_count = 0, resp_text_key = 0x0, resp_text_value = 0x0, 
          untagged_box_context = 0x7febcd4b77f0}
        ret = <optimized out>
#5  0x00007febcad5e7d9 in imapc_connection_input_one (conn=0x7febcd4a5560) at imapc-connection.c:1398
        tag = 0x7febcd4a9bf8 "*"
        ret = -1
#6  imapc_connection_input_pending (conn=0x7febcd4a5560) at imapc-connection.c:1766
        _data_stack_cur_id = 6
        ret = 1
        conn = 0x7febcd4a5560
#7  0x00007febcad5e82a in imapc_connection_input (conn=0x7febcd4a5560) at imapc-connection.c:1438
        errstr = <optimized out>
        str = <optimized out>
        ret = <optimized out>
#8  0x00007febcaa5905c in io_loop_call_io (io=0x7febcd4bd3d0) at ioloop.c:564
        ioloop = 0x7febcd4babc0
        t_id = 5
        __FUNCTION__ = "io_loop_call_io"
#9  0x00007febcaa5a4c1 in io_loop_handler_run_internal (ioloop=ioloop at entry=0x7febcd4babc0) at ioloop-epoll.c:220
        ctx = 0x7febcd4bac90
        io = <optimized out>
        tv = {tv_sec = 299, tv_usec = 999605}
        events_count = <optimized out>
        msecs = <optimized out>
        ret = 1
        i = 0
        j = <optimized out>
        call = <optimized out>
        __FUNCTION__ = "io_loop_handler_run_internal"
#10 0x00007febcaa590e5 in io_loop_handler_run (ioloop=ioloop at entry=0x7febcd4babc0) at ioloop.c:612
No locals.
#11 0x00007febcaa59288 in io_loop_run (ioloop=0x7febcd4babc0) at ioloop.c:588
        __FUNCTION__ = "io_loop_run"
#12 0x00007febcad59b7a in imapc_client_run_pre (client=0x7febcd483250, client=0x7febcd483250) at imapc-client.c:173
        connp = 0x7febcd4833e8
        prev_ioloop = 0x7febcd467740
#13 imapc_client_run (client=0x7febcd483250) at imapc-client.c:192
No locals.
#14 0x00007febcad575e0 in imapc_mailbox_run_nofetch (mbox=mbox at entry=0x7febcd4b77f0) at imapc-storage.c:143
No locals.
#15 0x00007febcad57612 in imapc_mailbox_run (mbox=mbox at entry=0x7febcd4b77f0) at imapc-storage.c:137
No locals.
#16 0x00007febcad59178 in imapc_sync_index (ctx=0x7febcd4bd010) at imapc-sync.c:405
        mbox = 0x7febcd4b77f0
        sync_rec = {uid1 = 142578, uid2 = 142578, type = MAIL_INDEX_SYNC_TYPE_EXPUNGE, add_flags = 254 '\376', remove_flags = 127 '\177', keyword_idx = 0, 
          guid_128 = "^kK\r2U\277\357\225`\030\220\257\330\a\t"}
        seq1 = 1993
        seq2 = 1993
#17 imapc_sync_begin (force=<optimized out>, ctx_r=<synthetic pointer>, mbox=0x7febcd4b77f0) at imapc-sync.c:481
        ctx = <optimized out>
        sync_flags = <optimized out>
        ret = <optimized out>
#18 imapc_sync (mbox=0x7febcd4b77f0) at imapc-sync.c:537
        sync_ctx = <optimized out>
        force = <optimized out>
#19 imapc_mailbox_sync_init (box=0x7febcd4b77f0, flags=MAILBOX_SYNC_FLAG_FIX_INCONSISTENT) at imapc-sync.c:590
        mbox = 0x7febcd4b77f0
        list = <optimized out>
        changes = false
        ret = <optimized out>
#20 0x00007febcad0da7b in mailbox_sync_init (box=0x7febcd4b77f0, flags=MAILBOX_SYNC_FLAG_FIX_INCONSISTENT) at mail-storage.c:1672
        _data_stack_cur_id = 4
        ctx = <optimized out>
#21 0x00007febcad0dbc7 in mailbox_sync (box=<optimized out>, flags=<optimized out>, flags at entry=(unknown: 0)) at mail-storage.c:1720
        ctx = 0x7febcd4b39e0
        status = {sync_delayed_expunges = 1}
#22 0x00007febcb44656f in cmd_close (cmd=0x7febcd4b39e0) at cmd-close.c:31
        client = 0x7febcd4a7e20
        mailbox = 0x7febcd4b77f0
        storage = 0x7febcd4a8630
        errstr = <optimized out>
        tagged_reply = 0x7febcb462c39 "OK Close completed."
        error = MAIL_ERROR_NONE
        __FUNCTION__ = "cmd_close"
#23 0x00007febcb452e4d in command_exec (cmd=cmd at entry=0x7febcd4b39e0) at imap-commands.c:180
        hook = 0x7febcd468100
        finished = <optimized out>
        cmd_start_timeval = {tv_sec = 1461922706, tv_usec = 948134}
        cmd_start_bytes_in = 5370
        cmd_start_bytes_out = 106277
        __FUNCTION__ = "command_exec"
#24 0x00007febcb451212 in client_command_input (cmd=0x7febcd4b39e0) at imap-client.c:960
        client = 0x7febcd4a7e20
        command = <optimized out>
        __FUNCTION__ = "client_command_input"
#25 0x00007febcb451665 in client_handle_next_command (remove_io_r=<synthetic pointer>, client=0x7febcd4a7e20) at imap-client.c:1060
No locals.
#26 client_handle_input (client=0x7febcd4a7e20) at imap-client.c:1072
        _data_stack_cur_id = 3
        remove_io = false
        handled_commands = false
        client = 0x7febcd4a7e20
#27 0x00007febcb451767 in client_continue_pending_input (client=0x7febcd4a7e20) at imap-client.c:893
---Type <return> to continue, or q <return> to quit---
No locals.
#28 0x00007febcb451bc0 in client_input (client=0x7febcd4a7e20) at imap-client.c:1138
        cmd = 0xe4031
        output = 0x0
        bytes = 86
        __FUNCTION__ = "client_input"
#29 0x00007febcaa5905c in io_loop_call_io (io=0x7febcd4a78b0) at ioloop.c:564
        ioloop = 0x7febcd467740
        t_id = 2
        __FUNCTION__ = "io_loop_call_io"
#30 0x00007febcaa5a4c1 in io_loop_handler_run_internal (ioloop=ioloop at entry=0x7febcd467740) at ioloop-epoll.c:220
        ctx = 0x7febcd469250
        io = <optimized out>
        tv = {tv_sec = 1739, tv_usec = 992335}
        events_count = <optimized out>
        msecs = <optimized out>
        ret = 1
        i = 0
        j = <optimized out>
        call = <optimized out>
        __FUNCTION__ = "io_loop_handler_run_internal"
#31 0x00007febcaa590e5 in io_loop_handler_run (ioloop=ioloop at entry=0x7febcd467740) at ioloop.c:612
No locals.
#32 0x00007febcaa59288 in io_loop_run (ioloop=0x7febcd467740) at ioloop.c:588
        __FUNCTION__ = "io_loop_run"
#33 0x00007febca9eee63 in master_service_run (service=0x7febcd4675e0, callback=<optimized out>) at master-service.c:640
No locals.
#34 0x00007febcb444b32 in main (argc=1, argv=0x7febcd467390) at main.c:460
        set_roots = {0x7febcb66e700 <imap_setting_parser_info>, 0x7febcb20d400 <lda_setting_parser_info>, 0x0}
        login_set = {auth_socket_path = 0x7febcd45f048 "\001", postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, callback = 0x7febcb45e9d0 <login_client_connected>, 
          failure_callback = 0x7febcb45e2e0 <login_client_failed>, request_auth_token = 1}
        service_flags = <optimized out>
        storage_service_flags = <optimized out>
        username = 0x0
        auth_socket_path = 0x7febcb46734e "auth-master"
        c = <optimized out>

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebrandt at charite.de | http://www.charite.de
	    


More information about the dovecot mailing list