interfaSys sàrl
2010-Aug-30 15:52 UTC
[Dovecot] [DC2.x ]pop3-login seg faults when compiled with gcc 4.5.2 and gold
Hello, 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. As this is not the only application that has a problem with the latest version of gcc (mod_php), there may be nothing that can be done on the Dovecot side, but I thought I would mention it, in case it was due to some bug in the pop3-login code. Cheers, Olivier
Timo Sirainen
2010-Sep-01 19:08 UTC
[Dovecot] [DC2.x ]pop3-login seg faults when compiled with gcc 4.5.2 and gold
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