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

Re: GETADDRINFO -- core dumped slapd (ITS#1304)



2.0.11 and .12 appears to be as you recommend.  That is,
include getaddrinfo in that AC_CHECK_FUNCS call.

Also retest with the provided configure script.

At 12:37 AM 2001-09-03, vserge@menatepspb.msk.ru wrote:
>Full_Name: Volkov Serge
>Version: 2.0.11; 2.0.12
>OS: Linux (ALTLinux)
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (194.186.223.229)
>
>
>Hello.
>
>When I configure with the next options i have core dumped with "make test"
>Sorry for Russian messages output, but system configure with Russian locale/
>Installation procces is
>#autoheader
>#autoconf
>#env CPPFLAGS="-DLDAP_DEBUG" FFLAGS="-pipe -Wall -O2 -fexpensive-optimizations
>-march=i586 -mcpu=i686" CXXFLAGS="-pipe -Wall -O2 -fexpensive-optimizations
>-march=i586 -mcpu=i686" CFLAGS="-pipe -Wall -O2 -fexpensive-optimizations
>-march=i586 -mcpu=i686" ./configure --prefix=/usr --exec-prefix=/usr
>--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
>--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib
>--localstatedir=/var/lib --sharedstatedir=/usr/com --mandir=/usr/share/man
>--infodir=/usr/share/info --without-included-gettext --enable-passwd
>--enable-shell --enable-wrappers --disable-rlookups --without-kerberos
>--datadir=/usr/share/openldap --libexecdir=/usr/sbin --localstatedir=/var/run
>--enable-shared --enable-static --disable-ipv6 --with-readline --with-threads
>--enable-slapd --enable-crypt --enable-syslog --enable-proctitle --enable-ldbm
>--enable-debug
>#make depend
>#make
>#make test
> make test
>cd tests; make test
>make[1]: ÷ÈÏÄ × ËÁÔÁÌÏÇ `/home/vserge/test/openldap-2.0.12/tests'
>ln: `./data': ÏÛÉÂËÁ ÐÅÒÅÚÁÐÉÓÉ ËÁÔÁÌÏÇÁ
>make[1]: [test-ldbm] ïÛÉÂËÁ 1 (ÉÇÎÏÒÉÒÏ×ÁÎÁ)
>ln: `./schema': æÁÊÌ ÓÕÝÅÓÔ×ÕÅÔ
>make[1]: [test-ldbm] ïÛÉÂËÁ 1 (ÉÇÎÏÒÉÒÏ×ÁÎÁ)
>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: 14976 Segmentation fault      (core dumped)
>$SLAPD -f $SCHEMACONF -h $MASTERURI -d $LVL $TIMING >$MASTERLOG 2>&1
>./scripts/test000-rootdse: line 35: 14977 Segmentation fault      (core dumped)
>$LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
>./scripts/test000-rootdse: line 35: 14978 Segmentation fault      (core dumped)
>$LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
>./scripts/test000-rootdse: line 35: 14979 Segmentation fault      (core dumped)
>$LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
>./scripts/test000-rootdse: line 35: 14980 Segmentation fault      (core dumped)
>$LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
>./scripts/test000-rootdse: line 35: 14981 Segmentation fault      (core dumped)
>$LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
>./scripts/test000-rootdse: line 35: 14982 Segmentation fault      (core dumped)
>$LDAPSEARCH -b "" -s base -h localhost:$PORT '+' >$SEARCHOUT 2>&1
>./scripts/test000-rootdse: kill: (14976) - No such pid
>>>>>> Test failed
>>>>>> ./scripts/test000-rootdse failed (exit 139)
>make[1]: *** [test-ldbm] ïÛÉÂËÁ 139
>make[1]: ÷ÙÈÏÄ ÉÚ ËÁÔÁÌÏÇ `/home/vserge/test/openldap-2.0.12/tests'
>make: *** [test] ïÛÉÂËÁ 2
>
>
>When I change in configure.in lines
>from :
>dnl ----------------------------------------------------------------
>dnl PF_INET6 support requires getaddrinfo and INET6_ADDRSTRLEN
>dnl PF_LOCAL may use getaddrinfo in available
>AC_CHECK_FUNCS( inet_ntop )
>
>to :
>dnl ----------------------------------------------------------------
>dnl PF_INET6 support requires getaddrinfo and INET6_ADDRSTRLEN
>dnl PF_LOCAL may use getaddrinfo in available
>AC_CHECK_FUNCS( getaddrinfo inet_ntop )
>
>Tests is OK.