Open VladikNeVladik opened 5 years ago
Somewhere in the cnpy::npy_save(...):
if (fp) { ... } else { fp = fopen(fname.c_str(),"wb"); true_data_shape = shape; } ... fseek(fp,0,SEEK_SET); // It raises segmentation fault
Running into the same issue. Should check if fp is valit (not NULL), and if not valid gracefully abort or throw an exception. Not doing so causes fseek() to segmentation fault
fp
Somewhere in the cnpy::npy_save(...):