[Date Prev][Date Next] [Chronological] [Thread] [Top]

RUN slapd == Segmentation fault !!!! NEED HELP



Hello

I compile openldap-2.0.11 (release) like this
# env CPPFLAGS="-DLDAP_DEBUG" ./configure --disable-ipv6 --enable-local --with-readline --with-threads --enable-slapd --enable-cleartext --enable-crypt --enable-wrappers --enable-ldbm --enable-debug --enable-syslog --enable-proctitle
#make depend
#make
#make test
make[1]: Enter directory `/home/vserge/test/openldap-2.0.11/tests'
ln: `./data': error rewrite directory
make[1]: [test-ldbm] Ошибка 1 (ignore)
ln: `./schema': File exist
make[1]: [test-ldbm] Error 1 (ignore)
Initiating LDAP tests for LDBM...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Backend: ldbm
>>>>> Starting test000-rootdse ...
running defines.sh . ldbm
Datadir is ./data
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve all the entries...
./scripts/test000-rootdse: line 35:   758 Segmentation fault      (core dumped) $LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
./scripts/test000-rootdse: line 35:   757 Segmentation fault      (core dumped) $SLAPD -f $SCHEMACONF -h $MASTERURI -d $LVL
$TIMING >$MASTERLOG 2>&1
./scripts/test000-rootdse: line 35:   759 Segmentation fault      (core dumped) $LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
./scripts/test000-rootdse: line 35:   760 Segmentation fault      (core dumped) $LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
./scripts/test000-rootdse: line 35:   761 Segmentation fault      (core dumped) $LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
./scripts/test000-rootdse: line 35:   762 Segmentation fault      (core dumped) $LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
./scripts/test000-rootdse: line 35:   763 Segmentation fault      (core dumped) $LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
./scripts/test000-rootdse: kill: (757) - No such pid
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 139)
make[1]: *** [test-ldbm] Error 139
make[1]: Out direcory `/home/vserge/test/openldap-2.0.11/tests'
make: *** [test] Error 2

I try start server with different parameters but it's core dumped.

When I try debug i find in 
openldap-2.0.11/servers/slapd/daemon.c
in 
static int slap_get_listener_addresses(	const char *host, unsigned short port, 	struct sockaddr ***sal)

In line number 289
programm recive SEGV (Segmentation Fault)
in line 
*(struct sockaddr_in *)*sap =*((struct sockaddr_in *)sai->ai_addr);

What can I make with it's.


-- 
With best wishes VAS
Volkov Serge		
Network Administrator