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

Re: (ITS#3570) bconfig segfault



Okay, not it at least fails gracefully.  Below is the log
(for test000).  Seems this is in back-perl or one of the
other many backends I've built in (but not enabled).

@(#) $OpenLDAP: slapd 2.X (Feb 27 2005 09:19:05) $
    kurt@cantor.openldap.org:/home/kurt/versions/devel/servers/slapd
daemon_init: ldap://localhost:9011/
daemon_init: listen on ldap://localhost:9011/
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap://localhost:9011/)
daemon: initialized ldap://localhost:9011/
daemon_init: 2 listeners opened
slapd init: initiated server.
slap_sasl_init: initialized!
bdb_back_initialize: initialize BDB backend
bdb_back_initialize: Sleepycat Software: Berkeley DB 4.3.27: (December 22, 2004)
hdb_back_initialize: initialize HDB backend
hdb_back_initialize: Sleepycat Software: Berkeley DB 4.3.27: (December 22, 2004)
perl backend open
config_back_init: objectclass "( OLcfgOc:3 NAME 'olcGlobal' DESC 'OpenLDAP Globa
l configuration options' SUP olcConfig STRUCTURAL MAY ( olcAccess $ olcAllows $
olcArgsFile $ olcAttributeOptions $ olcAuthRewrite $ olcAuthzPolicy $ olcAuthzRe
gexp $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcDefaultSe
archBase $ olcDisallows $ olcGentleHUP $ olcIdleTimeout $ olcIndexSubstrIfMaxLen
 $ olcIndexSubstrIfMinLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcLo
calSSF $ olcLogLevel $ olcModuleLoad $ olcModulePath $ olcObjectIdentifier $ olc
PasswordCryptSaltFormat $ olcPasswordHash $ olcPidFile $ olcPlugin $ olcPluginLo
gFile $ olcReadOnly $ olcReferral $ olcReplicaPidFile $ olcReplicaArgsFile $ olc
ReplicationInterval $ olcReplogFile $ olcRequires $ olcRestrict $ olcReverseLook
up $ olcRootDSE $ olcSaslHost $ olcSaslRealm $ olcSaslSecProps $ olcSchemaCheck
$ olcSchemaDN $ olcSecurity $ olcSizeLimit $ olcSockbufMaxIncoming $ olcSockbufM
axIncomingAuth $ olcSrvtab $ olcThreads $ olcTimeLimit $ olcTLSCACertificateFile
 $ olcTLSCACertificatePath $ olcTLSCertificateFile $ olcTLSCertificateKeyFile $
olcTLSCipherSuite $ olcTLSCRLCheck $ olcTLSRandFile $ olcTLSVerifyClient ) )": A
ttributeType not found, olcAuthRewrite
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.


At 09:06 AM 2/27/2005, ando@sys-net.it wrote:
>Kurt@OpenLDAP.org wrote:
>
>>Full_Name: Kurt Zeilenga
>>Version: HEAD
>>OS: FreeBSD 4
>>URL: ftp://ftp.openldap.org/incoming/
>>Submission from: (NULL) (24.205.218.53)
>>
>>
>>HEAD (as of now) segfaults here:
>>
>>(gdb) where
>>#0  0x805e2db in config_build_entry (c=0xbfbfed40, e=0x8215cc0, oc=0x0, 
>>    rdn=0xbfbfed38, ct=0x81a29a0, table=0) at bconfig.c:254
>>#1  0x805e616 in config_back_db_open (be=0x823c800) at bconfig.c:354
>>#2  0x8071cb9 in backend_startup_one (be=0x823c800) at backend.c:240
>>#3  0x8071ff2 in backend_startup (be=0x0) at backend.c:328
>>#4  0x8088f00 in slap_startup (be=0x0) at init.c:174
>>#5  0x805dc56 in main (argc=8, argv=0xbfbff2f4) at main.c:728
>>  
>>
>It shouldn't get there, because the error occurs earlier in 
>config_back_init(), where the parsing of objectClass 'olcGlobal' fails 
>because (at least) the attributeDescription 'olcAuthRewrite' is not 
>found; unfortunately, the return code of config_back_init() is not 
>checked.  I've fixed this; the error still occurs, but at least slapd 
>fails gently.
>
>p.
>
>
>    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497