NOAA-ORR-ERD / cell_tree2d

Cell Tree data structure for fast searching of an unstructured grid for the polygon containing the specified point
16 stars 11 forks source link

cell tree segfaulting #8

Closed ChrisBarker-NOAA closed 7 years ago

ChrisBarker-NOAA commented 7 years ago

This is ugly.

running the pysgrid tests, it segfaults -- but not always at the same place, and indeed, not always crashing at all.

at least once, I got no segfault, but did get this error:

python(76870,0x7fff728e3300) malloc: *** error for object 0x102dd1e00: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

so if we're lucky, it's free error -- but who knows????

ChrisBarker-NOAA commented 7 years ago

OK -- maybe jumped too soon -- turns out I can get the pysgrid tests to segfault and crash without cell_tree2d -- so this particular crash has nothing to do with cell_tree.

However, Filipe got a segfault with code that was using straight numpy arrays -- but I can't reproduce that, and am not sure what he was doing.

So closing for now.

ChrisBarker-NOAA commented 7 years ago

NOTE: FYI -- it looks like the pysgrid crashes are due to netcdf/hdf somewhere......