Loïc Grenié on Fri, 13 May 2016 13:45:24 +0200


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

Re: Segfault on Cygwin64 when parisizemax > 4GB


On 2016-05-13 at 12:53 GMT+02:00 Bill Allombert wrote:
On Fri, May 13, 2016 at 11:17:53AM +0200, Jeroen Demeyer wrote:
> Dear PARI developers,
>
> While trying Sage on 64-bit Cygwin, we got a segfault in a cgetr()
> call during Sage startup. It turns out that the bug is actually in
> the mmap() implementation of Cygwin and it happens whenever
> parisizemax is larger than 4GB. The Cygwin bug is reported at
> https://cygwin.com/ml/cygwin/2016-05/msg00140.html

Thanks!
 
> Perhaps PARI should add a workaround for this bug, for example
> putting a cap on parisizemax on Cygwin?

Capping parisizemax will cause problem when the issue is fixed.
If we are to trust the bug report, the fix to cygwin is rather easy.

     What about adding a test at compile time? If the issue is easy to
  fix but has not been fixed in 1+ year, it may take a long time before
  it *is* fixed.
 
        Loïc