#20463: Pari segfault on Sage startup in Cygwin (2)
-------------------------------------+-------------------------------------
       Reporter:  embray             |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.2
      Component:  porting: Cygwin    |   Resolution:
       Keywords:  cygwin windows     |    Merged in:
        Authors:  Erik Bray          |    Reviewers:
Report Upstream:  Reported           |  Work issues:
  upstream. No feedback yet.         |       Commit:
         Branch:  u/embray/pari-     |  d0ca39615c9d83ed76e9ab0916925b35d9131183
  mmap-cygwin                        |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Erik Bray', 'oldvalue': ''}):

 * status:  new => needs_review
 * author:   => Erik Bray
 * branch:   => u/embray/pari-mmap-cygwin
 * upstream:  N/A => Reported upstream. No feedback yet.
 * keywords:   => cygwin windows
 * commit:   => d0ca39615c9d83ed76e9ab0916925b35d9131183


Comment:

 I have discovered what I think is the cause of this issue, and have
 reported it upstream--I believe it to be an issue in Cygwin:
 https://cygwin.com/ml/cygwin/2016-05/msg00140.html

 I've attached a workaround for the issue from the Sage end.  I'm not
 terribly happy with it, because if I understand correctly PARI will
 automatically grow its stack size as needed, and if it grows beyond 4GB
 this bug ''could'' still occur (though I haven't tested this yet--anyone
 want to suggest to me a good way to test it?)

 I'm not sure how best to work around that though without completely taking
 over PARI's stack management.  Probably fine just to leave it as a known
 issue until there's a fix in Cygwin. It's more important that we don't
 immediately segfault as soon as the first PARI number is created.
 ----
 New commits:
 
||[http://git.sagemath.org/sage.git/commit/?id=d0ca39615c9d83ed76e9ab0916925b35d9131183
 d0ca396]||{{{Workaround for Segfault during start up due to PARI's stack
 size being made too large for Cygwin (due to a bug in Cygwin; see
 http://trac.sagemath.org/ticket/20463)}}}||

--
Ticket URL: <http://trac.sagemath.org/ticket/20463#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to