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

slapd fails to start with Segmentation fault (ITS#1945)



Full_Name: Ashley Frost
Version: 2.1.3
OS: tru64 5.1a
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (24.52.12.17)



I'm having trouble building and running version 2.1.3 of the software.

After the build process seems to complete without error, running "make test"
fails on test000.  After installing, trying to start slapd manually results in a
segmentation fault.

Its interesting to note that version 2.0.23 compiles and tests without any
problems.  This issue was also present in version 2.1.2.

Thanks in advance for any help or insight you can provide.

-Ashley

====

Here is the simplified option list I've used to build the software:

CPPFLAGS="-I/usr/local/include/db -I/usr/local/include"; export CPPFLAGS
LDFLAGS="-L/usr/local/lib -oldstyle_liblookup"; export LDFLAGS

./configure     --prefix=/usr/local/openldap                    \
                --without-subdir                                \
                --bindir=/usr/local/bin                         \
                --without-cyrus-sasl                            \
                --mandir=/usr/local/man                         \
                --libdir=/usr/local/lib                         \
                --includedir=/usr/local/include                 \
                --datadir=/usr/local/share/openldap             \
                --sysconfdir=/usr/local/openldap/conf           \
                --localstatedir=/usr/local/openldap             \
                --sbindir=/usr/local/sbin                       \
                --libexecdir=/usr/local/openldap/bin            \
                --enable-shared=no                              \
                --enable-static                                 \
                --disable-syslog                                \
                --without-threads

make depend && make

====

Here is the result of running 'make test':

lenox:openldap-2.1.3# make test
cd tests; make test
ln: ./data and ./data are identical.
*** Exit 1 (ignored)
Initiating LDAP tests for BDB...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Backend: bdb
>>>>> Starting test000-rootdse ...
running defines.sh
Datadir is ./data
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve the root DSE...
Waiting 5 seconds for slapd to start...
./scripts/test000-rootdse: 83028 Memory fault


lenox:tests# ../servers/slapd/slapd -s0 -f ./test-db/slapd.conf -h
ldap://localhost:9009/ -d -1
@(#) $OpenLDAP: slapd 2.1.3 (Sun Jul 14 15:51:26 EDT 2002) $
        root@lenox.williams.edu:/usr/local/build/openldap-2.1.3/servers/slapd
daemon_init: ldap://localhost:9009/
daemon_init: listen on ldap://localhost:9009/
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap://localhost:9009/)
daemon: initialized ldap://localhost:9009/
daemon_init: 1 listeners opened
slapd init: initiated server.
bdb_open: initialize BDB backend
bdb_open: Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
reading config file ./test-db/slapd.conf
line 6 (ucdata-path ./ucdata)
Segmentation fault

========

Here are the last few lines of a trace dump of executing the above command:

read(7, " #   $ O p e n L D A P :".., 8192)                 = 908
line 6 (write(2, " l i n e   6   (", 8)                                = 8
ucdata-pwrite(2, " u c d a t a - p", 8)                         = 8
ath ./ucwrite(2, " a t h   . / u c", 8)                               = 8
data)
write(2, " d a t a )\n", 6)                                               = 6
open("./ucdata/ctype.dat", O_RDONLY, 0666)      = 8
fstat(8, 0x000000011FFFBCA0)                              = 0
ioctl(8, 0x2000745E, 0x00000000)                        Err#25 Not a typewriter
read(8, "FFFE 2\0C8A7\0\0\0\0\0\0".., 8192)         = 8192
brk(0x00BA000140052EA0)                                    Err#12 Not enough
space
getrlimit(RLIMIT_DATA, 0x000000011FFFBC68)      = 0
    Incurred fault #32, FLTBOUNDS  %pc = 0x000003FF800D25A0   addr =
0x000000011FFFBD80
    Received signal #11, SIGSEGV [default]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x0000000000000000
                                                                                
     Err#11 Error 11 occurred.
        *** process killed ***