Skip Menu |

This queue is for tickets about the Crypt-PKCS11 CPAN distribution.

Report information
The Basics
Id: 122640
Status: open
Priority: 0/
Queue: Crypt-PKCS11

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.03
Fixed in: (no value)



Subject: Tests fail on freebsd 10
On a FreeBSD 10.3 system I see the following test failures: ... # Failed test ''t/oo.t@219: /usr/local/lib/softhsm/libsofthsm2.so GetSlotInfo' isa 'HASH'' # at t/oo.t line 25. # 't/oo.t@219: /usr/local/lib/softhsm/libsofthsm2.so GetSlotInfo' isn't defined # Failed test ''t/oo.t@222: /usr/local/lib/softhsm/libsofthsm2.so GetTokenInfo' isa 'HASH'' # at t/oo.t line 25. # 't/oo.t@222: /usr/local/lib/softhsm/libsofthsm2.so GetTokenInfo' isn't defined # Failed test ''t/oo.t@225: /usr/local/lib/softhsm/libsofthsm2.so GetMechanismList' isa 'ARRAY'' # at t/oo.t line 25. # 't/oo.t@225: /usr/local/lib/softhsm/libsofthsm2.so GetMechanismList' isn't defined $mechanismType must be defined at /home/cpansand/.cpan/build/2017072906/Crypt-PKCS11-1.03-VUlHeC/blib/lib/Crypt/PKCS11.pm line 1747. Crypt::PKCS11::GetMechanismInfo(Crypt::PKCS11=HASH(0x42aea918), 0, undef) called at t/oo.t line 228 main::mytests() called at t/oo.t line 255 # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 22 just after 57. t/oo.t ............ Dubious, test returned 22 (wstat 5632, 0x1600) Failed 3/57 subtests CKR_SLOT_ID_INVALID: Slot 0 does not exist. Died at t/pkcs11.t line 977. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 2 just after 1. t/pkcs11.t ........ Dubious, test returned 2 (wstat 512, 0x200) All 1 subtests passed ... On a freebsd 9.2 system tests pass.
Subject: Re: [rt.cpan.org #122640] Tests fail on freebsd 10
Date: Sun, 30 Jul 2017 10:30:29 +0200
To: bug-Crypt-PKCS11 [...] rt.cpan.org
From: Jerry Lundström <lundstrom.jerry [...] gmail.com>
On 07/29/17 17:58, Slaven_Rezic via RT wrote: Show quoted text
> On a FreeBSD 10.3 system I see the following test failures:
What Perl and softhsm2 version? Show quoted text
> CKR_SLOT_ID_INVALID: Slot 0 does not exist. > Died at t/pkcs11.t line 977.
Looks like it can't initiate the token slots, can you verify manually that softhsm2 works? Cheers, Jerry
On 2017-07-30 04:31:00, JELU wrote: Show quoted text
> On 07/29/17 17:58, Slaven_Rezic via RT wrote:
> > On a FreeBSD 10.3 system I see the following test failures:
> > What Perl and softhsm2 version?
Various perl versions between 5.18.4 and 5.27.2 $ pkg info softhsm2 softhsm2-2.2.0 Name : softhsm2 Version : 2.2.0 Show quoted text
> > CKR_SLOT_ID_INVALID: Slot 0 does not exist. > > Died at t/pkcs11.t line 977.
> > Looks like it can't initiate the token slots, can you verify manually > that softhsm2 works?
I tried $ softhsm2-util --init-token --slot 0 --label "My token 1" and this worked ("The token has been initialized."). Maybe you have better ideas to check if it really works? Regards, Slaven
Subject: Re: [rt.cpan.org #122640] Tests fail on freebsd 10
Date: Tue, 1 Aug 2017 11:50:02 +0000
To: bug-Crypt-PKCS11 [...] rt.cpan.org
From: Jerry Lundström <lundstrom.jerry [...] gmail.com>
On 07/30/17 13:16, Slaven_Rezic via RT wrote: Show quoted text
> I tried > > $ softhsm2-util --init-token --slot 0 --label "My token 1" > > and this worked ("The token has been initialized.").
For me it says: $ softhsm2-util --slot 0 --init-token ... The token has been initialized and is reassigned to slot 1392497024 So there seems to have been changes made to how the slots IDs are allocated which will fail the tests since slot 0 can't be used. https://github.com/opendnssec/SoftHSMv2/issues/225 Unsure how to fix this since it just the tests that are failing, bumping the module version seems wrong. Cheers, Jerry