[Dovecot] unexpected error message (maildir_sync_index)
Hello,
I recently saw these errors in my log, and one of my users complained that Dovecot disconnected him unexpectedly. Any idea what might have happened?
dovecot: Error: IMAP(bmoore@forkit.org): file maildir-sync.c: line 1075 (maildir_sync_index): assertion failed: (uid > prev_uid)
dovecot: Error: IMAP(bmoore@forkit.org): Raw backtrace:
/usr/local/libexec/dovecot/imap [0x80b6501] ->
/usr/local/libexec/dovecot/imap [0x80b641c] ->
/usr/local/libexec/dovecot/imap(maildir_sync_index+0x902) [0x8069042]
-> /usr/local/libexec/dovecot/imap [0x8069243] ->
/usr/local/libexec/dovecot/imap(maildir_storage_sync_init+0x48)
[0x8069428] -> /usr/local/libexec/dovecot/imap(imap_sync_init+0x40)
[0x8062590] -> /usr/local/libexec/dovecot/imap(cmd_sync+0x71)
[0x80626d1] -> /usr/local/libexec/dovecot/imap(cmd_noop+0x26)
[0x8059cc6] -> /usr/local/libexec/dovecot/imap [0x805b878] ->
/usr/local/libexec/dovecot/imap [0x805b907] ->
/usr/local/libexec/dovecot/imap(_client_input+0x6c) [0x805bfbc] ->
/usr/local/libexec/dovecot/imap(io_loop_handler_run+0x120)
[0x80bc7e0] -> /usr/local/libexec/dovecot/imap(io_loop_run+0x28)
[0x80bb808] -> /usr/local/libexec/dovecot/imap(main+0x4b0)
[0x8063fd0] -> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8)
[0xb7e7eea8] -> /usr/local/libexec/dovecot/imap [0x8056a11]
dovecot: Error: child 8418 (imap) killed with signal 6
~Kyle
All we have to decide is what to do with the time that is given us. -- Gandalf the Grey
On Wed, 2007-05-23 at 19:19 -0600, Kyle Wheeler wrote:
Hello,
I recently saw these errors in my log, and one of my users complained that Dovecot disconnected him unexpectedly. Any idea what might have happened?
dovecot: Error: IMAP(bmoore@forkit.org): file maildir-sync.c: line 1075 (maildir_sync_index): assertion failed: (uid > prev_uid)
Can this be reproduced? Is there anything special in that mailbox's dovecot-uidlist file?
Do you have a core file from the crash? See http://dovecot.org/bugreport.html
On Thursday, May 24 at 10:40 AM, quoth Timo Sirainen:
dovecot: Error: IMAP(bmoore@forkit.org): file maildir-sync.c: line 1075 (maildir_sync_index): assertion failed: (uid > prev_uid)
Can this be reproduced?
Not reliably or at-will (yet); it was a bit of a surprise.
Is there anything special in that mailbox's dovecot-uidlist file?
Nothing super obvious. The UIDVALIDITY is a number that doesn't correspond to any of the files in the mailbox, but I don't know if that's typical or not.
The only thing that is, generally, unusual about the setup is that there's a cron job that periodically pulls messages out of .INBOX.Spam.Report and .INBOX.Spam.Ham, feed the messages to spamassassin, and in the case of ham, re-delivers them via procmail. The crash was very close to a 5-minute boundary (i.e. when the cron script runs).
It's probably not relevant, but another odd error that I got from this particular domain (but a different user) was this:
dovecot: Error: IMAP(xxxxxxx@yyyyyy.org): rename(/var/lib/vpopmail/domains/forkit.org/xxxxxxx/Maildir/.INBOX.Trash.wiechman.rdw, /var/lib/vpopmail/domains/forkit.org/xxxxxxx/Maildir/..DOVECOT-TRASHED) failed: Not a directory
That didn't cause a crash, but... <shrug>
Do you have a core file from the crash? See http://dovecot.org/bugreport.html
I don't; but I just modified my run files to do a ulimit -c unlimited
, so that next time it *will* generate a core file.
As for the basic information:
Dovecot 1.0
Debian Linux (stable/Etch)
x86
ext3
And here's my dovecot -n output:
base_dir: /var/run/dovecot/forkit log_path: /dev/stderr log_timestamp: listen: imap.forkit.org:143 ssl_listen: imap.forkit.org:993 ssl_cert_file: /etc/ssl/certs/imap.forkit.org.pem ssl_key_file: /etc/ssl/private/imap.forkit.org.key login_dir: /var/run/dovecot/forkit/login login_executable: /usr/local/libexec/dovecot/imap-login login_greeting: There was suppose to be an earth-shattering KA-BOOM!!! login_greeting_capability: yes valid_chroot_dirs: /var/lib/vpopmail/domains verbose_proctitle: yes first_valid_uid: 64020 last_valid_uid: 64020 first_valid_gid: 64020 last_valid_gid: 64020 mail_location: maildir:%h/Maildir dotlock_use_excl: yes maildir_copy_with_hardlinks: yes mbox_write_locks: fcntl mail_drop_priv_before_exec: yes mail_executable: /usr/local/bin/relay-ctrl-allow-wrapper.sh /usr/local/libexec/dovecot/imap mail_log_max_lines_per_sec: 0 auth default: mechanisms: plain login default_realm: forkit.org user: vpopmail passdb: driver: ldap args: /var/lib/dovecot/dovecot-ldap.conf userdb: driver: static args: uid=64020 gid=64020 home=/var/lib/vpopmail/domains/%Ld/%Ln
~Kyle
If you make people think they're thinking, they'll love you; but if you really make them think, they'll hate you. -- Don Marquis
participants (2)
-
Kyle Wheeler
-
Timo Sirainen