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

arm/ios crash #52

Closed
subtly opened this issue Aug 13, 2014 · 4 comments
Closed

arm/ios crash #52

subtly opened this issue Aug 13, 2014 · 4 comments

Comments

@subtly
Copy link

subtly commented Aug 13, 2014

When running on arm/ios, secp256k1_start() fails with assertion:
#4 0x0002878a in secp256k1_num_mod_inverse at /path/secp256k1/impl/num_gmp.h:134
#5 0x00028516 in secp256k1_fe_inv_var at /path/secp256k1/impl/field.h:138
#6 0x0002691e in secp256k1_ge_set_gej at /path/secp256k1/impl/group.h:58
#7 0x00025f3e in secp256k1_ecmult_start at /path/secp256k1/impl/ecmult.h:89
#8 0x00025db0 in secp256k1_start at /path/secp256k1/secp256k1.c:22

Assertion fails in secp256k1_num_mod_inverse():
mp_size_t sn = NUM_LIMBS+1;
mp_size_t gn = mpn_gcdext(g, r->data, &sn, u, m->limbs, v, m->limbs);
assert(gn == 1); <==

Compiled with std=gnu99, USE_NUM_GMP, USE_FIELD_GMP, and USE_FIELD_INV_NUM.

What's the significance of USE_FIELD_INV_NUM and Field settings? Any thoughts on compile settings for arm?

@sipa
Copy link
Contributor

sipa commented Aug 18, 2014

Can you try building with --with-bignum=openssl? Perhaps there is a bug in the GMP library, or an incompatibility with the version.

@subtly
Copy link
Author

subtly commented Aug 21, 2014

Thanks for the suggestion. I'll give that a try next week.

@sipa
Copy link
Contributor

sipa commented Nov 18, 2014

Did you call secp256k1_start()?

@subtly
Copy link
Author

subtly commented Nov 19, 2014

Probably the issue. Can close for now -- hope to have plenty of testing and questions in the future ;)

@subtly subtly closed this as completed Nov 19, 2014
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

2 participants