I added -ggdb to CFLAGS (-g previously), I checked Makefiles and added STRIP='' when needed here's next backtrace. similar to "moreinfo" post. I'll try to build with another berkeleydb version, and see if it helps.
Regards, PW --- root@gnp34:~# file /usr/sbin/slapd /usr/sbin/slapd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped root@gnp34:~#
--
bdb_idl_fetch_key: [0ba8920a] <= bdb_index_read: failed (-30990)
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xaa526b90 (LWP 20611)] 0xb7b4342c in free () from /usr/lib/i486-linux-gnu/i686/cmov/libc.so.6 (gdb) bt #0 0xb7b4342c in free () from /usr/lib/i486-linux-gnu/i686/cmov/libc.so.6 #1 0xb7e8b1ea in ber_memfree_x (p=0x0, ctx=0x0) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/libraries/liblber/memory.c:152 #2 0xb7e8b1dc in ber_memfree_x (p=0x0, ctx=0x0) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/libraries/liblber/memory.c:159 #3 0xb7e8b275 in ber_bvarray_free_x (a=0xaa025354, ctx=0x8266e78) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/libraries/liblber/memory.c:731 #4 0xb72fd8a5 in bdb_filter_candidates (op=0x82733c0, locker=13, f=0xaa02525c, ids=0xa99a4008, tmp=0xa9824008, stack=0xa9a24008) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/back-bdb/filterindex.c:803 #5 0xb72fe024 in list_candidates (op=0x82733c0, locker=13, flist=0xaa0251ec, ftype=160, ids=0xa9924008, tmp=0xa9824008, save=0xa99a4008) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/back-bdb/filterindex.c:581 #6 0xb72fc787 in bdb_filter_candidates (op=0x82733c0, locker=13, f=0xaa0252bc, ids=0xa9924008, tmp=0xa9824008, stack=0xa99a4008) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/back-bdb/filterindex.c:198 #7 0xb72fe024 in list_candidates (op=0x82733c0, locker=13, flist=0xaa525038, ftype=161, ids=0xa98a4008, tmp=0xa9824008, save=0xa9924008) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/back-bdb/filterindex.c:581 #8 0xb72fc58a in bdb_filter_candidates (op=0x82733c0, locker=13, f=0xaa52502c, ids=0xa98a4008, tmp=0xa9824008, stack=0xa9924008) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/back-bdb/filterindex.c:204 #9 0xb72fe024 in list_candidates (op=0x82733c0, locker=13, flist=0xaa525020, ftype=160, ids=0xaa464f8c, tmp=0xa9824008, save=0xa98a4008) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/back-bdb/filterindex.c:581 #10 0xb72fc787 in bdb_filter_candidates (op=0x82733c0, locker=13, f=0xaa525044, ids=0xaa464f8c, tmp=0xa9824008, stack=0xa98a4008) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/back-bdb/filterindex.c:198 #11 0xb72f7808 in bdb_search (op=0x82733c0, rs=0xaa526168) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/back-bdb/search.c:1109 #12 0x08077f43 in fe_op_search (op=0x82733c0, rs=0xaa526168) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/search.c:366 #13 0x0807876c in do_search (op=0x82733c0, rs=0xaa526168) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/search.c:217 #14 0x08075a0f in connection_operation (ctx=0xaa526248, arg_v=0x82733c0) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/connection.c:1084 #15 0x08076106 in connection_read_thread (ctx=0xaa526248, argv=0xf) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/servers/slapd/connection.c:1211 #16 0xb7e9cdd4 in ldap_int_thread_pool_wrapper (xpool=0x81af9b8) at /home/pwadas/SRC/SLAPD/openldap-2.4.9/libraries/libldap_r/tpool.c:663 #17 0xb7c274fb in start_thread () from /usr/lib/i486-linux-gnu/i686/cmov/libpthread.so.0 #18 0xb7baae8e in clone () from /usr/lib/i486-linux-gnu/i686/cmov/libc.so.6