Bill Allombert on Sat, 26 Nov 2005 18:55:32 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: pari_init, RE-INIT, and programs using libpari.


On Thu, Nov 24, 2005 at 02:15:33PM -0800, Ilya Zakharevich wrote:
> On Thu, Nov 24, 2005 at 10:11:53AM +0100, Bill Allombert wrote:
> > > This is what Math::Pari is using for many years now:
> > > 
> > >    INIT_JMP_off;
> > >    INIT_SIG_off;
> > 
> > So if we were to provide pari_init_fancy(), would you use it ?
> 
> This depends.  Note that Math::Pari must support older versions of
> GP/PARI too.
> 
> BTW, I attach my attempt to make GP/PARI 2.1.7 restartable (this is a
> part of Math::Pari now; grep for reset_on_reload in Pari.xs); I still
> get segfaults at some moment if I try to reset...

Do you have a test case ? init.c in the 2.2. series is very different
from the 2.1 version so you patch does not apply.

I plan to implement a function pari_close() that should remove all pari
owned ressources in a way that pari_init() work again.

Cheers,
Bill