Hey everyone, I'm trying version 1.0rc2, via the rpm at ATrpms. I'm running on CentOS 4.3 on an Opteron system. I have this running stably on a 32 bit system, but I'm crashing constantly on a 64 bit system. Here's what I'm getting in my mail logs when I try to log in via IMAP: Aug 3 15:01:21 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) == data_size) Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 Aug 3 15:01:22 lisa dovecot: child 3208 (imap) killed with signal 6 Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) == data_size) Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 Aug 3 15:01:22 lisa dovecot: child 3210 (imap) killed with signal 6 Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) == data_size) Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 Aug 3 15:01:22 lisa dovecot: child 3212 (imap) killed with signal 6 Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file mail-cache-transaction.c: line 709 (mail_cache_add): assertion failed: (fixed_size == (unsigned int)-1 || fixed_size =data_size) Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file mail-cache-transaction.c: line 709 (mail_cache_add): assertion failed: (fixed_size == (unsigned int)-1 || fixed_size =data_size) Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 Aug 3 15:01:22 lisa dovecot: child 3214 (imap) killed with signal 6 Aug 3 15:01:22 lisa dovecot: child 3218 (imap) killed with signal 6 Can someone confirm whether this is a bug or not? thanks, Scott
On Thu, 2006-08-03 at 15:07 -0400, Scott Zahn wrote:> Hey everyone, I'm trying version 1.0rc2, via the rpm at ATrpms. I'm running on CentOS > 4.3 on an Opteron system. I have this running stably on a 32 bit system, but I'm > crashing constantly on a 64 bit system. > > Here's what I'm getting in my mail logs when I try to log in via IMAP: > > Aug 3 15:01:21 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 > (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) == data_size) > Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > Aug 3 15:01:22 lisa dovecot: child 3208 (imap) killed with signal 6 > Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 > (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) == data_size) > Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > Aug 3 15:01:22 lisa dovecot: child 3210 (imap) killed with signal 6 > Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 > (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) == data_size) > Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > Aug 3 15:01:22 lisa dovecot: child 3212 (imap) killed with signal 6 > Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file mail-cache-transaction.c: line 709 > (mail_cache_add): assertion failed: (fixed_size == (unsigned int)-1 || fixed_size => data_size) > Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file mail-cache-transaction.c: line 709 > (mail_cache_add): assertion failed: (fixed_size == (unsigned int)-1 || fixed_size => data_size) > Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > Aug 3 15:01:22 lisa dovecot: child 3214 (imap) killed with signal 6 > Aug 3 15:01:22 lisa dovecot: child 3218 (imap) killed with signal 6I believe this has to do with how the index files are written, with a 32bit or 64 bit offset. If you remove all the index files, etc from the mailbox when you switch between the two, or compile with the specific offset, it should work fine.> Can someone confirm whether this is a bug or not?Bug? I dunno. Maybe it could detect this?> thanks, > Scott >
On Thu, 2006-08-03 at 15:39 -0400, Scott Zahn wrote:> On Thu, August 3, 2006 15:28, David Jonas wrote: > > On Thu, 2006-08-03 at 15:07 -0400, Scott Zahn wrote: > >> Hey everyone, I'm trying version 1.0rc2, via the rpm at ATrpms. I'm running on CentOS > >> 4.3 on an Opteron system. I have this running stably on a 32 bit system, but I'm > >> crashing constantly on a 64 bit system. > >> > >> Here's what I'm getting in my mail logs when I try to log in via IMAP: > >> > >> Aug 3 15:01:21 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 > >> (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) => >> data_size) > >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > >> Aug 3 15:01:22 lisa dovecot: child 3208 (imap) killed with signal 6 > >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 > >> (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) => >> data_size) > >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > >> Aug 3 15:01:22 lisa dovecot: child 3210 (imap) killed with signal 6 > >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 > >> (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) => >> data_size) > >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > >> Aug 3 15:01:22 lisa dovecot: child 3212 (imap) killed with signal 6 > >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file mail-cache-transaction.c: line 709 > >> (mail_cache_add): assertion failed: (fixed_size == (unsigned int)-1 || fixed_size => >> data_size) > >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file mail-cache-transaction.c: line 709 > >> (mail_cache_add): assertion failed: (fixed_size == (unsigned int)-1 || fixed_size => >> data_size) > >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, > >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 > >> Aug 3 15:01:22 lisa dovecot: child 3214 (imap) killed with signal 6 > >> Aug 3 15:01:22 lisa dovecot: child 3218 (imap) killed with signal 6 > > > > I believe this has to do with how the index files are written, with a 32bit or 64 > > bit offset. If you remove all the index files, etc from the mailbox when you switch > > between the two, or compile with the specific offset, it should work > > fine. > > > > Well, shoot. If I remove the index files and let dovecot rebuild them, won't that lead > to my users re-downloading their entire inboxes if they're using POP3?Depends on how you have the UIDL format configured. Personally I use maildirs and have the format be the filenames so I can continue to use qmail-pop3d (for now). If you're using the default, yeah, I think that's a generated id. Another option would be to recompile dovecot on the 64bit system with the --with-file-offset-size=32 instead of the RPMs. It is really an easy build. Personally, first I'd try removing the index files for my own account and see if my mail gets re-downloaded. Please note that I've done very little on 64bit systems, so these are mostly guesses. But I have compiled with --with-file-offset-size=64 and had to remove my index files to avoid that crash.> -Scott >
Ah, so *that's* why I didn't see my reply appearing on the list! I'll repost so it gets archived. On Thu, August 3, 2006 16:07, David Jonas wrote:> Just a note, try to reply to the message list when you post replies. I > don't mind getting the email, but other users may need the information! > > Regards, > > David > > On Thu, 2006-08-03 at 15:59 -0400, Scott Zahn wrote: >> On Thu, August 3, 2006 15:28, David Jonas wrote: >> > On Thu, 2006-08-03 at 15:07 -0400, Scott Zahn wrote: >> >> Hey everyone, I'm trying version 1.0rc2, via the rpm at ATrpms. I'm running on >> CentOS >> >> 4.3 on an Opteron system. I have this running stably on a 32 bit system, but I'm >> >> crashing constantly on a 64 bit system. >> >> >> >> Here's what I'm getting in my mail logs when I try to log in via IMAP: >> >> >> >> Aug 3 15:01:21 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, >> >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 >> >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 >> >> (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) =>> >> data_size) >> >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, >> >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 >> >> Aug 3 15:01:22 lisa dovecot: child 3208 (imap) killed with signal 6 >> >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 >> >> (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) =>> >> data_size) >> >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, >> >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 >> >> Aug 3 15:01:22 lisa dovecot: child 3210 (imap) killed with signal 6 >> >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105 >> >> (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) =>> >> data_size) >> >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, >> >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 >> >> Aug 3 15:01:22 lisa dovecot: child 3212 (imap) killed with signal 6 >> >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file mail-cache-transaction.c: line 709 >> >> (mail_cache_add): assertion failed: (fixed_size == (unsigned int)-1 || fixed_size >> =>> >> data_size) >> >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, >> >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 >> >> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file mail-cache-transaction.c: line 709 >> >> (mail_cache_add): assertion failed: (fixed_size == (unsigned int)-1 || fixed_size >> =>> >> data_size) >> >> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN, >> >> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21 >> >> Aug 3 15:01:22 lisa dovecot: child 3214 (imap) killed with signal 6 >> >> Aug 3 15:01:22 lisa dovecot: child 3218 (imap) killed with signal 6 >> > >> > I believe this has to do with how the index files are written, with a 32bit or 64 >> > bit offset. If you remove all the index files, etc from the mailbox when you switch >> > between the two, or compile with the specific offset, it should work >> > fine. >> >> You're right. I should have looked closer at the log entries. I went to my maildir >> did >> a find . -name "dovecot.*" -print0 | xargs -0 rm -f, which got rid of all the index >> files, but left the uidlists alone. That worked. The 64 bit dovecot is now running >> fine. So I guess we know that a 32 bit and a 64 bit dovecot can't both use the same >> mail store. >> >> Doesn't the dovecot front page talk about sanity checks being done to prevent this >> kind >> of stuff? This makes dovecot seem brittle. Anyway, thanks for the help. >> >> cheers, >> Scott >> > >