#20632: Docs build crashes on Cygwin
-------------------------------+-------------------------------------------
   Reporter:  embray           |            Owner:
       Type:  defect           |           Status:  new
   Priority:  major            |        Milestone:  sage-7.3
  Component:  porting: Cygwin  |         Keywords:  windows cygwin docbuild
  Merged in:                   |          Authors:
  Reviewers:                   |  Report Upstream:  N/A
Work issues:                   |           Branch:
     Commit:                   |     Dependencies:
   Stopgaps:                   |
-------------------------------+-------------------------------------------
 I'm trying to build the docs on Cygwin and am getting a consistent crash
 at:

 {{{
 ... building other docs ...
 Build finished.  The built documents can be found in
 
/home/embray/src/sagemath/sage/local/share/doc/sage/inventory/en/reference/arithgroup
       0 [main] python 1856 fork: child -1 - forked process 3808 died
 unexpectedly, retry 0, exit code 0xC0000005, errno 11
 Error building the documentation.
 Traceback (most recent call last):
   File "/home/embray/src/sagemath/sage/local/lib/python/runpy.py", line
 162, in _run_module_as_main
     "__main__", fname, loader, pkg_name)
   File "/home/embray/src/sagemath/sage/local/lib/python/runpy.py", line
 72, in _run_code
     exec code in run_globals
   File "/home/embray/src/sagemath/sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/__main__.py", line 2, in <module>
     main()
   File "/home/embray/src/sagemath/sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/__init__.py", line 1638, in main
     builder()
   File "/home/embray/src/sagemath/sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/__init__.py", line 284, in _wrapper
     getattr(get_builder(document), 'inventory')(*args, **kwds)
   File "/home/embray/src/sagemath/sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/__init__.py", line 504, in _wrapper
     x.get(99999)
   File
 "/home/embray/src/sagemath/sage/local/lib/python/multiprocessing/pool.py",
 line 567, in get
     raise self._value
 EnvironmentError: pkg-config is not installed
 }}}

 `0xC0000005` is apparently an access violation.  Not clear yet where it's
 coming from, but it's probably a Cygwin bug.  The reference to "pkg-
 config" is especially bizarre.

 I'm experimenting with a patch so that if `SAGE_NUM_THREADS=1` the doc
 build doesn't use multiprocessing *at all* and that seems to be working.
 So that might be a worthwhile patch to add anyways.

 Then, with such a patch, I can further modify things so that
 `NUM_THREADS=1` is forced on Cygwin, just as a workaround until and unless
 I can get to the root of the problem.

--
Ticket URL: <http://trac.sagemath.org/ticket/20632>
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