imap-login segfaults when using post-login
hello,
i get these lines in syslog when using post-login within imap-login:
imap-login: Fatal: master: service(imap-login): child 574 killed with signal 11 (core dumps disabled) imap[5523]: segfault at 14 ip b7556276 sp bfc1c940 error 4 in libdovecot.so.0.0.0[b7529000+d4000]
these are the relevant sections i added:
service imap-login { executable = imap post-login }
service post-login { executable = script-login /path/to/exec }
i also used /bin/true as /path/to/exec to exclude the used exec itself as the reason. same result.
version is 2.2.13 on gentoo-linux. i wonder if this error is gentoo-specific (cflags/etc...) or a bug in dovecot. this behaviour can be reproduced on two other of my gentoo-machines. same configuration worked in previous versions, don't know the exact version number.
thanks a lot for your suggestions.
i'll also cc to the gentoo-people.
nico
I hope you already found the issue on your own, but here are some pointers, just in case.
On 11/12/2014 07:01 PM, Nico Rittner wrote:
imap-login: Fatal: master: service(imap-login): child 574 killed with signal 11 (core dumps disabled) imap[5523]: segfault at 14 ip b7556276 sp bfc1c940 error 4 in libdovecot.so.0.0.0[b7529000+d4000]
these are the relevant sections i added:
service imap-login { executable = imap post-login } The service executing the post-login should be imap, not imap-login. Please see http://wiki2.dovecot.org/PostLoginScripting
service post-login { executable = script-login /path/to/exec }
i also used /bin/true as /path/to/exec to exclude the used exec itself as the reason. same result. Testing with /bin/true will not have the expected results. As its last action, the post-login script needs to call exec on its argv. In sh this would be done with 'exec "$@"'. Again, I refer you to the wiki for examples.
br, Teemu Huovila
participants (2)
-
Nico Rittner
-
Teemu Huovila