#12858: Bug in sympow
--------------------------------------------+-------------------------------
Reporter: stephen | Owner: rlm
Type: defect | Status: new
Priority: major | Milestone: sage-5.9
Component: memleak | Resolution:
Keywords: sympow | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Stephen Montgomery-Smith | Merged in:
Dependencies: | Stopgaps:
--------------------------------------------+-------------------------------
Comment (by stephen):
OK, I did find this error with a doctest. I don't remember which doctest
it was, but it was quite a few of them.
But I think it depends on the computer you are using, OS, probably amount
of RAM, other processes, etc. In my case it failed an existing doctest on
one computer, and passed on other computers.
But also, anyone who understands how malloc and free work should see
instantly that the existing code has errors.
See {{{man 3 free}}} on any unix computer, e.g. on ubuntu:
{{{
The free() function frees the memory space pointed to by ptr,
which
must have been returned by a previous call to malloc(),
calloc() or
realloc(). Otherwise, or if free(ptr) has already been called
before,
undefined behavior occurs. If ptr is NULL, no operation is
performed.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12858#comment:5>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.