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

(ITS#4432) Bug in pcache.c



Full_Name: Frederik Padjen
Version: 2.3.19, 2.3.20, CVS from March the 10th
OS: Debian
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.168.136.252)


All three above mentioned versions are affected.
Configure options:
./configure --enable-ldap --enable-bdb --enable-slurpd --enable-ldbm
--enable-crypt --enable-modules --enable-proxycache --enable-syncprov
--prefix=/opt/openldap-XXX
Starting slapd results in Program terminated with signal 11, Segmentation
fault.

gdb output of the core file:
#0  0x08150616 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
1889                    return cm->db.bd_info->bi_db_config( &cm->db, fname,
lineno,
(gdb) l
1884            slap_overinst   *on = (slap_overinst *)be->bd_info;
1885            cache_manager*  cm = on->on_bi.bi_private;
1886
1887            /* Something for the cache database? */
1888            if ( cm->db.bd_info && cm->db.bd_info->bi_db_config )
1889                    return cm->db.bd_info->bi_db_config( &cm->db, fname,
lineno,
1890                            argc, argv );
1891            return SLAP_CONF_UNKNOWN;
1892    }
1893
(gdb) bt
#0  0x08150616 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
#1  0x08150619 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
#2  0x08150619 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
#3  0x08150619 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
#4  0x08150619 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
#5  0x08150619 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
#6  0x08150619 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
#7  0x08150619 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889
#8  0x08150619 in pcache_db_config (be=0x82ef008, fname=0x82ef008
"/opt/openldap-cvs/etc/openldap/proxycache.conf", lineno=137293832,
argc=137293832,
    argv=0x82ef008) at pcache.c:1889

The backtrace goes on and on, it looks like it is some kind of recursion
that fills the stack and finally crashes.