[Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking backwards
When exim runs deliver -m and tries to write to a directory that does not exist is causes a crash which stops the exim MTA.
Dec 9 23:20:38 mailhost exim: [ID 197553 mail.info] 2010-12-09 23:20:38 1PQpmu-0007O9-OD <= dovecot-bounces+user=domain.co.uk@dovecot.org H=dovecot.org [62.236.108.70] P=esmtp S=2714 id=1291936811.2991.135.camel@kurkku.sapo.corppt.com Dec 9 23:20:38 localhost spamd[7995]: prefork: child states: II Dec 9 23:20:38 mailhost dovecot: [ID 583609 mail.info] lda(user@domain.co.uk): msgid=1291936811.2991.135.camel@kurkku.sapo.corppt.com: save failed to Dovecot: Mailbox doesn't exist: Dovecot Dec 9 23:20:38 mailhost dovecot: [ID 583609 mail.crit] lda(user@domain.co.uk): Panic: stream doesn't support seeking backwards Dec 9 23:20:38 mailhost dovecot: [ID 583609 mail.error] lda(user@domain.co.uk): Error: Raw backtrace: 0xff13ca0c -> 0xff146f88 -> 0xff144700 -> 0xff1472fc -> 0xff1442f4 -> 0xff146314 -> 0xff1466c4 -> 0xff1442f4 -> 0xff148d9c -> 0xff1442f4 -> 0xff144b94 -> 0xff15284c -> 0xff1526c4 -> 0xff0568cc -> 0xff01c7b4 -> 0xff01c850 -> 0xff1cb1b4 -> 0xff0260d0 -> 0xff385470 -> 0x132ac -> 0x11f40 Dec 9 23:20:38 mailhost exim: [ID 197553 mail.info] 2010-12-09 23:20:38 1PQpmu-0007O9-OD ** |/opt/xxxx/libexec/dovecot/deliver -d user@domain.co.uk -m Dovecot (user@domain.co.uk) user@domain.co.uk R=userforward T=address_pipe: Child process of address_pipe transport (running command "/opt/xxxx/libexec/dovecot/deliver -d user@domain.co.uk -m Dovecot") was terminated by signal 6 (Abort) Dec 9 23:20:38 mailhost exim: [ID 197553 mail.info] 2010-12-09 23:20:38 1PQpmw-0007OL-B2 <= <> R=1PQpmu-0007O9-OD U=exim P=local S=3731
When run from the command line syslog reports: save failed to missing: Mailbox doesn't exist: missing saved mail to INBOX (no crash)
Exceeding quotas also cause a "Panic: stream doesn't support seeking backwards" and a crash as reported elsewhere.
Dovecot 2.0.7 Exim 4.72
James.
On Fri, 2010-12-10 at 11:00 +0000, James Lee wrote:
Dec 9 23:20:38 mailhost dovecot: [ID 583609 mail.crit] lda(user@domain.co.uk): Panic: stream doesn't support seeking backwards
Fixed now: http://hg.dovecot.org/dovecot-2.0/rev/89936539e3b8
It also doesn't happen if you enable Sieve plugin.
On 17/12/10, 13:24:42, Timo Sirainen tss@iki.fi wrote regarding Re: [Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking backwards:
Fixed now: http://hg.dovecot.org/dovecot-2.0/rev/89936539e3b8
Thank you for looking at this. I applied the patch and tested. Now it doesn't crash but I was expecting it to create the directory/mailbox, what is it supposed to do?
Dec 17 14:03:28 mailhost exim: [ID 197553 mail.info] 2010-12-17 14:03:28 1PTau7-0000bu-GL <= james@domain.com H=host (domain.com) [192.168.1.8] P=smtp S=571 id=20101217.14032700.428205879@domain.com Dec 17 14:03:28 mailhost dovecot: [ID 583609 mail.info] lda(james@domain.com): msgid=20101217.14032700.428205879@domain.com: save failed to TEST: Mailbox doesn't exist: TEST Dec 17 14:03:28 mailhost dovecot: [ID 583609 mail.info] lda(james@domain.com): msgid=20101217.14032700.428205879@domain.com: saved mail to INBOX Dec 17 14:03:28 mailhost exim: [ID 197553 mail.info] 2010-12-17 14:03:28 1PTau7-0000bu-GL => |/opt/xxxxx/libexec/dovecot/deliver -d james@domain.com -m TEST james@domain.com R=userforward T=address_pipe Dec 17 14:03:28 mailhost exim: [ID 197553 mail.info] 2010-12-17 14:03:28 1PTau7-0000bu-GL Completed
This also has fixed the exceeded quota crash.
James.
On Fri, 2010-12-17 at 14:26 +0000, James Lee wrote:
On 17/12/10, 13:24:42, Timo Sirainen tss@iki.fi wrote regarding Re: [Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking backwards:
Fixed now: http://hg.dovecot.org/dovecot-2.0/rev/89936539e3b8
Thank you for looking at this. I applied the patch and tested. Now it doesn't crash but I was expecting it to create the directory/mailbox, what is it supposed to do?
-n parameter was replaced by lda_mailbox_autocreate setting. The default also changed to "no".
On 17/12/10, 14:53:05, Timo Sirainen tss@iki.fi wrote regarding Re: [Dovecot] deliver -m causes crash: Panic: stream doesn't support seeking backwards:
doesn't crash but I was expecting it to create the directory/mailbox, what is it supposed to do?
-n parameter was replaced by lda_mailbox_autocreate setting. The default also changed to "no".
Found it. Thank you. I was sure it used (1.2) to make the mailbox but couldn't remember 100%.
James.
participants (2)
-
James Lee
-
Timo Sirainen