Unexpected conditions will produce critical warnings by p11-kit. These are often failed internal preconditions, and usually indicate a bug either in p11-kit or the software calling it.
You can use the environment variable P11_KIT_STRICT=yes
to make p11-kit do an abort()
(and core dump depending on
your configuration) when a critical warning occurs.