Open eirikurj opened 1 year ago
I don't know what causes this error, but I think there is a bug in pyNSGA2/allocate.c.
line 33: ind->gene = (int *)malloc(global.nbinsizeof(int)); -> ind->gene = (int *)malloc(global.nbinsizeof(int*));
The code before modification will work on 32-bit OS, but may fail on 64-bit OS.
Description
The same NSGA2 opt 1 test segfault occasionally in our tests (see here or below). This happens on different systems and architectures, but unfortunately it does not fail consistently. This started to appear around or after #330 was merged.