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

Assertion failed: (pkey) #1

Open
BobWay opened this issue May 2, 2013 · 5 comments
Open

Assertion failed: (pkey) #1

BobWay opened this issue May 2, 2013 · 5 comments

Comments

@BobWay
Copy link

BobWay commented May 2, 2013

I successfully built ripplegen. However, every time I run it I get an assertion failed: (pkey) message. It doesn't matter what pattern I'm using. Is there any other bit of setup I missed? I'm compiling with clang on a mac. The only changes I made were to add boost include and lib paths to the makefile.


MacBook:RippleGen bway$ ./ripplegen r

CPUs detected: 4

Running 4 threads.

Generating seed for pattern "r"...

Assertion failed: (pkey), functiAssertion failed: (pkey), functiAssertion failed: (pkey), function CKey, file ./key.h, line 32.
on CKey, file ./key.h, line 32.
Abort trap: 6

@BobWay
Copy link
Author

BobWay commented May 12, 2013

So it turns out, the assertion only fails most of the time. If I repeat the command over and over, eventually it works. I guess I should debug why myself. :-) Anyway, thanks for the code. I successfully generated some vanity addresses.

@CodeShark
Copy link
Owner

A good place to start is probably to figure out which condition caused GenerateRootDeterministicKey to return NULL. I refactored all that key code from the original rippled project but didn't get around to thoroughly testing it nor adding more detailed error messages. But chances are good OpenSSL isn't liking something.

@goldstar111
Copy link

Any luck finding out why this happens. I am getting this issue still. on centos 7.

./ripplegen rCat

CPUs detected: 32

Running 32 threads.

Generating seed for pattern "rCat"...

ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed. ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed.
ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed. ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion pkey' failed.
ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion `pkey' failed.
Aborted

@BobWay
Copy link
Author

BobWay commented Jul 10, 2017 via email

@goldstar111
Copy link

goldstar111 commented Jul 10, 2017

Thanks. Strange. I did run it in single threaded mode and still got the error.
this is how I ran

./ripplegen rCat 1

# CPUs detected: 32
#
# Running 1 thread.
#
# Generating seed for pattern "rCat"...
#
ripplegen: key.h:32: CKey::CKey(const uint128&): Assertion `pkey' failed.
Aborted

Here is the thing. I know someone who runs it without issues. I am running on centos 7. Strange!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants