Closed Spivoxity closed 5 years ago
The problem is artithmetic overflow of pointer arithmetic in gc.c(scratch_alloc).
As a workaround, try allocating from the heap:
VAR string: POINTER TO ARRAY OF CHAR;
NEW(string, 0FFFFFFFFH);
Fixed in 3.0.3
Diego Sardina writes: This code with a large array (of 2^18-1 elements) leads to segmentation fault.
Platform: Linux CentOS 7.3 x64