Paul Schreiber
2005-Aug-13 22:38 UTC
[Dovecot] IMAP can't read inbox: istream_raw_mbox_get_body_size assertion failed
Yesterday, I upgraded my debian packages from 0.99.14 to 0.99.20050712-2. IMAP service has not been reliable since, and I was seeing crashes with one user. I tried deleting the user's .subscriptions and .imap folders, and forcing the client (Mac OS X's Mail.app) to redownload everything, but that resulted in an empty inbox. Here's what I have: # dpkg -l dovecot* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=====================-=====================-=========================================================ii dovecot 0.99.14-1 dummy package for upgrades to dovecot IMAP and POP3 server ii dovecot-common 0.99.20050712-2 secure mail server that supports mbox and maildir mailboxe ii dovecot-imapd 0.99.20050712-2 secure IMAP server that supports mbox and maildir mailboxe ii dovecot-pop3d 0.99.20050712-2 secure POP3 server that supports mbox and maildir mailboxe Here's what's in mail.log: Aug 13 15:09:10 sandbox dovecot: imap-login: Login: stan [70.48.39.107] Aug 13 15:09:10 sandbox dovecot: IMAP(stan): file istream-raw-mbox.c: line 383 (istream_raw_mbox_get_body_size): assertion failed: (rstream->body_offset != (uoff_t)-1) Aug 13 15:09:10 sandbox dovecot: child 6748 (imap) killed with signal 6 I got a core dump. Here it is: # gdb /usr/lib/dovecot/imap core (gdb) bt full #0 0x4004d83b in raise () from /lib/tls/libc.so.6 #1 0x4004efa2 in abort () from /lib/tls/libc.so.6 #2 0x08096fcb in i_set_failure_file () #3 0x08096ac7 in i_panic () #4 0x0807070f in istream_raw_mbox_get_body_size () #5 0x0806d1de in mbox_sync_has_changed () #6 0x0806eb50 in mbox_sync () #7 0x0806f9e7 in mbox_storage_sync_init () #8 0x0805ead5 in imap_sync_nonselected () #9 0x08057508 in _cmd_select_full () #10 0x080576d1 in cmd_select () #11 0x08058bf6 in _client_input () #12 0x0809c0c1 in io_loop_handler_run () #13 0x0809b65b in io_loop_run () #14 0x080602aa in main () I downgraded to 0.99.14 and put in the old configuration file and it seems to be working now. What's going on? Paul
Timo Sirainen
2005-Aug-14 21:20 UTC
[Dovecot] IMAP can't read inbox: istream_raw_mbox_get_body_size assertion failed
On Sat, 2005-08-13 at 15:38 -0700, Paul Schreiber wrote:> Aug 13 15:09:10 sandbox dovecot: IMAP(stan): file istream-raw-mbox.c: line 383 (istream_raw_mbox_get_body_size): assertion failed: (rstream->body_offset != (uoff_t)-1)Already replied into Debian bug report, here's to everyone: This problem most likely is caused by CR characters in linefeeds in the mbox file. 1.0-stable releases don't handle that, latest 1.0-test does.. I'll try to put out 1.0alpha release out soon, maybe Debian will start using that too :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050815/832111f2/attachment.bin>
Martín Marqués
2005-Aug-14 21:56 UTC
[Dovecot] IMAP can't read inbox: istream_raw_mbox_get_body_size assertion failed
On friday I downgraded dovecot to stable 0.99.14-1, because the testing package just didn't work. See the message I sent to this list on thurday of last week. El S?b 13 Ago 2005 19:38, Paul Schreiber escribi?:> Yesterday, I upgraded my debian packages from 0.99.14 to 0.99.20050712-2.IMAP service has not been reliable since, and I was seeing crashes with one user.> > I tried deleting the user's .subscriptions and .imap folders, and forcingthe client (Mac OS X's Mail.app) to redownload everything, but that resulted in an empty inbox.> > Here's what I have: > > # dpkg -l dovecot* > Desired=Unknown/Install/Remove/Purge/Hold > | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:uppercase=bad)> ||/ Name Version Description >+++-=====================-=====================-=========================================================> ii dovecot 0.99.14-1 dummy package for upgrades to dovecot IMAP and POP3 server> ii dovecot-common 0.99.20050712-2 secure mail server thatsupports mbox and maildir mailboxe> ii dovecot-imapd 0.99.20050712-2 secure IMAP server thatsupports mbox and maildir mailboxe> ii dovecot-pop3d 0.99.20050712-2 secure POP3 server thatsupports mbox and maildir mailboxe> > Here's what's in mail.log: > > Aug 13 15:09:10 sandbox dovecot: imap-login: Login: stan [70.48.39.107] > Aug 13 15:09:10 sandbox dovecot: IMAP(stan): file istream-raw-mbox.c: line383 (istream_raw_mbox_get_body_size): assertion failed: (rstream->body_offset != (uoff_t)-1)> Aug 13 15:09:10 sandbox dovecot: child 6748 (imap) killed with signal 6 > > I got a core dump. Here it is: > > # gdb /usr/lib/dovecot/imap core > (gdb) bt full > #0 0x4004d83b in raise () from /lib/tls/libc.so.6 > #1 0x4004efa2 in abort () from /lib/tls/libc.so.6 > #2 0x08096fcb in i_set_failure_file () > #3 0x08096ac7 in i_panic () > #4 0x0807070f in istream_raw_mbox_get_body_size () > #5 0x0806d1de in mbox_sync_has_changed () > #6 0x0806eb50 in mbox_sync () > #7 0x0806f9e7 in mbox_storage_sync_init () > #8 0x0805ead5 in imap_sync_nonselected () > #9 0x08057508 in _cmd_select_full () > #10 0x080576d1 in cmd_select () > #11 0x08058bf6 in _client_input () > #12 0x0809c0c1 in io_loop_handler_run () > #13 0x0809b65b in io_loop_run () > #14 0x080602aa in main () > > I downgraded to 0.99.14 and put in the old configuration file and it seemsto be working now.> > What's going on? > > > Paul >-- select 'mmarques' || '@' || 'unl.edu.ar' AS email; --------------------------------------------------------- Mart?n Marqu?s | Programador, DBA Centro de Telem?tica | Administrador Universidad Nacional del Litoral ---------------------------------------------------------
Possibly Parallel Threads
- Panic: file istream-raw-mbox.c: line 583 (istream_raw_mbox_get_body_size): assertion failed: (rstream->body_offset != (uoff_t)-1)
- assertion failed in 1.0-stable
- stable assert error
- file istream-raw-mbox.c: line 450 (istream_raw_mbox_get_body_size): assertion failed: (rstream->mail_size != (uoff_t)-1)
- assertion failed -0.99 -> 1.0-stable