Looking into the current cvs source, it seems mpn_tdiv_qr still allocates linear amount of storage on the stack.
I'll ask on the gmp-devel list what can be done about it.
For the next gmp release, whenever that happens, I think the plan is that no mpn functions should allocate temporary storage by themselves, instead the caller will have to provide scratch space in an additional argument.
/ Niels Möller (igelkottsräddare)
Previous text:
2003-11-20 20:22: Subject: Strange GMP coredumps
The version is 4.1.2, and the function is mpn_tdiv_qr(), which is the main division function. There are probably other functions that do the same thing.
/ Fredrik (Naranek) Hubinette (Real Build Master)