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

Jerry Lundström jerry at opendnssec.org
Mon Feb 20 14:12:05 UTC 2012


Hi Sander,

Looks like when the Mutex is destroyed is calls MutexFactory but it
doesn't check if there is an instance of the factory and it could have
been free'ed before the Mutex itself.

Try this patch to softhsm if you can:

Index: softHSM-1.3.1/src/lib/MutexFactory.cpp
===================================================================
--- softHSM-1.3.1/src/lib/MutexFactory.cpp	(revision 6175)
+++ softHSM-1.3.1/src/lib/MutexFactory.cpp	(working copy)
@@ -53,7 +53,11 @@
 {
 	if (isValid)
 	{
-		MutexFactory::i()->destroyMutex(handle);
+		MutexFactory *mutexFactory = MutexFactory::i();
+
+		if (mutexFactory) {
+			mutexFactory->destroyMutex(handle);
+		}
 	}
 }



On Mon, Feb 20, 2012 at 2:47 PM, Sander Smeenk <ssmeenk at freshdot.net> wrote:
> Quoting Ondřej Surý (ondrej at sury.org):
>
>> > I could recompile the packages on my pbuilder-setup and leave out the
>> > stripping of binaries.
>> Installing opendnssec-dbg-{mysql,sqlite3} should be enough.
>> And if needed, I'll build softhsm-dbg too.
>
> Oh, that's great. Installed the 'dbg' version for ods-ksmutil and this
> is the valgrind/gdb output now: https://8n1.org/8344/c338
>
> Seems to be in softhsm, as indicated before. :)
>
> -Sndr.
> --
> | A day without sunshine is like, night.
> | 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2
> _______________________________________________
> Opendnssec-user mailing list
> Opendnssec-user at lists.opendnssec.org
> https://lists.opendnssec.org/mailman/listinfo/opendnssec-user



More information about the Opendnssec-user mailing list