[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#6616) back-sql crashing
Full_Name: Rex Johnston
Version: cvs
OS: debian
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (123.255.40.107)
Attempting to create an inetOrgPerson interface to a proprietary database
schema.
Obviously something wrong at this stage, causes slapd to SEGV.
gdb tells me that in servers/slapd/back-sql/entry-id.c:backsql_id2entry()
bsi->bsi_oc is null going into this call.
rc = attr_merge_normalize_one( bsi->bsi_e,
slap_schema.si_ad_objectClass,
&bsi->bsi_oc->bom_oc->soc_cname,
bsi->bsi_op->o_tmpmemctx );
Without any time to absorb any implications, adding this just before the above
call
// added without any clue... Rex
if ( eid->eid_oc == NULL )
return LDAP_NO_SUCH_OBJECT;
fixes the SEGV, but not my interface.