arm/ios crash #52

issue subtly openend this issue on August 13, 2014
  1. subtly commented at 2:33 pm on August 13, 2014: none

    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?

  2. sipa commented at 10:15 pm on August 18, 2014: contributor
    Can you try building with –with-bignum=openssl? Perhaps there is a bug in the GMP library, or an incompatibility with the version.
  3. subtly commented at 10:14 am on August 21, 2014: none
    Thanks for the suggestion. I’ll give that a try next week.
  4. sipa commented at 12:22 pm on November 18, 2014: contributor
    Did you call secp256k1_start()?
  5. subtly commented at 5:45 am on November 19, 2014: none
    Probably the issue. Can close for now – hope to have plenty of testing and questions in the future ;)
  6. subtly closed this on Nov 19, 2014


subtly sipa


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-27 11:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me