#6128: [with patch; needs work] Bug - sage-cleaner failed due to NULLs in
spawned-
processes files written by cleaner.py
--------------------+-------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.3
Component: misc | Keywords:
Reviewer: | Author:
Merged: |
--------------------+-------------------------------------------------------
Comment(by was):
I used
{{{
sage -merge 6128 -t long -n 12
}}}
to try testing this on sage.math (debian 64-bit), and almost immediately
got errors:
{{{
sage -t -long devel/sage/doc/en/tutorial/introduction.rst
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2/devel/sage-
main/doc/en/tutorial/introduction.rst", line 45:
sage: E.rank()
Exception raised:
Traceback (most recent call last):
File "/scratch/wstein/build/sage-4.0.2/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/scratch/wstein/build/sage-4.0.2/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/scratch/wstein/build/sage-4.0.2/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_0[12]>", line 1, in <module>
E.rank()###line 45:
sage: E.rank()
File "/scratch/wstein/build/sage-4.0.2/local/lib/python2.5/site-
packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 1714,
in rank
X = self.mwrank()
File "/scratch/wstein/build/sage-4.0.2/local/lib/python2.5/site-
packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 483, in
mwrank
return mwrank(self.a_invariants())
File "/scratch/wstein/build/sage-4.0.2/local/lib/python2.5/site-
packages/sage/interfaces/mwrank.py", line 77, in __call__
return self.eval(str(cmd))
File "/scratch/wstein/build/sage-4.0.2/local/lib/python2.5/site-
packages/sage/interfaces/mwrank.py", line 97, in eval
return Expect.eval(self, *args, **kwds)
File "/scratch/wstein/build/sage-4.0.2/local/lib/python2.5/site-
packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2/local/lib/python2.5/site-
packages/sage/interfaces/expect.py", line 637, in _eval_line
self._start()
File "/scratch/wstein/build/sage-4.0.2/local/lib/python2.5/site-
packages/sage/interfaces/expect.py", line 452, in _start
cleaner.cleaner(self._expect.pid, cmd)
File "/scratch/wstein/build/sage-4.0.2/local/lib/python2.5/site-
packages/sage/interfaces/cleaner.py", line 31, in cleaner
o.fflush()
AttributeError: 'file' object has no attribute 'fflush'
**********************************************************************
1 items had failures:
1 of 17 in __main__.example_0
***Test Failed*** 1 failures.
For whitespace errors, see the
}}}
I also tried applying the patch manually.
I then keep seeing
{{{
File "/scratch/wstein/build/sage-4.0.2/local/bin/sage-cleaner", line 75,
in kill_spawned_jobs
os.killpg(int(pid), 9)
ValueError: invalid literal for int() with base 10: ''
}}}
which was the error that started this whole ticket... and which is an
error I have never seen before today.
I then patched sage-cleaner so that it just deletes files that contain
this empty pid and Sage works for me again.
I did try applying this patch again, but got lots of errors about
{{{
o.fflush()
AttributeError: 'file' object has no attribute 'fflush'
}}}
Anyway, in short, this patch doesn't work at all for me. Maybe fflush
works on some platforms but evidently not 64-bit debian linux.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6128#comment:4>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---