[Dovecot] stable assert error
Hello,
When moving a message from my inbox to an existing mailbox folder I get:
dovecot: Mar 21 12:52:48 Error: IMAP(paulj): file istream-raw-mbox.c: line 383 (istream_raw_mbox_get_body_size): assertion failed: (rstream->body_offset != (uoff_t)-1) dovecot: Mar 21 12:52:48 Error: child 10265 (imap) killed with signal 6
This after moving from 0.99 to 1.0 stable on 5.3-RELEASE-p5 Client is Apple Mail program
Anything I can do to fix or investigate?
Thanks Paul
On 21.3.2005, at 14:07, Paul Jongsma wrote:
When moving a message from my inbox to an existing mailbox folder I get:
dovecot: Mar 21 12:52:48 Error: IMAP(paulj): file istream-raw-mbox.c: line 383 (istream_raw_mbox_get_body_size): assertion failed: (rstream->body_offset != (uoff_t)-1)
Does it matter which folder you're moving to? Are the other folders working otherwise, only breaking when moving messages?
Could you get gdb backtrace of the crash? http://dovecot.org/bugreport.html
On 21-mrt-05, at 14:05, Timo Sirainen wrote:
On 21.3.2005, at 14:07, Paul Jongsma wrote:
When moving a message from my inbox to an existing mailbox folder I get:
dovecot: Mar 21 12:52:48 Error: IMAP(paulj): file istream-raw-mbox.c: line 383 (istream_raw_mbox_get_body_size): assertion failed: (rstream->body_offset != (uoff_t)-1)
Does it matter which folder you're moving to? Are the other folders working otherwise, only breaking when moving messages?
Could you get gdb backtrace of the crash? http://dovecot.org/bugreport.html
Only some folders are affected, most work fine.
A backtrace of the error:
gdb /usr/local/libexec/dovecot/imap imap.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Core was generated by `imap'. Program terminated with signal 6, Aborted. Reading symbols from /usr/local/lib/libiconv.so.3...done. Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /lib/libc.so.5...done. Loaded symbols for /lib/libc.so.5 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x182091d7 in kill () from /lib/libc.so.5 (gdb) bt #0 0x182091d7 in kill () from /lib/libc.so.5 #1 0x181fe27e in raise () from /lib/libc.so.5 #2 0x18270627 in abort () from /lib/libc.so.5 #3 0x0808ec5b in i_internal_panic_handler (fmt=0x712b
, args=0xbfbfe6a4 "??\t\b\177\001") at failures.c:374 #4 0x0808e813 in i_panic (format=0x8099a48 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:173 #5 0x0806cbdf in istream_raw_mbox_get_body_size (stream=0x80b4920, body_size=1873) at istream-raw-mbox.c:403 #6 0x0806a3f3 in mbox_sync_loop (sync_ctx=0xbfbfe9f0, mail_ctx=0xbfbfe960, min_message_count=4294967295, partial=1) at mbox-sync.c:122 #7 0x0806b913 in mbox_sync (ibox=0x80d0200, flags=MBOX_SYNC_LAST_COMMIT) at mbox-sync.c:1201 #8 0x08065a12 in mbox_transaction_commit (_t=0x80d0600, flags=0) at mbox-transaction.c:55 #9 0x08054833 in cmd_copy (client=0x80b6080) at cmd-copy.c:97 #10 0x08057b07 in _client_input (context=0x80b6080) at client.c:324 #11 0x08092e14 in io_loop_handler_run (ioloop=0x80b1040) at ioloop-poll.c:184 #12 0x08092851 in io_loop_run (ioloop=0x80b1040) at ioloop.c:218 #13 0x0805e164 in main (argc=1, argv=0xbfbfec24, envp=0xbfbfec2c) at main.c:224Best regards, Paul
I thought I'd keep the subject, as I'm getting a similar (not the same though) error, but in test64 on Linux.
We're using mbox over NFS with mmap turned off. Linux kernel 2.6.
This mailbox is fairly busy.
The logs show: dovecot: Mar 22 19:36:45 Error: 23897 IMAP(support): UIDVALIDITY changed (1111537393 -> 1111538204) in mbox file /mailhome/new/s/support/mbox dovecot: Mar 22 19:36:45 Error: 23897 IMAP(support): file mbox-lock.c: line 511 (mbox_lock): assertion failed: (lock_type == F_RDLCK || ibox->mbox_lock_type != F_RDLCK) dovecot: Mar 22 19:36:45 Error: child 23897 (imap) killed with signal 6
Backtrace: gdb /services/dovecot/libexec/dovecot/imap imap.core.pid23897 GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `imap'. Program terminated with signal 6, Aborted.
warning: current_sos: 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/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 0xffffe410 in ?? () (gdb) bt #0 0xffffe410 in ?? () #1 0xbffff468 in ?? () #2 0x00000006 in ?? () #3 0x00005d59 in ?? () #4 0xb7ef1d41 in raise () from /lib/tls/libc.so.6 #5 0xb7ef3529 in abort () from /lib/tls/libc.so.6 #6 0x0809513a in i_internal_panic_handler ( fmt=0x6
, args=0x5d59 ) at failures.c:374 #7 0x08095554 in i_panic ( format=0x80a138c "file %s: line %d (%s): assertion failed: (%s)") at failures.c:173 #8 0x08069f21 in mbox_lock (ibox=0x80c2e18, lock_type=1, lock_id_r=0xbffff64c) at mbox-lock.c:525 #9 0x0806e279 in mbox_sync (ibox=0x80c2e18, flags=MBOX_SYNC_REWRITE) at mbox-sync.c:1325 #10 0x08067bf9 in mbox_storage_close (box=0x80c2e18) at mbox-storage.c:908 #11 0x0808931d in mailbox_close (box=0x0) at mail-storage.c:297 #12 0x08058f3a in client_destroy (client=0x80b7e40) at client.c:72 #13 0x08059236 in _client_input (context=0x80b7e40) at client.c:387 #14 0x08099eca in io_loop_handler_run (ioloop=0x80b69e8) at ioloop-poll.c:184 #15 0x080995e9 in io_loop_run (ioloop=0x80b69e8) at ioloop.c:218 #16 0x0805fea7 in main (argc=1, argv=0xbffffa24, envp=0xbffffa2c) at main.c:229 (gdb) quit
participants (3)
-
Paul Jongsma
-
Timo Sirainen
-
Todd Burroughs