Skip to content
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

pairings-api investigate PairingFriendlyCurveProvider issue in multi-threaded environment #16673

Closed
Tracked by #13316
mxtartaglia-sl opened this issue Nov 20, 2024 · 0 comments
Assignees
Labels
Platform Tickets pertaining to the platform

Comments

@mxtartaglia-sl
Copy link
Contributor

mxtartaglia-sl commented Nov 20, 2024

@derektriley reported an issue with the loading of the SPI.

Some times, It seems that in multithreaded environments we are receiving
java.util.NoSuchElementException: A PairingFriendlyCurveProvider implementation for ALT_BN128 was not found

The stacktrace looks like:

   	○ ServicesMain::main
   		§ initNodeSecurity
   			□ CryptoStatic::generateKeysAndCerts(addressBook);
   				® Loops over AddressBook
   				® Submits to a thread pool
   				® KeysAndCerts.generate
   					◊ New code "BlsKeyPair blsKeyPair = CryptoStatic.generateBlsKeyPair();"
   					◊ Throws 

It does point out to a race condition in the code.

@mxtartaglia-sl mxtartaglia-sl self-assigned this Nov 20, 2024
@mxtartaglia-sl mxtartaglia-sl added the Platform Tickets pertaining to the platform label Nov 20, 2024
@mxtartaglia-sl mxtartaglia-sl changed the title pairings-api solve PairingFriendlyCurveProvider issue in multi-threaded environment pairings-api investigate PairingFriendlyCurveProvider issue in multi-threaded environment Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Tickets pertaining to the platform
Projects
None yet
Development

No branches or pull requests

1 participant