[Dovecot] assertion failed

CJ Keist cj.keist at colostate.edu
Fri Aug 22 01:27:13 EEST 2008


I haven't heard anything on this bug.  Is this a bug?  I'm using dovecot 
1.1.2 with the following patch applied:

http://hg.dovecot.org/dovecot-1.1/rev/d674c05d725d

Another section from my logs. I know the backtrace is just numbers, let 
me know how to compile to get more useful information if you need it. 
So far no one is beating down my door, so I don't think users are seeing 
any ill effects.  But I would sleep better knowing why it's happening.

Aug 21 16:19:17 goku dovecot: [ID 107833 mail.crit] Panic: IMAP(rhjohn): 
file index-sync.c: line 39 (index_mailbox_set_recent_uid): assertion 
failed: (seq_range_exists(&ibox->recent_flags, uid))Aug 21 16:19:17 goku 
dovecot: [ID 107833 mail.error] IMAP(rhjohn): Raw backtrace: 0x95f98 -> 
0x959f8 -> 0x6278c -> 0x627d0 -> 0x48d14 -> 0x4981c -> 0x41db0 -> 
0x72378 -> 0x637d8 -> 0x66200 -> 0x22594 -> 0x266f8 -> 0x277ec -> 
0x277a8 -> 0x27b04 -> 0x27d04 -> 0x9d3f4 -> 0x9ccd4 -> 0x2ff58 -> 0x21398
Aug 21 16:19:17 goku dovecot: [ID 684838 mail.error] child 4805 (imap) 
killed with signal 6
Aug 21 16:19:17 goku postfix/smtpd[3421]: [ID 197553 mail.info] connect 
from unknown[190.152.60.9]
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client in: AUTH      1       PLAIN   service=imap    secured 
lip=129.82.224.16       rip=129.82.53.12        lport=993       rport=49269
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client out: CONT     1
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client in: CONT<hidden>
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): pam(rhjohn,129.82.53.12): lookup service=dovecot
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): pam(rhjohn,129.82.53.12): #1/1 style=1 msg=Password:
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client out: OK       1       user=rhjohn
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
master in: REQUEST   45963   6520    1
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): passwd(rhjohn,129.82.53.12): lookup
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
master out: USER     45963   rhjohn  system_user=rhjohn      uid=19615 
      gid=21  home=/top/academic/Atmos/people/rhjohn/home
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] imap-login: Login: 
user=<rhjohn>, method=PLAIN, rip=129.82.53.12, lip=129.82.224.16, TLS
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] auth(default): 
client in: AUTH      1       PLAIN   service=imap    lip=129.82.224.16 
      rip=67.223.73.37        lport=143       rport=54470     resp=<hidden>
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): pam(dvivanco,67.223.73.37): lookup service=dovecot
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] 
auth-worker(default): pam(dvivanco,67.223.73.37): #1/1 style=1 msg=Password:
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] IMAP(rhjohn): 
Effective uid=19615, gid=21, home=/top/academic/Atmos/people/rhjohn/home
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] IMAP(rhjohn): mbox: 
data=/top/academic/Atmos/people/rhjohn/home/:INBOX=/userM/mail/rhjohn
Aug 21 16:19:17 goku dovecot: [ID 107833 mail.info] IMAP(rhjohn): fs: 
root=/top/academic/Atmos/people/rhjohn/home, index=, control=, 
inbox=/userM/mail/rhjohn

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just switched over to dovecot 1.1.2 on our live system last night. I'm
seeing the following errors in the logs:

Aug 19 10:01:03 goku dovecot: [ID 107833 mail.crit] Panic: IMAP(elevin):
file in
dex-sync.c: line 39 (index_mailbox_set_recent_uid): assertion failed:
(seq_range
_exists(&ibox->recent_flags, uid))

I did apply the assertion fix that Timo sent out.

# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
   mechanisms: plain login
   verbose: yes
   debug: yes
   passdb:
     driver: pam
   passdb:
     driver: passwd
     args: blocking=yes
   userdb:
     driver: passwd
     args: blocking=yes
   socket:
     type: listen
     client:
       path: /var/lib/postfix/private/auth
       mode: 438
       user: postfix
       group: postfix
     master:
       path: /userM/mail-services/dovecot/var/run/dovecot//auth-master
       mode: 384

- --
C. J. Keist                     Email: cj.keist at colostate.edu
UNIX/Network Manager            Phone: 970-491-0630
Engineering Network Services    Fax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqvAiA29OFr7C6jcRAlbPAJsHSPO0JvyUHGOBUJ1E8NhuT9tM5wCgnOZ2
NW9OeL6tSORhGleWSX63uPI=
=mw7Z
-----END PGP SIGNATURE-----



More information about the dovecot mailing list