-
Notifications
You must be signed in to change notification settings - Fork 18k
[boringcrypto] crypto/tls/fipsonly: panic runtime error: cgo argument has Go pointer to unpinned Go pointer #64694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That looks like a problem with your libraries? |
I tried to looking at the library implementation which works perfectly without using |
something similar error with an opensource library that resolve by instantiating the object with |
It looks more like a library problem than one for boringcrypto https://github.com/SolaceProducts/pubsubplus-go-client/blob/v1.4.0/internal/ccsmp/ccsmp_core.go#L265 |
The solace library works pretty well and only when we try to integrate I checked Solace library code and nowhere it uses |
I think both libraries are conflicting because the https://github.com/golang/go/blob/dev.boringcrypto/src/cmd/cgo/gcc.go#L804 |
Go version
go version go1.21.5 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
I am trying to integrate
boringcrypto
library to my Go application but itpanic with runtime error: cgo argument has Go pointer to unpinned Go pointer
. For compilation, I am using boringcrypto build variant//go:build boringcrypto
to run the internal crypto module tests and to initiate the library.Application Code
Build command
As per the recommendation from Google, I am adding additional
GOEXPERIMENT=boringcrypto
env variable to instantiate the modules and internal linker to BoringSSL.What did you expect to see?
init()
log statement in console.fips-compliant crypto enforced
What did you see instead?
As soon as application loads, it shows following panic runtime error.
The text was updated successfully, but these errors were encountered: