Hi Paul, Yes, that much is evident. :) It was / is something to do with freeing the gmp variable. I have now switched completely to using MPFR and I no longer have the crash. Regards, John On Saturday 09 Jan 2010 21:35:46 you wrote: > John, > > your valgrind output shows that there are some problems in your program. > > Paul >