#9851: sage -pkg may hang if there are many uncommitted changes in the package
--------------------------+-------------------------------------------------
   Reporter:  SimonKing   |       Owner:  tbd                   
       Type:  defect      |      Status:  new                   
   Priority:  minor       |   Milestone:  sage-4.5.3            
  Component:  packages    |    Keywords:  sage-pkg, stderr hangs
     Author:  Simon King  |    Upstream:  N/A                   
   Reviewer:              |      Merged:                        
Work_issues:              |  
--------------------------+-------------------------------------------------
 At [http://groups.google.com/group/sage-
 devel/browse_thread/thread/c008a74ae2b3af95 sage-devel], I reported the
 following problem.

  - Take a folder with many uncommitted changes in a Mercurial repository.
 
[http://www.google.com/url?sa=D&q=http://sage.math.washington.edu/home/SimonKing/Cohomology/p_group_cohomology-2.1.alpha0.tar.gz&usg
 =AFQjCNE362g2kL77GzI-7T5RaOBx92X0KQ Example].
  - Run {{{sage -pkg}}} on it.
  - It will hang forever while it is attempted to read from {{{stderr}}} of
 a subprocess.

 Mitesh Patel pointed to the solution: One should use {{{communicate}}}
 rather than stdout/stdin/stderr!

 I don't know how to doctest the issue; but I have a patch that solves the
 problem.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9851>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to