[Opendnssec-user] ods-ksmutil key list --zone segfaults

Rickard Bellgrim rickard at opendnssec.org
Tue Feb 21 06:22:51 UTC 2012


On Mon, Feb 20, 2012 at 10:17 PM, Jerry Lundström <jerry at opendnssec.org> wrote:
> I think it might be MutexFactory::i() that bangs, even if you dont see
> it in the back trace since it could be optimized away.

The auto_ptr() is destroyed during atexit(). It may e.g. be that it
does not set it to NULL. Thus the invalid pointer. The save way is not
to have any dependencies between two different auto_ptr() objects
during their destruction phase. If there is a need for a dependency,
then it should be solved in a different way. E.g. a parent singleton
object which takes care of the destruction order or, as in this case,
move the MutexFactory object into the SoftHSMInternal since it is the
only one who uses it.

// Rickard



More information about the Opendnssec-user mailing list