Thanks for the reply. There is a known problem with mpfr and thread-safety on this platform (my compiler does not support this sort of TLS). Sorry I forgot about that. However, I rebuilt gmp 6.0.0 with --enable-alloca=malloc-reentrant --disable-fft and now it _seems_ to work. The sin() test passes up to 5,000,000 bits. --vk