#13731: Fix libsingular memory management
------------------------------------------------------------------+---------
Reporter: nbruin |
Owner: rlm
Type: defect |
Status: new
Priority: major |
Milestone: sage-5.6
Component: memleak |
Resolution:
Keywords: | Work
issues:
Report Upstream: Reported upstream. Developers acknowledge bug. |
Reviewers:
Authors: | Merged
in:
Dependencies: |
Stopgaps:
------------------------------------------------------------------+---------
Comment (by nbruin):
Replying to [comment:53 SimonKing]:
> I guess I am now experiencing the same that you did: If `--with-emulate-
omalloc` is the ''only'' change, then installing the spkg fails with
> {{{
> In file included from ../kernel/bigintmat.h:13:0,
> from bigintmat.cc:10:
> ../kernel/intvec.h: In constructor ‘intvec::intvec(int)’:
> ../kernel/intvec.h:26:18: error: ‘omEmulateAlloc0’ was not declared in
this scope
> bigintmat.cc: In member function ‘int* bigintmat::getwid(int)’:
> bigintmat.cc:379:31: error: ‘omStrDup’ was not declared in this scope
> bigintmat.cc: In member function ‘void bigintmat::pprint(int)’:
> bigintmat.cc:414:18: error: ‘omEmulateAlloc0’ was not declared in this
scope
> bigintmat.cc:421:32: error: ‘omStrDup’ was not declared in this scope
> }}}
Yay! indeed. Those are some of the routines I provided. So yes, it's
probably best if you just use my changes for information and as hints for
how to provide the missing functionality, but then integrate it more
cleanly (I had a couple of rounds of these; the hard one being omMemDup,
which you don't seem to hit yet). The `omEmulateAlloc0` is a weird one
since that IS implemented in `omAllocEmulate.c` I think I solved that one
by simply including the relevant declaration in `omAllocDecl.h`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13731#comment:55>
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.