[Opendnssec-develop] Enforcer validating conf.xml but signer doesn't because of segfault?

Siôn Lloyd sion at nominet.org.uk
Mon Jan 16 10:00:34 UTC 2012


On 16/01/12 09:29, Jerry Lundström wrote:
> Hi,
>
> There is a bit of strangeness in the signer, it does not validate the conf.xml file but apparently the enforcer do. The comment in the code is that it segfaults, is this still true?

The same code is not commented out in trunk... Was there a problem with 
a specific version of libxml maybe?

I've not seen segfaults with the enforcer (or more recently with the 
kaspcheck rewrite which has tests that look for RNG validation failures).

> branches/OpenDNSSEC-1.3/signer/src/parser/confparser.c:
>
> /*
>      better not check: if not correct, this will segfault.
>      status = xmlRelaxNGValidateDoc(rngctx,doc);
>      if (status != 0) {
>          ods_log_error("[%s] cfgfile validation failed %s", parser_str,
>              cfgfile);
>          xmlRelaxNGFreeValidCtxt(rngctx);
>          xmlRelaxNGFree(schema);
>          xmlRelaxNGFreeParserCtxt(rngpctx);
>          xmlFreeDoc(rngdoc);
>          xmlFreeDoc(doc);
>          return ODS_STATUS_RNG_ERR;
>      }
> */
>
>




More information about the Opendnssec-develop mailing list