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

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



This is a multi-part message in MIME format.

--Multipart_Tue__4_Sep_2001_17:29:23_+0400_08216f48
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: 8bit

On Mon, 03 Sep 2001 10:46:27 -0700
"Kurt D. Zeilenga" <Kurt@OpenLDAP.org> wrote:

> 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.

I test with both versions and have a troubles. 
put when i remove this function it work

See the patch

> 
> 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.
> 
> 


-- 
With best wishes, Volkov Serge		
Network Administrator/Security Administrator 		

--Multipart_Tue__4_Sep_2001_17:29:23_+0400_08216f48
Content-Type: application/octet-stream;
 name="openldap-configure.patch"
Content-Disposition: attachment;
 filename="openldap-configure.patch"
Content-Transfer-Encoding: base64

LS0tIG9wZW5sZGFwLTIuMC4xMi9jb25maWd1cmUuaW4ub3JpZwlUdWUgQXVnIDI4IDIxOjEyOjUx
IDIwMDEKKysrIG9wZW5sZGFwLTIuMC4xMi9jb25maWd1cmUuaW4JTW9uIFNlcCAgMyAxMDozNDoz
OCAyMDAxCkBAIC03MzUsNyArNzM1LDggQEAKIGRubCAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCiBkbmwgUEZfSU5FVDYgc3Vw
cG9ydCByZXF1aXJlcyBnZXRhZGRyaW5mbyBhbmQgSU5FVDZfQUREUlNUUkxFTgogZG5sIFBGX0xP
Q0FMIG1heSB1c2UgZ2V0YWRkcmluZm8gaW4gYXZhaWxhYmxlCi1BQ19DSEVDS19GVU5DUyggZ2V0
YWRkcmluZm8gaW5ldF9udG9wICkKK2RubCBWb2xrb3YgU2VyZ2UgZWRpdCBpdCwgYmVjb3NlIGdl
dGFkZHJpbmZvIGZ1bmN0aW9uIGNvcmUgZHVtcGVkIG9uIEFMVExpbnV4LgorQUNfQ0hFQ0tfRlVO
Q1MoIGluZXRfbnRvcCApCiAKIG9sX2xpbmtfaXB2Nj1ubwogaWYgdGVzdCAkYWNfY3ZfZnVuY19n
ZXRhZGRyaW5mbyA9IG5vIC1vICRhY19jdl9mdW5jX2luZXRfbnRvcCA9IG5vIDsgdGhlbgo=

--Multipart_Tue__4_Sep_2001_17:29:23_+0400_08216f48--