#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 jdemeyer):
Replying to [comment:5 zabrocki]:
> My latest version of lrcalc is 1.1.7. I'm not sure what has been
included in sage.
Sage has 1.1.6. If you do want to upgrade, I recommend to do it in a
separate ticket.
> But I am told that under linux, malloc()
> NEVER returns zero.
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.
As for returning an error value during a computation: you can use
`sig_error()` for this (introduced in #9640 and more examples in #15352).
--
Ticket URL: <http://trac.sagemath.org/ticket/14625#comment:6>
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.