On Mon, 2010-08-30 at 16:52 +0100, interfaSys sàrl wrote:
On FreeBSD, Dovecot 2.0.1 compiles fine with gcc45 and the other services have no problem, but even without any optimizations (CFLAGS) at all, pop3-login seg faults when a user tries to connect to Dovecot using POP3.
If you can figure out a way to get gdb backtrace, I could try to look at why it's crashing there. One sure way to do it would be to patch: diff -r 267385a0ccd3 src/login-common/main.c --- a/src/login-common/main.c Wed Sep 01 18:44:32 2010 +0100 +++ b/src/login-common/main.c Wed Sep 01 20:07:26 2010 +0100 @@ -335,6 +335,7 @@ const char *login_socket = DEFAULT_LOGIN_SOCKET; int c; + sleep(30); master_service = master_service_init(login_binary.process_name, service_flags, &argc, &argv, "DS"); master_service_init_log(master_service, t_strconcat( Then get the process started and attach gdb: gdb /usr/local/libexec/dovecot/pop3-login <pid of pop3-login> cont <wait for crash> bt full