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

make test fails with Segmentation fault on Linux (ITS#707)



Full_Name: Laurent Bonnaud
Version: 2.0.0
OS: Debian GNU/Linux 2.2
URL: 
Submission from: (NULL) (193.55.51.153)


>make test fails on my Debian GNU/Linux 2.2 system (see the crash
>below).  Here is how I configured and built openldap (without any
>problem):
>
>./configure --enable-spasswd --enable-wrappers 
>make depend
>make
>make install
>
>And here are all necessary packages:
>
>ii  libwrap0             7.6-4                Wietse Venema's TCP wrappers
library
>ii  libwrap0-dev         7.6-4                Wietse Venema's TCP wrappers
library, development files
>ii  libssl09             0.9.4-5              SSL shared libraries
>ii  libssl09-dev         0.9.4-5              SSL development libraries
>ii  libsasl-bin          1.5.21-1             Development files for
authentication abstraction library
>ii  libsasl-dev          1.5.21-1             Development files for
authentication abstraction library
>ii  libsasl-modules      1.5.21-1             Pluggable Authentication Modules
for SASL
>ii  libsasl7             1.5.21-1             Authentication abstraction
library.
>
>slapd is linked with the libdb shared libraries from libc6/glibc2
>whereas the system has a large choice of libraries:
>
>ii  libdb2                 2.4.14-2.7.7.1.c       The Berkeley database
routines (run-time files).
>ii  libdb2-dev             2.4.14-2.7.7.1.c       The Berkeley database
routines (development files).
>ii  libdb2-util            2.4.14-2.7.7.1.c       The Berkeley database
routines (development files).
>ii  libgdbmg1              1.7.3-26.2             GNU dbm database routines
(runtime version). [libc6 version]
>ii  libgdbmg1-dev          1.7.3-26.2             GNU dbm database routines
(development files) [libc6 version

>$ make test
>cd tests; make test
>make[1]: Entering directory `/home/laurent/openldap-2.0.0/tests'
>ln: ./data: cannot overwrite directory
>make[1]: [test-ldbm] Error 1 (ignored)
>Initiating LDAP tests for LDBM...
>>>>>> Executing all LDAP tests...
>>>>>> Test Directory: .
>>>>>> Backend: ldbm
>>>>>> Starting test001-slapadd ...
>running defines.sh . ldbm
>Datadir is ./data
>Cleaning up in ./test-db...
>Running slapadd to build slapd database...
>Starting slapd on TCP/IP port 9009...
>Using ldapsearch to retrieve all the entries...
>./scripts/test001-slapadd: line 43: 21718 Segmentation fault      $LDAPSEARCH
-S "" -b "$BASEDN" -h localhost:$PORT >$SEARCHOUT 2>&1
>./scripts/test001-slapadd: line 43: 21719 Segmentation fault      $LDAPSEARCH
-S "" -b "$BASEDN" -h localhost:$PORT >$SEARCHOUT 2>&1
>./scripts/test001-slapadd: line 43: 21720 Segmentation fault      $LDAPSEARCH
-S "" -b "$BASEDN" -h localhost:$PORT >$SEARCHOUT 2>&1
>./scripts/test001-slapadd: line 43: 21721 Segmentation fault      $LDAPSEARCH
-S "" -b "$BASEDN" -h localhost:$PORT >$SEARCHOUT 2>&1
>./scripts/test001-slapadd: line 43: 21722 Segmentation fault      $LDAPSEARCH
-S "" -b "$BASEDN" -h localhost:$PORT >$SEARCHOUT 2>&1
>./scripts/test001-slapadd: line 43: 21723 Segmentation fault      $LDAPSEARCH
-S "" -b "$BASEDN" -h localhost:$PORT >$SEARCHOUT 2>&1
>./scripts/test001-slapadd: kill: (21717) - No such pid
>ldapsearch failed (139)!
>>>>>> ./scripts/test001-slapadd failed (exit 139)
>make[1]: *** [test-ldbm] Error 139
>make[1]: Leaving directory `/home/laurent/openldap-2.0.0/tests'
>make: *** [test] Error 2
>
>$ ldd  /usr/local/libexec/slapd
>        libdb.so.3 => /lib/libdb.so.3 (0x40017000)
>        libsasl.so.7 => /usr/lib/libsasl.so.7 (0x40052000)
>        libssl.so.0 => /usr/lib/libssl.so.0 (0x4005d000)
>        libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x4008a000)
>        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40135000)
>        libnsl.so.1 => /lib/libnsl.so.1 (0x40162000)
>        libwrap.so.0 => /lib/libwrap.so.0 (0x40178000)
>        libpthread.so.0 => /lib/libpthread.so.0 (0x4017f000)
>        libc.so.6 => /lib/libc.so.6 (0x40192000)
>        libdl.so.2 => /lib/libdl.so.2 (0x4026f000)
>        libpam.so.0 => /lib/libpam.so.0 (0x40274000)
>        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


Core was generated by `../clients/tools/ldapsearch -P 3 -x -LLL -S  -b
o=University of Michigan, c=US'.
Program terminated with signal 11, Segmentation fault.
#0  0x401e6183 in ?? ()
(gdb) bt
#0  0x401e6183 in ?? ()
#1  0x401e6145 in ?? ()
#2  0x80584a1 in ldap_utf8_strspn (str=0x8095230 "\030U\t\b\002", set=0x8095518
"\003") at utf-8.c:402
#3  0x804ee9c in sb_sasl_setup (sbiod=0x8095230, arg=0x80959a8) at cyrus.c:95
#4  0x8056b73 in ldap_pvt_tls_init_def_ctx () at tls.c:202
#5  0x804eb0c in ldap_int_get_controls (ber=0x8095230, ctrls=0x1) at
controls.c:194
#6  0x8056872 in ldap_charray2str (a=0x8095230, sep=0x60 <Address 0x60 out of
bounds>) at charray.c:232
#7  0x8054b25 in ldap_url_list2hosts (ludlist=0x8095230) at url.c:749
#8  0x8054bb2 in ldap_url_list2hosts (ludlist=0x8095230) at url.c:761
#9  0x805516a in openldap_ldap_init_w_conf (file=0x8095230 "\030U\t\b\002",
userconf=0) at init.c:167
#10 0x804eadf in ldap_int_get_controls (ber=0x8095230, ctrls=0x0) at
controls.c:186
#11 0x804c18f in process_ldif_rec (rbuf=0x0, count=-1073742796) at
/usr/include/stdlib.h:311
#12 0x40155a52 in ?? ()