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

latest HEAD

Just upgraded to the latest HEAD and noticed that some searches
were not working anymore (indexing problem, perhaps). Now,
rebuilding the database crashes slapadd:

[root@ornette demo]# make import
rm -f /usr/xad/var/ds/config/*.bdb
rm -f /usr/xad/var/ds/config/__db.*
slapadd  -b CN=Configuration,DC=xad-0,DC=padl,DC=com -f slapd.conf -l conf.ldif
make: *** [import_config] Segmentation fault (core dumped)

Strangely, it just seems to sit there if I run it under gdb.

But, the core file reveals:

(gdb) bt
#0  lutil_HASHUpdate (ctx=0xbfffece4, buf=0x4 <Error reading address 0x4: No such process>, len=32) at hash.c:45
#1  0x08059052 in octetStringIndexer (use=163, flags=6, syntax=0x80cccf0, mr=0x80d0810, prefix=0x80d076c, 
    values=0x8162240, keysp=0xbfffed8c) at schema_init.c:181
#2  0x08060dfd in objectSubClassIndexer (use=163, mask=6, syntax=0x80cccf0, mr=0x80d0810, prefix=0x80d076c, 
    values=0x81613e8, keysp=0xbfffed8c) at schema_prep.c:224
#3  0x08085eba in indexer (be=0x815d828, txn=0x81619e0, dbname=0x80ce328 "objectClass", atname=0x80d076c, 
    vals=0x81613e8, id=1, op=1, mask=6) at index.c:193
#4  0x080860c8 in index_at_values (be=0x815d828, txn=0x81619e0, type=0x80d0730, lang=0x80d0678, vals=0x81613e8, 
    id=1, op=1) at index.c:288
#5  0x0808615c in bdb_index_values (be=0x815d828, txn=0x81619e0, desc=0x80d0668, vals=0x81613e8, id=1, op=1)
    at index.c:331
#6  0x080861fc in bdb_index_entry (be=0x815d828, txn=0x81619e0, op=1, e=0x815ec10, ap=0x815ec40) at index.c:359
#7  0x0807c707 in bdb_tool_entry_put (be=0x815d828, e=0x815ec10, text=0xbfffeee8) at tools.c:204
#8  0x0804c14e in main (argc=7, argv=0xbffff19c) at slapadd.c:251
#9  0x401ee627 in __libc_start_main (main=0x804ba00 <main>, argc=7, ubp_av=0xbffff19c, init=0x804abdc <_init>, 
    fini=0x80ab740 <_fini>, rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffff18c)
    at ../sysdeps/generic/libc-start.c:129

-- Luke

Luke Howard | lukehoward.com
PADL Software | www.padl.com