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()
  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.