Code: Select all
new InputGeom(terrainGroup)
Code: Select all
verts = new float[nverts*3];// *3 as verts holds x,y,&z for each verts in the array
Code: Select all
malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
** EDIT - it's looking like somewhere in the constructor for the input geometry class memory is getting stomped on, and allocating a large chunk with the new float call hits an earlier issue. If I comment out that line and the rest of the constructor, it still seg faults....