Nuno Lopes
2008-Jun-05 14:01 UTC
[Dovecot] assertion after upgrading to 1.1rc7 from 1.1rc3
Hi, I'm getting this assertion after making an upgrade from 1.1rc3 to 1.1rc7. Deleting the index files solves the problem. This seems to happen only to some accounts but I haven't managed to find which ones. I'm using dovecot's deliver to deliver the messages. Panic: IMAP(user at example.com): file index-sort-string.c: line 575 (index_sort_add_ids_range): assertion failed: (strcmp(left_str, str) < 0) Here goes the output of dovecot -n # 1.1.rc7: /opt/dovecot-1.1.rc7/etc/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap listen: *:10143 ssl_disable: yes disable_plaintext_auth: no shutdown_clients: no login_dir: /var/run/dovecot/login login_executable: /opt/dovecot/libexec/dovecot/imap-login login_process_per_connection: no login_max_connections: 400 max_mail_processes: 750 verbose_proctitle: yes mail_uid: 501 mail_gid: 100 mmap_disable: yes mail_nfs_storage: yes mail_nfs_index: yes mail_plugins: quota imap_quota zlib mail_plugin_dir: /opt/dovecot/lib/dovecot/imap auth default: executable: /opt/dovecot/libexec/dovecot/dovecot-auth user: nobody passdb: driver: ldap args: /opt/dovecot/etc/dovecot-ldap.conf userdb: driver: ldap args: /opt/dovecot/etc/dovecot-ldap.conf socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: nogroup plugin: quota: maildir quota_rule: *:storage=2G quota_rule2: Trash:storage=102400 quota_rule3: INBOX.Trash:storage=102400
Timo Sirainen
2008-Jun-05 14:20 UTC
[Dovecot] assertion after upgrading to 1.1rc7 from 1.1rc3
On Thu, 2008-06-05 at 15:01 +0100, Nuno Lopes wrote: ?> I'm getting this assertion after making an upgrade from 1.1rc3 to > 1.1rc7. Deleting the index files solves the problem. This seems to > happen only to some accounts but I haven't managed to find which ones. > I'm using dovecot's deliver to deliver the messages.Could you make a copy of dovecot.index and dovecot.index.cache files before deleting them and send them to me?> Panic: IMAP(user at example.com): file index-sort-string.c: line 575 > (index_sort_add_ids_range): assertion failed: (strcmp(left_str, str) < 0)I did one fix yesterday to this function: http://hg.dovecot.org/dovecot-1.1/rev/c008dde3c973 Does it still crash when that is applied? -------------- 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/20080605/62eea7bc/attachment-0002.bin>
Timo Sirainen
2008-Jun-06 17:09 UTC
[Dovecot] assertion after upgrading to 1.1rc7 from 1.1rc3
On Thu, 2008-06-05 at 15:01 +0100, Nuno Lopes wrote:> Hi, > I'm getting this assertion after making an upgrade from 1.1rc3 to > 1.1rc7. Deleting the index files solves the problem. This seems to > happen only to some accounts but I haven't managed to find which ones. > I'm using dovecot's deliver to deliver the messages. > > Panic: IMAP(user at example.com): file index-sort-string.c: line 575 > (index_sort_add_ids_range): assertion failed: (strcmp(left_str, str) < 0)I did several fixes to sort indexes: http://hg.dovecot.org/dovecot-1.1/rev/5824e6f1d279 http://hg.dovecot.org/dovecot-1.1/rev/63602977ca9b http://hg.dovecot.org/dovecot-1.1/rev/dd899a1841d9 -------------- 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/20080606/eb4ea529/attachment-0002.bin>
Nuno Lopes
2008-Jun-07 12:38 UTC
[Dovecot] assertion after upgrading to 1.1rc7 from 1.1rc3
Hi, this seems to have done it! I've applied the former patch as well as these ones to all our servers and haven't seen that error for over an hour. Thanks, -- Nuno Lopes Timo Sirainen wrote:> On Thu, 2008-06-05 at 15:01 +0100, Nuno Lopes wrote: > >> Hi, >> I'm getting this assertion after making an upgrade from 1.1rc3 to >> 1.1rc7. Deleting the index files solves the problem. This seems to >> happen only to some accounts but I haven't managed to find which ones. >> I'm using dovecot's deliver to deliver the messages. >> >> Panic: IMAP(user at example.com): file index-sort-string.c: line 575 >> (index_sort_add_ids_range): assertion failed: (strcmp(left_str, str) < 0) >> > > I did several fixes to sort indexes: > > http://hg.dovecot.org/dovecot-1.1/rev/5824e6f1d279 > http://hg.dovecot.org/dovecot-1.1/rev/63602977ca9b > http://hg.dovecot.org/dovecot-1.1/rev/dd899a1841d9 > >