#14625: lrcalc calls exit()
-------------------------------------------------+-------------------------
Reporter: thansen | Owner: jdemeyer
Type: defect | Status: new
Priority: major | Milestone: sage-5.13
Component: packages: standard | Resolution:
Keywords: spkg, library, lrcalc | Merged in:
Authors: | Reviewers:
Report Upstream: Reported upstream. Developers | Work issues:
acknowledge bug. | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Comment (by mhansen):
Replying to [comment:6 jdemeyer]:
> That's not entirely true. It's true that Linux allows "overcommitting"
(allocating more memory than is available), but only to a certain extent.
If you allocate an enormous amount of memory, `malloc()` will fail anyway.
Second of all, this is a configuration parameter and this overcommitting
can be disabled. Third, when running under `ulimit -v`, you can never
allocate more memory than the limit.
Even so, most default configurations do not have ulimit set, and there are
plenty of cases where malloc succeeds that will eventually trigger the
Linux OOM killer. It'd be nice to be able to avoid this and have an
exception. But, if Anders already has some code to do this, I think the
best way to do this would be to have a configurable value that you can
increase within Sage if you need to.
--
Ticket URL: <http://trac.sagemath.org/ticket/14625#comment:7>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.