Ilya Zakharevich on Sat, 26 Nov 2005 22:21:48 +0100


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

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


On Sat, Nov 26, 2005 at 06:47:37PM +0100, Bill Allombert wrote:
> > 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 ?

Only for Math::Pari:

  perl -le 'for (1..shift) {delete $INC{q(Math/Pari.pm)};
			    require Math::Pari;
			    Math::Pari::reset_on_reload(1);
			    print sin Math::Pari::PARI(1)}'      3

It segfaults now, but this may be a bug in Math::Pari, not in
GP/PARI...

Thanks,
Ilya