gerbil icon indicating copy to clipboard operation
gerbil copied to clipboard

Fix interpreter segfaults

Open fare opened this issue 1 year ago • 0 comments

Interpreter tends to segfault when too many modules are imported (due to memory corruption? stack overflow?)

Example file attached (gzip'ed to pass the GitHub filter): i.scm.gz

Uncomment the top import and it works (loops forever solving the day 14 problem). Comment it and segfault happens early on (usually during the first attempt). Try to import fewer / smaller modules (including transitive dependencies) and the segfaults will happen less often (more iterations needed to trigger it) but eventually may still.

fare avatar Jan 23 '24 21:01 fare