[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sigstore-go segmentation fault during self-tests



I'm near a sigstore-go build now but got the self-test failure below.
Does any recognize these error message?  I'm inclined to disable this
self test, but the errors looks a bit more serious than usual so wanted
to ask for more thoughts...

/Simon

=== RUN   TestSignedEntityVerifierInitialization
    data.go:94: 
        	Error Trace:	/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/testing/data/data.go:94
        	            				/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/verify/signed_entity_test.go:32
        	Error:      	Expected value not to be nil.
        	Test:       	TestSignedEntityVerifierInitialization
--- FAIL: TestSignedEntityVerifierInitialization (0.00s)
=== RUN   TestSignedEntityVerifierInitRequiresTimestamp
    data.go:94: 
        	Error Trace:	/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/testing/data/data.go:94
        	            				/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/verify/signed_entity_test.go:57
        	Error:      	Expected value not to be nil.
        	Test:       	TestSignedEntityVerifierInitRequiresTimestamp
--- FAIL: TestSignedEntityVerifierInitRequiresTimestamp (0.00s)
=== RUN   TestEntitySignedByPublicGoodWithTlogVerifiesSuccessfully
    data.go:94: 
        	Error Trace:	/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/testing/data/data.go:94
        	            				/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/verify/signed_entity_test.go:81
        	Error:      	Expected value not to be nil.
        	Test:       	TestEntitySignedByPublicGoodWithTlogVerifiesSuccessfully
--- FAIL: TestEntitySignedByPublicGoodWithTlogVerifiesSuccessfully (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x8b3500]

goroutine 46 [running]:
testing.tRunner.func1.2({0xdd1c40, 0x16a1210})
	/usr/lib/go-1.23/src/testing/testing.go:1632 +0x230
testing.tRunner.func1()
	/usr/lib/go-1.23/src/testing/testing.go:1635 +0x35e
panic({0xdd1c40?, 0x16a1210?})
	/usr/lib/go-1.23/src/runtime/panic.go:785 +0x132
github.com/sigstore/sigstore-go/pkg/root.(*TrustedRoot).RekorLogs(0xc0003b3b40?)
	/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/root/trusted_root.go:78
github.com/sigstore/sigstore-go/pkg/verify.VerifyArtifactTransparencyLog({0x10821b0, 0xc0003b3b40}, {0x10808a0, 0x0}, 0x1, 0x1, 0x0)
	/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/verify/tlog.go:92 +0x325
github.com/sigstore/sigstore-go/pkg/verify.(*SignedEntityVerifier).VerifyTransparencyLogInclusion(0xf742f8?, {0x10821b0?, 0xc0003b3b40?})
	/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/verify/signed_entity.go:663 +0x65
github.com/sigstore/sigstore-go/pkg/verify.(*SignedEntityVerifier).Verify(0xc000208620, {0x10821b0, 0xc0003b3b40}, {0xf742f8?, {0xc0001250f8?, 0x550f4d?, 0x14ef008?}})
	/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/verify/signed_entity.go:501 +0xd1
github.com/sigstore/sigstore-go/pkg/verify_test.TestEntitySignedByPublicGoodWithTlogVerifiesSuccessfully(0xc0004144e0)
	/build/sigstore-go-0.6.2/_build/src/github.com/sigstore/sigstore-go/pkg/verify/signed_entity_test.go:87 +0x127
testing.tRunner(0xc0004144e0, 0xf74048)
	/usr/lib/go-1.23/src/testing/testing.go:1690 +0xf4
created by testing.(*T).Run in goroutine 1
	/usr/lib/go-1.23/src/testing/testing.go:1743 +0x390
FAIL	github.com/sigstore/sigstore-go/pkg/verify	0.273s
FAIL
dh_auto_test: error: cd _build && go test -vet=off -v -p 16 github.com/sigstore/sigstore-go/cmd/conformance github.com/sigstore/sigstore-go/cmd/sigstore-go github.com/sigstore/sigstore-go/examples/oci-image-verification github.com/sigstore/sigstore-go/examples/sigstore-go-signing github.com/sigstore/sigstore-go/pkg/bundle github.com/sigstore/sigstore-go/pkg/fulcio/certificate github.com/sigstore/sigstore-go/pkg/root github.com/sigstore/sigstore-go/pkg/sign github.com/sigstore/sigstore-go/pkg/testing/ca github.com/sigstore/sigstore-go/pkg/testing/data github.com/sigstore/sigstore-go/pkg/tlog github.com/sigstore/sigstore-go/pkg/tuf github.com/sigstore/sigstore-go/pkg/util github.com/sigstore/sigstore-go/pkg/verify returned exit code 1
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Attachment: signature.asc
Description: PGP signature


Reply to: