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

(ITS#4199) slapd seg faulting on loglevel 64 with "overlay pcache"

Full_Name: Ashish Gawarikar
Version: 2.3.11
OS: Any Linux 2.6 or Redhat 4.0
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

Here is the slapd.conf which is relevant:

loglevel 64
overlay pcache
#Note 5 entries in proxy cache
#but only one proxyattrset defined
proxycache bdb 10000 5 5000 3600

#this is the only one.
proxyattrset 0 blah
proxytemplate (blah1=) 0 3600

When we start the slapd in loglevel 64, we get a seg fault and the core dump
which looks similar to the following:

#0  0x08107bc4 in pc_cf_gen (c=0xbfb4f524) at pcache.c:1741
1741    pcache.c: No such file or directory.
        in pcache.c
(gdb) where
#0  0x08107bc4 in pc_cf_gen (c=0xbfb4f524) at pcache.c:1741
#1  0x080547d4 in config_get_vals (cf=0x82c7a00, c=0xbfb4f524) at config.c:365
#2  0x08052a13 in config_build_attrs (e=0x8395578, at=0x8322ac8, ad=0x8314738,
ct=0x82c79d8, c=0xbfb4f524) at bconfig.c:3863
#3  0x08052ce8 in config_build_entry (op=0x0, rs=0xbfb4f1ec, parent=0x8395208,
c=0xbfb4f524, rdn=0xbfb4f1e4, main=0x82c366c,
    extra=0x82c7aa0) at bconfig.c:3943
#4  0x08053457 in config_back_db_open (be=0x835f478) at bconfig.c:4173
#5  0x08064516 in backend_startup_one (be=0x8323778) at backend.c:212
#6  0x080647ed in backend_startup (be=0x0) at backend.c:301
#7  0x0807fb35 in slap_startup (be=0x0) at init.c:248
#8  0x0804c051 in main (argc=5, argv=0xbfb50824) at main.c:724

1. The slapd should not start giving the mismatch
or even better
2. let the proxycache entries be more than the  number of existing proxyattrset
entries and the rest of the proxyattrset values can be defined as null/zeros in
the array/list.