[Dovecot] [Bug] dovecot deliver v1.2.1 segfaults

Nikita Koshikov koshikov at gmail.com
Mon Jul 20 22:43:03 EEST 2009


On Mon, 20 Jul 2009 15:24:40 -0400
Timo Sirainen <tss at iki.fi> wrote:

> On Mon, 2009-07-20 at 22:05 +0300, Nikita Koshikov wrote:
> > Starting program: /usr/libexec/dovecot/deliver -d koshikov.n at domain.com -p /root/mail.eml
> ..
> > Program exited with code 0113.
> 
> 0113 = 75 = EX_TEMPFAIL = deliver should have logged an error message to
> log file.
> 
Thank you for reply, Timo

yes, in logs I found permision issue, after chown to mail user, I got:

GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)
(gdb) r
Starting program: /usr/libexec/dovecot/deliver -d koshikov.n at domain.com -p /root/mail.eml
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Warning: Growing pool 'Plugin strings' with: 1024
Warning: Growing pool 'Plugin strings' with: 2048
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0xb7ec4713 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0xb7ec4713 in strlen () from /lib/libc.so.6
#1  0xb7e0d742 in sieve_address_parse_envelope_path () from /usr/lib/dovecot/lda/lib90_sieve_plugin.so
#2  0xb7e1ef94 in ?? () from /usr/lib/dovecot/lda/lib90_sieve_plugin.so
#3  0x00000000 in ?? ()


> > > http://www.dovecot.org/bugreport.html
> > > 
> > I have tried to get it, but nothing appear in user's home directory
> 
> One of the most important things is to get "ulimit -c unlimited" run
> before your MTA. Or alternatively instead of executing deliver directly,
> have it execute a script:
> 
> #!/bin/sh
> ulimit -c unlimited
> /usr/libexec/dovecot/deliver $*
> 


More information about the dovecot mailing list