Package: pari
Version: 2.8.0

Was getting the behaviour below initially with version
"GP/PARI CALCULATOR Version 2.8.0 (development 16328-80171e8)",

I also tried latest gp git snapshot (gp-gmp-git2172a6b.exe) and the problem is still occurring with this version.

Running this under Windows 8.1 (also had same problem with Windows 8).

The full contents of the session followed by the function used (bug_test2()) are included below.

Unfortunately, I cannot reproduce it every single time with the same value of t, so it seems that the iteration over t in the function, bug_test2(), is needed to cause the problem.

It looks similar to bug 1579 about the SEGV with nfinit(), but the messages in that bug state that it is fixed in May 2014 whereas this is still happening with the git snapshot from 19 July 2014.

Happy to provide any more information that would be helpful to you.

Regards,

Paul

(1) full session contents:
                                   GP/PARI CALCULATOR Version 2.8.0 (development 16675-2172a6b)
                                    i686 running mingw (ix86/GMP-5.1.3 kernel) 32-bit version
                                         compiled: Jul 19 2014, gcc version 4.9.0 (GCC)
                                                     threading engine: single
                                          (readline v6.2 enabled, extended help enabled)

                                              Copyright (C) 2000-2014 The PARI Group

PARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER.

Type ? for help, \q to quit.
Type ?12 for how to get moral (and possibly technical) support.

parisize = 4000000, primelimit = 500000
? allocatemem(64*10^6)
  ***   Warning: new stack size = 64000000 (61.035 Mbytes).
? \r bnfinit-bug-tests.gp
? bug_test2(1,10^4)
error:error("bug in PARI/GP (Segmentation Fault), please report.") for t=3784, f=x^3 - 71897*x^2 - 34056*x - 49193

(2) bug_test2() function:

bug_test2(tStart,tEnd) = {
    my(anv,bnv,cnv,f,t);
   
    for(t=tStart,tEnd,
        anv=19*t+1;
        bnv=9*t;
        cnv=13*t+1;
        f=x^3-anv*x^2-bnv*x-cnv;
        iferr(bnf=bnfinit(f),E,print("error:",E," for t=",t,", f=",f));
    );
}