[Dovecot] Assertion Failure in mbox-sync.c

Todd Burroughs todd at hostopia.com
Tue May 17 02:39:05 EEST 2005


I've been getting a few of these errors on a couple different mboxes.
This is using the CVS version as of May 14.

So far, these are the only errors and it looks like most/all of the older
ones are gone.  (maybe I shouldn't say that ;-)


dovecot: May 16 17:41:07 Error:  20973 IMAP(todd.bluegenesis.com): file mbox-sync.c: line 1165 (mbox_sync_handle_eof_updates): assertion failed: (file_size >= sync_ctx->file_input->v_offset)
dovecot: May 16 17:41:10 Error: child 20973 (imap) killed with signal 6


(gdb) bt full
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0xbffff518 in ?? ()
No symbol table info available.
#2  0x00000006 in ?? ()
No symbol table info available.
#3  0x000051ed in ?? ()
No symbol table info available.
#4  0xb7ef1d41 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#5  0xb7ef3529 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#6  0x0809911a in i_internal_panic_handler (
     fmt=0x6 <Address 0x6 out of bounds>,
     args=0x51ed <Address 0x51ed out of bounds>) at failures.c:374
No locals.
#7  0x08099534 in i_panic (
     format=0x80a5ccc "file %s: line %d (%s): assertion failed: (%s)")
     at failures.c:173
No locals.
#8  0x0806ef4b in mbox_sync (mbox=0x80c3ba8, flags=Variable "flags" is not available.
) at mbox-sync.c:1165
         index_sync_ctx = Variable "index_sync_ctx" is not available.


(gdb) bt
#0  0xffffe410 in ?? ()
#1  0xbffff518 in ?? ()
#2  0x00000006 in ?? ()
#3  0x000051ed in ?? ()
#4  0xb7ef1d41 in raise () from /lib/tls/libc.so.6
#5  0xb7ef3529 in abort () from /lib/tls/libc.so.6
#6  0x0809911a in i_internal_panic_handler (
     fmt=0x6 <Address 0x6 out of bounds>,
     args=0x51ed <Address 0x51ed out of bounds>) at failures.c:374
#7  0x08099534 in i_panic (
     format=0x80a5ccc "file %s: line %d (%s): assertion failed: (%s)")
     at failures.c:173
#8  0x0806ef4b in mbox_sync (mbox=0x80c3ba8, flags=Variable "flags" is not available.
) at mbox-sync.c:1165
#9  0x08068891 in mbox_transaction_commit (_t=0x80cf430, flags=Variable "flags" is not available.
)
     at mbox-transaction.c:56
#10 0x0808d333 in mailbox_transaction_commit (t=0x0, flags=0)
     at mail-storage.c:418
#11 0x08058b56 in cmd_store (cmd=0x80bcb98) at cmd-store.c:122
#12 0x08059685 in _client_input (context=0x80bcb58) at client.c:334
#13 0x0809e5da in io_loop_handler_run (ioloop=0x80bb9b0) at ioloop-poll.c:184
#14 0x0809dcf9 in io_loop_run (ioloop=0x80bb9b0) at ioloop.c:218
#15 0x08060587 in main (argc=1, argv=0xbffffa44, envp=0xbffffa4c) at main.c:228


I'm not sure about the variables here, the core file's still here if any
other info will help:

(gdb) p sync_ctx->input->real_stream->statbuf
$5 = {st_dev = 0, __pad1 = 0, __st_ino = 0, st_mode = 0, st_nlink = 0,
   st_uid = 0, st_gid = 0, st_rdev = 0, __pad2 = 0, st_size = 4294967295,
   st_blksize = 0, st_blocks = 0, st_atim = {tv_sec = 1116279667, tv_nsec = 0},
   st_mtim = {tv_sec = 1116279667, tv_nsec = 0}, st_ctim = {
     tv_sec = 1116279667, tv_nsec = 0}, st_ino = 0}
(gdb) p sync_ctx->file_input->v_offset
$8 = 142294527

The mbox size is larger than 142294527

I did notice this, but I'm not sure if I'm looking at the correct variable
and don't think the size is large enough to matter, anyway.

(gdb) pt sync_ctx->input->real_stream->statbuf->st_size
type = long long int
(gdb) pt sync_ctx->file_input->v_offset
type = long long unsigned int


Todd


More information about the dovecot mailing list