Segmentation fault with multiple graphs
Creating multiple graphs in a loop, I get a segmentation fault on mac os x (using macports version) after 6 iterations. Example code to replicate bug import numpy as np import graph_tool as gt for i in xrange(255): edges = np.random.random_integers(0, 20, (2,20)) g = gt.Graph() g.add_edge_list(edges) print i Any ideas what might be causing this? Thanks -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 19.08.2014 11:29, tmramalho wrote:
Creating multiple graphs in a loop, I get a segmentation fault on mac os x (using macports version) after 6 iterations. Example code to replicate bug
import numpy as np import graph_tool as gt
for i in xrange(255): edges = np.random.random_integers(0, 20, (2,20)) g = gt.Graph() g.add_edge_list(edges) print i
Any ideas what might be causing this?
This is a bug in the memory handling interface with numpy. This has been fixed now in the git version. Thanks for spotting this. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
Tiago de Paula Peixoto -
tmramalho