[Dovecot] Dovecot 1.0beta8 dovecot-auth consumes 100% CPU time on Solaris 10 amd64

Tore André Klock klock at beacon.com
Wed May 31 19:50:52 EEST 2006


Timo Sirainen wrote:
> So it is /dev/null.. What if you add the attached patch, does it crash
> then instead? If yes, it looks like a bug in the LDAP library.. 
It starts and then crashes with these entries in the log:
dovecot: May 31 12:43:31 Info: Dovecot v1.0.beta8 starting up
dovecot: May 31 12:43:32 Error: auth(default): file db-ldap.c: line 276
(db_ldap_connect): assertion failed: (fd != 1)
dovecot: May 31 12:43:33 Error: Auth process died too early - shutting down
dovecot: May 31 12:43:33 Error: child 27086 (auth) killed with signal 6

>Or is it
> possible that you have the same problem as this other guy who compiled
> Dovecot with one LDAP's header files but actually used another LDAP's
> library? Looking at your original mail you seemed to have given correct
> flags, but maybe it still was using Solaris LDAP's header file?
Anything is possible.

My Makefile (in src and src/auth) shows this:
AUTH_CFLAGS =
AUTH_LIBS =  -lpam -lldap
[...]
CC = /usr/sfw/bin/gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -std=gnu99 -m64
-I/usr/local/ssl/include:/usr/sfw/include:/opt/sfw/include -Wall -W
-Wmissing-prototypes -Wmissing-declarat
ions -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast
-I/usr/sfw/include
CPP = /usr/sfw/bin/cpp
CPPFLAGS = -I/usr/local/ssl/include/openssl:/usr/sfw/include:/opt/sfw/include
CXX = /usr/sfw/bin/g++
CXXCPP = /usr/sfw/bin/g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2

Maybe I need to manually change AUTH_CFLAGS?

Thanks,
- Tore


More information about the dovecot mailing list