#7417: disturbing notebook resource limit
------------------------+---------------------------------------------------
Reporter: was | Owner: boothby
Type: defect | Status: new
Priority: blocker | Milestone: sage-4.2.1
Component: notebook | Keywords:
Work_issues: | Author:
Reviewer: | Merged:
------------------------+---------------------------------------------------
Changes (by was):
* priority: major => blocker
* milestone: sage-4.3 => sage-4.2.1
Comment:
In particular, the following fails:
{{{
for i in range(400):
fd, name = tempfile.mkstemp()
}}}
but the following works fine:
{{{
for i in range(400):
fd, name = tempfile.mkstemp()
os.fdopen(fd,'w').close()
}}}
There are two places in the sagenb code where mkstemp is used:
{{{
misc/misc.py: return tempfile.mkstemp()[1]
storage/filesystem_storage.py: worksheet_txt =
tempfile.mkstemp()[1]
}}}
So both of these just need to be fixed to properly close the file
descriptor. Or, if safe, instead use {{{tempfile.mktemp()}}}, which
doesn't make a file descriptor.
Anyway, this is a *huge* bug which will bring down any notebook server
eventually so must be fixed for sage-4.2.1.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7417#comment:3>
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
-~----------~----~----~----~------~----~------~--~---