On 05 Apr 2014, at 11:13, Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> wrote:

On Sat, Apr 05, 2014 at 09:46:36AM +0200, Xavier Roblot wrote:
Package: PARI
Version: development   16306-3443337

Hi,

The nfields part of make bench is failing for gp-dyn on my OS X 10.9.2 system with a bunch of SEGFAULT. On the other hand, gp-sta runs just fine. I attach the corresponding output file. The first error occurs with the function bnfcompress. 

The first bad commit is 

commit 8bacf11ac11df738533edb64f8a8f040468b581f
Author: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>
Date:   Mon Mar 19 19:05:29 2012 +0100

   Replace pari_init_stack by paristack_alloc/paristack_resize.


For information, here is GP header:

GP/PARI CALCULATOR Version 2.8.0 (development    16306-3443337)
                                        i386 running darwin (x86-64/GMP-5.1.2 kernel) 64-bit version
                           compiled: Apr  5 2014, Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
                                                         threading engine: pthread
                                               (readline v6.2 enabled, extended help enabled)

Also, if I recompile without threads (threading engine: single), the problem disappears…

Could you find out where the segfault happens using a debugger ?

Unfortunately, the bug disappears when I compile gp in debugging mode…

Xavier