On Thu, 19 Nov 2009 18:53:19 -0500
Timo Sirainen <t...@iki.fi> wrote:

> On Thu, 2009-11-19 at 18:31 -0500, Timo Sirainen wrote:
> > On Thu, 2009-11-19 at 09:10 +0200, Nikita Koshikov wrote:
> > > Nov 19 08:57:34 IMAP(al...@domain.com): Warning: header rewrite: 
> > > size=32824
> > > Nov 19 08:57:34 IMAP(al...@domain.com): Warning: 
> > > mail_index_update_header_ext: ext_id=2 offset=0 size=32824
> > > Nov 19 08:57:34 IMAP(al...@domain.com): Warning: 
> > > log_append_ext_hdr_update: size=65536
> > 
> > Thanks. Pretty simple fix after all that I missed:
> > http://hg.dovecot.org/dovecot-1.2/rev/3e1ca490dde0
> 
> Except .. although that above patch helps a bit, it still breaks after
> header size goes to 64k and fixing that requires changing index file
> format a bit. This should help there:
> http://hg.dovecot.org/dovecot-1.2/rev/e5d38150be58
> 

Sorry, but with version 1.2.8 the crash is still here:

Nov 20 10:16:00 IMAP(al...@domain.com): Panic: file 
mail-transaction-log-append.c: line 31 (log_append_buffer): assertion failed: 
((type & MAIL_TRANSACTION_)
Nov 20 10:16:00 IMAP(al...@domain.com): Error: Raw backtrace: imap [0x80d2411] 
-> imap [0x80d2482] -> imap [0x80d1de9] -> imap [0x80b4a9f] -> imap(mail_tran]
Nov 20 10:16:00 dovecot: Error: child 29596 (imap) killed with signal 6 (core 
dumped)

I have tried delete old indexes, but this didn't help.

current gdb-trace is attached.
GNU gdb 6.8
Copyright (C) 2008 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 "i686-pc-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/dovecot/imap/lib10_quota_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib10_quota_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib11_imap_quota_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib11_imap_quota_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib11_trash_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib11_trash_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib20_autocreate_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib20_autocreate_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib20_expire_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib20_expire_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib20_virtual_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib20_virtual_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib20_zlib_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib20_zlib_plugin.so
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libbz2.so.1...done.
Loaded symbols for /lib/libbz2.so.1
Reading symbols from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/libgcc_s.so.1
Core was generated by `imap'.
Program terminated with signal 6, Aborted.
[New process 29596]
#0  0xffffe424 in __kernel_vsyscall ()
(gdb) bt full
#0  0xffffe424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7e2b660 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0xb7e2ce98 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0x080d2425 in default_fatal_finish (type=<value optimized out>, status=0) at failures.c:160
        backtrace = 0xb7d5d6c0 "imap [0x80d2411] -> imap [0x80d2482] -> imap [0x80d1de9] -> imap [0x80b4a9f] -> imap(mail_transaction_log_append+0x68d) [0x80b556d] -> imap [0x80aa039] -> imap(mail_index_sync_commit+0xa5) [0x80ad535]"...
#4  0x080d2482 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0x80ea0cc "file %s: line %d (%s): assertion failed: (%s)", 
    args=0xbff736b4 "�U\017\b\037") at failures.c:443
No locals.
#5  0x080d1de9 in i_panic (format=0x80ea0cc "file %s: line %d (%s): assertion failed: (%s)") at failures.c:207
No locals.
#6  0x080b4a9f in log_append_buffer (ctx=0xbff737a8, buf=0xb7d4d670, hdr_buf=0x0, type=29596) at mail-transaction-log-append.c:31
        hdr = {size = 196419352, type = 32824}
        hdr_size = <value optimized out>
        hdr_pos = <value optimized out>
        __PRETTY_FUNCTION__ = "log_append_buffer"
#7  0x080b556d in mail_transaction_log_append (t=0xb205fb8, log_file_seq_r=0xbff73910, log_file_offset_r=0xbff73900) at mail-transaction-log-append.c:348
        index = (struct mail_index *) 0x8123dc0
        ret = <value optimized out>
        __PRETTY_FUNCTION__ = "mail_transaction_log_append"
#8  0x080aa039 in mail_index_transaction_commit_v (t=0x0, log_file_seq_r=0xbff73910, log_file_offset_r=0xbff73900) at mail-index-transaction.c:585
        ret = <value optimized out>
        __PRETTY_FUNCTION__ = "mail_index_transaction_commit_v"
#9  0x080ad535 in mail_index_sync_commit (_ctx=0xb20542c) at mail-index-sync.c:763
        ctx = (struct mail_index_sync_ctx *) 0x6
        index = (struct mail_index *) 0x8123dc0
        seq = 0
        next_uid = 1
        offset = 0
        want_rotate = <value optimized out>
        ret = <value optimized out>
#10 0xb7dc9bc6 in virtual_sync_finish (ctx=0xb205428, success=true) at virtual-sync.c:1419
        ret = 0
#11 0xb7dcc6ac in virtual_storage_sync_init (box=0x81267b8, flags=65) at virtual-sync.c:1484
        sync_ctx = <value optimized out>
        ret = <value optimized out>
#12 0x080975a5 in mailbox_sync (box=0x81267b8, flags=65, status_items=239, status_r=0xbff73ae8) at mail-storage.c:593
        ctx = <value optimized out>
#13 0x08062fe8 in cmd_select_full (cmd=0x8116e00, readonly=false) at cmd-select.c:273
        client = (struct client *) 0x8116b70
        box = (struct mailbox *) 0xbff73b58
        ctx = (struct imap_select_context *) 0x8116e98
        args = (const struct imap_arg *) 0x8119680
---Type <return> to continue, or q <return> to quit---
        mailbox = 0x8109338 "all"
        ret = <value optimized out>
        __PRETTY_FUNCTION__ = "cmd_select_full"
#14 0x08063729 in cmd_select (cmd=0x8116e00) at cmd-select.c:389
No locals.
#15 0x080659ac in client_command_input (cmd=0x8116e00) at client.c:612
        client = (struct client *) 0x8116b70
        command = <value optimized out>
        __PRETTY_FUNCTION__ = "client_command_input"
#16 0x08065a53 in client_command_input (cmd=0x8116e00) at client.c:661
        client = (struct client *) 0x8116b70
        command = <value optimized out>
        __PRETTY_FUNCTION__ = "client_command_input"
#17 0x08065bad in client_handle_input (client=0x8116b70) at client.c:702
        _data_stack_cur_id = 3
        ret = false
        remove_io = <value optimized out>
        handled_commands = false
        __PRETTY_FUNCTION__ = "client_handle_input"
#18 0x080664ef in client_input (client=0x8116b70) at client.c:753
        cmd = <value optimized out>
        output = (struct ostream *) 0x8116d24
        bytes = <value optimized out>
        __PRETTY_FUNCTION__ = "client_input"
#19 0x080da570 in io_loop_handler_run (ioloop=0x81119b0) at ioloop-epoll.c:208
        ctx = (struct ioloop_handler_context *) 0x8111ab8
        event = (const struct epoll_event *) 0x8111af8
        list = (struct io_list *) 0x8116da8
        io = (struct io_file *) 0x8116d80
        tv = {tv_sec = 4, tv_usec = 994805}
        t_id = 2
        msecs = <value optimized out>
        ret = 1
        i = 0
        j = 0
        call = <value optimized out>
#20 0x080d9a10 in io_loop_run (ioloop=0x81119b0) at ioloop.c:335
No locals.
#21 0x0806ee7c in main (argc=Cannot access memory at address 0x739c
) at main.c:327
No locals.

Reply via email to