GMP bug (?) - unable to build for ARM64 with assembly enabled

Andreas Buff ab at pep.security
Fri Oct 16 09:59:21 UTC 2020



Am 16.10.20 um 11:48 schrieb Torbjörn Granlund:
> Andreas Buff <ab at pep.security> writes:
>
>    thanks to your help, its building fine now without --disable-assembly,
>    but it crashes using it.
>
>    I am totally not into ASM, so forgive unqualified report(s).
>
>    Here is the backtrace:
>
>    * thread #8, queue = 'PEPAsyncSession.queue', stop reason =
>    EXC_BAD_ACCESS (code=2, address=0x16fbcc000)
>       * frame #0: 0x00000001019baf58 PEPObjCAdapterFramework`__gmpn_add_n + 144
>         frame #1: 0x00000001019babe4 PEPObjCAdapterFramework`__gmpn_add + 68
>         frame #2: 0x00000001019e756c
>    PEPObjCAdapterFramework`__gmpn_toom2_sqr + 1020
>         frame #3: 0x00000001019c8030 PEPObjCAdapterFramework`__gmpn_sqr + 144
>         frame #4: 0x00000001019fe838 PEPObjCAdapterFramework`__gmpn_powm + 3416
>         frame #5: 0x00000001019b5678 PEPObjCAdapterFramework`__gmpz_powm + 2432
>
>    Let me know if and how to provide more useful information if needed.
>
> Your report is scarce of detail.  Perhaps there is a bug in your
> program?
>
> Another possibility is that GMP does not work right on Ios.  Since that
> is a closed platform where developers need to pay Apple for programming,
> you cannot excpect any effort from the GMP team with regards to
> development or testing of GMP for Ios.
>
> If somebody who pays the Apple programmer tax is willing to help you
> debug your crash, we will certainly look at whatever GMP change might be
> needed.
>
Haha, fair enough, thanks :-)

JFYI: I can confirm GMP works fine on iOS with ASM disabled.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 6884 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20201016/49a8254e/attachment.bin>


More information about the gmp-bugs mailing list