[Dovecot] v2.2.13.rc1 released - Panic: file buffer.c: line 307 (buffer_set_used_size): assertion failed: (used_size <= buf->alloc)

Maciej Uhlig maciej.uhlig at us.edu.pl
Mon May 12 20:22:29 UTC 2014


Sorry for replying to myself but now I'm able to show gdb backtrace with
debugging symbols for dovecot 2.2.13 crash. See below.

Thanks.

MU

Maciej Uhlig - 2014-05-09 10:59:
> Timo Sirainen - 2014-05-08 17:37:
>> BTW. I've read most of the mails again in Dovecot mailing list, but there are still a few reported bugs I decided to leave until later. Anyway feel free to re-send any bug reports for things that haven't been fixed in v2.2.13 yet.
> First report on 2014-01-11 with 2.2.10; bug still present:
>
> 2014-05-09T10:18:18+02:00 server/ip dovecot: imap(user at domain): Error:
> Corrupted transaction log file
> ./domain/user/mail/.Drafts/dovecot.index.log seq 16777216: log file
> shrank (540 < 6144) (sync_offset=6144)
> 2014-05-09T10:18:18+02:00 server/ip dovecot: imap(user at domain): Panic:
> file buffer.c: line 307 (buffer_set_used_size): assertion failed:
> (used_size <= buf->alloc)
> 2014-05-09T10:18:24+02:00 server/ip dovecot: imap(user at domain): Fatal:
> master: service(imap): child 4098 killed with signal 6 (core dumped)
>
> Program terminated with signal 6, Aborted.
> #0  0x00000033c9a32925 in raise () from /lib64/libc.so.6
>


(gdb) bt full
#0  0x00000033c9a32925 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x00000033c9a34105 in abort () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007fe4bc744540 in default_fatal_finish (type=<value optimized out>,
    status=0) at failures.c:193
        backtrace = 0xcd84c8
"/usr/local/dovecot-2.2.13/lib/dovecot/libdovecot.so.0(+0x6d54a)
[0x7fe4bc74454a] ->
/usr/local/dovecot-2.2.13/lib/dovecot/libdovecot.so.0(+0x6d5b6)
[0x7fe4bc7445b6] -> /usr/local/dovecot-2.2.13/lib/do"...
#3  0x00007fe4bc7445b6 in i_internal_fatal_handler (ctx=0x7fff2897c1a0,
    format=<value optimized out>, args=<value optimized out>) at
failures.c:657
        status = 0
#4  0x00007fe4bc6f960f in i_panic (
    format=0x19ea <Address 0x19ea out of bounds>) at failures.c:267
        ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0}
        args = {{gp_offset = 40, fp_offset = 48,
            overflow_arg_area = 0x7fff2897c270,
            reg_save_area = 0x7fff2897c1b0}}
#5  0x00007fe4bc73f4a9 in buffer_set_used_size (_buf=<value optimized out>,
    used_size=<value optimized out>) at buffer.c:307
        buf = <value optimized out>
        __FUNCTION__ = "buffer_set_used_size"
#6  0x00007fe4bca90cb0 in mail_transaction_log_file_open (file=0xcfc9b0)
---Type <return> to continue, or q <return> to quit---
    at mail-transaction-log-file.c:930
        index = 0xcfb740
        i = 0
        ignore_estale = true
        ret = <value optimized out>
#7  0x00007fe4bca8d548 in mail_transaction_log_open (log=0xcfc760)
    at mail-transaction-log.c:86
        file = 0xcfc9b0
        ret = <value optimized out>
#8  0x00007fe4bca730c4 in mail_index_open_files (index=0xcfb740, flags=17)
    at mail-index.c:477
        ret = <value optimized out>
        created = false
#9  0x00007fe4bca73400 in mail_index_open (index=0xcfb740, flags=17)
    at mail-index.c:593
        ret = <value optimized out>
        __FUNCTION__ = "mail_index_open"
#10 0x00007fe4bca6489c in index_storage_mailbox_open (box=0xcf9f00,
    move_to_memory=false) at index-storage.c:255
        ibox = 0xcfa348
        index_flags = 17
        ret = <value optimized out>
        __FUNCTION__ = "index_storage_mailbox_open"
---Type <return> to continue, or q <return> to quit---
#11 0x00007fe4bc9fe8fa in maildir_mailbox_open_existing (box=0xcf9f00)
    at maildir-storage.c:305
        mbox = 0xcf9f00
#12 0x00007fe4bc9fe9cf in maildir_mailbox_open (box=0xcf9f00)
    at maildir-storage.c:349
        box_path = <value optimized out>
        root_dir = <value optimized out>
        st = {st_dev = 25165824, st_ino = 140620396844928, st_nlink = 325,
          st_mode = 3164929696, st_uid = 32740, st_gid = 13468392,
__pad0 = 0,
          st_rdev = 13606656, st_size = 13608984,
          st_blksize = 140620391160351, st_blocks = 13606656, st_atim = {
            tv_sec = 2, tv_nsec = 13606656}, st_mtim = {
            tv_sec = 140733874423128, tv_nsec = 1}, st_ctim = {
            tv_sec = 140620394087488, tv_nsec = 13606656}, __unused = {
            13606656, 140733874423128, 0}}
#13 0x00007fe4bca355b4 in mailbox_open_full (box=0xcf9f00,
    input=<value optimized out>) at mail-storage.c:1045
        _data_stack_cur_id = 4
        ret = <value optimized out>
#14 0x00007fe4bca3576f in mailbox_open (box=0xcf9f00) at mail-storage.c:1087
No locals.
#15 0x0000000000412478 in select_open (ctx=0xcf77e0,
    mailbox=<value optimized out>, readonly=false) at cmd-select.c:302
---Type <return> to continue, or q <return> to quit---
        client = 0xcf6ed0
        status = {messages = 681035384, recent = 32767, unseen = 3374401317,
          uidvalidity = 51, uidnext = 0, first_unseen_seq = 0,
          first_recent_uid = 0, last_cached_seq = 0,
          highest_modseq = 140733874423388,
          highest_pvt_modseq = 140733874423424, keywords = 0xce3af8,
          permanent_flags = 13515816, permanent_keywords = 0,
          allow_new_keywords = 0, nonpermanent_modseqs = 0,
          no_modseq_tracking = 0, have_guids = 0, have_save_guids = 0,
          have_only_guid128 = 0}
        flags = <value optimized out>
        ret = 0
#16 0x0000000000412a83 in cmd_select_full (cmd=0xcf76e0) at cmd-select.c:435
        ctx = 0xcf77e0
        ret = <value optimized out>
        client = 0xcf6ed0
        args = 0xce3ac8
        list_args = 0x33c9d8fe80
        mailbox = 0xcd82a8 "sent-mail"
        error = <value optimized out>
#17 cmd_select (cmd=0xcf76e0) at cmd-select.c:444
No locals.
#18 0x0000000000418b0d in command_exec (cmd=0xcf76e0) at imap-commands.c:158
---Type <return> to continue, or q <return> to quit---
        hook = 0xce1110
        ret = <value optimized out>
#19 0x0000000000417ae4 in client_command_input (cmd=0xcf76e0)
    at imap-client.c:778
        client = 0xcf6ed0
        command = <value optimized out>
        __FUNCTION__ = "client_command_input"
#20 0x0000000000417c25 in client_command_input (cmd=0xcf76e0)
    at imap-client.c:839
        client = 0xcf6ed0
        command = <value optimized out>
        __FUNCTION__ = "client_command_input"
#21 0x0000000000418095 in client_handle_next_command (client=0xcf6ed0)
    at imap-client.c:877
No locals.
#22 client_handle_input (client=0xcf6ed0) at imap-client.c:889
        _data_stack_cur_id = 3
        ret = false
        remove_io = false
        handled_commands = false
        __FUNCTION__ = "client_handle_input"
#23 0x000000000041896f in client_input (client=0xcf6ed0) at
imap-client.c:931
        cmd = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        output = 0xcf0aa0
        bytes = 20
        __FUNCTION__ = "client_input"
#24 0x00007fe4bc75574d in io_loop_call_io (io=0xcf0b70) at ioloop.c:441
        ioloop = 0xce0750
        t_id = 2
        __FUNCTION__ = "io_loop_call_io"
#25 0x00007fe4bc756b15 in io_loop_handler_run_internal (
    ioloop=<value optimized out>) at ioloop-epoll.c:220
        ctx = 0xce13f0
        events = <value optimized out>
        event = 0xce2260
        list = 0xcf0bd0
        io = <value optimized out>
        tv = {tv_sec = 1799, tv_usec = 999593}
        msecs = <value optimized out>
        ret = 1
        i = <value optimized out>
        j = 0
        call = <value optimized out>
        __FUNCTION__ = "io_loop_handler_run_internal"
#26 0x00007fe4bc7557d9 in io_loop_handler_run (ioloop=0xce0750) at
ioloop.c:488
No locals.
---Type <return> to continue, or q <return> to quit---
#27 0x00007fe4bc755868 in io_loop_run (ioloop=0xce0750) at ioloop.c:465
        __FUNCTION__ = "io_loop_run"
#28 0x00007fe4bc6fea63 in master_service_run (service=0xce05e0,
    callback=<value optimized out>) at master-service.c:566
No locals.
#29 0x00000000004227e7 in main (argc=2, argv=0xce0390) at main.c:400
        set_roots = {0x42b300, 0x0}
        login_set = {
          auth_socket_path = 0xcd8050 "\210\200", <incomplete sequence
\315>,
          postlogin_socket_path = 0xcd8088 "", postlogin_timeout_secs = 60,
          callback = 0x422980 <login_client_connected>,
          failure_callback = 0x422cf0 <login_client_failed>,
          request_auth_token = 1}
        service_flags = <value optimized out>
        storage_service_flags = <value optimized out>
        username = <value optimized out>
        c = <value optimized out>
(gdb)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3354 bytes
Desc: Kryptograficzna sygnatura S/MIME
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140512/47710d84/attachment.p7s>


More information about the dovecot mailing list