Assertion failed - targetp != 0
Mark Andrews
Mark_Andrews at isc.org
Wed Aug 4 22:52:20 UTC 2004
> I am running bind-9.3.0rc2 with the bind-sdb-ldap-0.9 patch under Solaris 8 S
> parc. I am getting this assertion failed:
>
>
> 04-Aug-2004 15:00:07.710 general: db.c:396: ENSURE(*targetp != 0) failed
>
> 04-Aug-2004 15:00:07.711 general: exiting (due to assertion failure)
>
>
>
> I trace it down to this function:
>
>
>
> void
>
> dns_db_attachversion(dns_db_t *db, dns_dbversion_t *source,
>
> dns_dbversion_t **targetp)
>
> {
>
> /*
>
> * Attach '*targetp' to 'source'.
>
> */
>
>
>
> REQUIRE(DNS_DB_VALID(db));
>
> REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0);
>
> REQUIRE(source != NULL);
>
> REQUIRE(targetp != NULL && *targetp == NULL);
>
>
>
> (db->methods->attachversion)(db, source, targetp);
>
>
>
> ENSURE(*targetp != NULL); *** HERE ****
>
> }
>
>
>
> Has anyone seen this before or have any ideas what might be going on?
>
Known issue. Fixed in next rc.
lib/dns/sdb.c:
static void
attachversion(dns_db_t *db, dns_dbversion_t *source,
dns_dbversion_t **targetp)
{
REQUIRE(source != NULL && source == (void *) &dummy);
REQUIRE(targetp != NULL && *targetp == NULL);
UNUSED(db);
*targetp = source;
return;
}
>
>
> Thanks,
>
>
>
> Luke
>
>
>
>
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
More information about the bind-users
mailing list