Seems to be a memory error. Could you try running with valgrind? Perhaps it's actually happening much earlier and we just see it materialize here.