mikkel at euro123.dk
2008-Jan-07 22:05 UTC
[Dovecot] Deliver core dump in b13 (hg 20080102)
Hi there I'm redirecting e-mails from mikkel at euro123.dk to another account (mikkel2 at euro123.dk) using sieves "redirect" with sieve 1.1.3. The e-mail is redirected just fine. But deliver still creates a core dump and returns an "e-mail undeliverable" to the sending account (even though delivery is successful). My .dovecot.sieve contains just this: redirect "mikkel2 at euro123.dk"; keep; As stated before the e-mail is both forwarded and delivered locally just fine. But the sending account receives this error: "<mikkel at euro123.dk>: Command died with signal 6: "/opt/freeware/dovecot-20080102/libexec/dovecot/deliver"" Also deliver.log shows some errors (shown below). The ?nfs_flush_file_handle_cache_dir? error makes me wonder - seems like it tries to delete the homedir of the accounts maildir storage. Also it seems to me like a minor error since the delivery functions as it should, apart from the delivery error it returns and the core dump. Regards, Mikkel [root at mta01]# tail -f /log/deliver.log | grep @euro123.dk deliver(mikkel at euro123.dk): Jan 07 22:20:02 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:02 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:02 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:02 Info: msgid=<47829780.20802 at euro123.dk>: forwarded to <mikkel2 at euro123.dk> deliver(mikkel at euro123.dk): Jan 07 22:20:03 Info: msgid=<47829780.20802 at euro123.dk>: saved mail to INBOX deliver(mikkel at euro123.dk): Jan 07 22:20:03 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream) deliver(mikkel at euro123.dk): Jan 07 22:20:03 Error: Raw backtrace: 0x855c0 -> 0x4decc -> 0x4e360 -> 0x55204 -> 0x2266c -> 0x2040c deliver(mikkel at euro123.dk): Jan 07 22:20:04 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel at euro123.dk): Jan 07 22:20:13 Info: msgid=<20080107212004.782C817DB8 at mta01.euro123.dk>: forwarded to <mikkel2 at euro123.dk> deliver(mikkel at euro123.dk): Jan 07 22:20:14 Info: msgid=<20080107212004.782C817DB8 at mta01.euro123.dk>: saved mail to INBOX deliver(mikkel at euro123.dk): Jan 07 22:20:14 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream) deliver(mikkel at euro123.dk): Jan 07 22:20:14 Error: Raw backtrace: 0x855c0 -> 0x4decc -> 0x4e360 -> 0x55204 -> 0x2266c -> 0x2040c
mikkel at euro123.dk
2008-Jan-10 12:04 UTC
[Dovecot] Deliver core dump in b13 (hg 20080102)
Just tested hg 20080110 with the same result. - Mikkel
On Mon, 2008-01-07 at 23:05 +0100, mikkel at euro123.dk wrote:> The ?nfs_flush_file_handle_cache_dir? error makes me wonder - seems like > it tries to delete the homedir of the accounts maildir storage.Yes, because unfortunately that's the only way to flush NFS file handle cache. Although if it gives this error, it probably doesn't even get flushed. What OS do you use? Any ideas why rmdir() would return "Invalid argument" instead of the usual "File exists" or "Directory not empty"?> msgid=<20080107212004.782C817DB8 at mta01.euro123.dk>: saved mail to INBOX > deliver(mikkel at euro123.dk): Jan 07 22:20:14 Panic: file index-mail.c: line > 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream)I'm still unable to reproduce this myself.. It most likely requires something specific in dovecot.index.cache file. Is this with maildir? -------------- 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/20080110/fe0f7362/attachment-0002.bin>
mikkel at euro123.dk
2008-Jan-10 13:49 UTC
[Dovecot] Deliver core dump in b13 (hg 20080102)
On Thu, January 10, 2008 1:25 pm, Timo Sirainen wrote: Hi Timo, thanks for looking into this.> On Mon, 2008-01-07 at 23:05 +0100, mikkel at euro123.dk wrote: > Yes, because unfortunately that's the only way to flush NFS file handle > cache. Although if it gives this error, it probably doesn't even get > flushed. What OS do you use? Any ideas why rmdir() would return "Invalid > argument" instead of the usual "File exists" or "Directory not empty"?Right, I didn't realize this initially though I believe you have told me once before that rmdir is used for flushing:)> >> msgid=<20080107212004.782C817DB8 at mta01.euro123.dk>: saved mail to INBOX >> deliver(mikkel at euro123.dk): Jan 07 22:20:14 Panic: file index-mail.c: >> line 1042 (index_mail_close): assertion failed: >> (!mail->data.destroying_stream) >> > > I'm still unable to reproduce this myself.. It most likely requires > something specific in dovecot.index.cache file. Is this with maildir? >I'm sorry I wasn't more specific initially. I guess I took it for some obvious bug (not realizing it's the clear cache mechanism) that wasn't specific to my setup. It's Maildir using NFS (both indexes and storage) under Solaris 10 (sparc). I can post the full configuration if needed. Cut from your other post:> Ah, it's because it's the current directory. It would be better if home > dir wouldn't be the same as mail dir >(http://wiki.dovecot.org/VirtualUsers#homedirs), but I'll see if I can > do something about this.Actually I am using a different directory; home=/nfs/euro123.dk/mikkel, mail=/nfs/euro123.dk/mikkel/Maildir And normally everything works as expected, except in this specific example using sieve to forward. The .dovecot.sieve file is located in the homedir (/nfs/euro123.dk/mikkel/.dovecot.sieve) and for some reason dovecot then tries to flush the directory in which the sieve file is located, instead of the maildir directory. Is this a bug or should I change the directory layout? Regards, Mikkel