Hi all!
I built dovecot-1.2.14 on Solaris 10 with gcc as well as cc and had reproducible crashes of imap-login:
Aug 31 19:00:05 dovecot: Info: Dovecot v1.2.14 starting up
Aug 31 19:00:10 imap-login: Info: Login: user=<someuser>, method=PLAIN,
rip=
To solution was to set the environment variable LIBS to "-lgcc_s" before running configure. I think this is a bug as this library should be added automatically by configure to the Makefile when considered necessary. The same problem applies to Dovecot-2.0.1 also, which gave the same error message.
regards, Stephan
P.S. I found a similar message of this issue for version 1.0.rc27 but the suggestions didn't help (i.e. /usr/sfw/lib is already in the RPATH).