#9863: Error in sage/graphs/genus.pyx on ia64-Linux-suse
-----------------------+----------------------------------------------------
Reporter: mpatel | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.1
Component: doctest | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
Comment(by mpatel):
This tests a leaky Cython function:
{{{
#!python
cython('from stdlib cimport *\ndef leak(m=100000):\n cdef double *arr =
<double *>malloc(m * sizeof(double))')
def g(n=100, m=100000):
import gc
# import sage.graphs.genus
# G = graphs.CompleteGraph(100)
# G = Graph(G, implementation='c_graph', sparse=False)
gc.collect()
t = get_memory_usage()
for i in xrange(n):
leak(m)
# gb =
sage.graphs.genus.simple_connected_genus_backtracker(G._backend._cg)
# gb = None #indirect doctest
gc.collect()
return get_memory_usage(t)
}}}
For large enough `n` and `m`, `g(n,m) > 0.0`, but the threshold values
will vary from system to system (because of `get_memory_usage`'s
implementation, etc.).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9863#comment:17>
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.