ashinn / chibi-scheme

Official chibi-scheme repository
Other
1.2k stars 142 forks source link

Fix: segmentation fault during GC marking #954

Closed petteripiiroinen closed 2 months ago

petteripiiroinen commented 2 months ago

The stack top needs to be initialised before a potential garbage collection after SEXP_OP_APPLY1 and SEXP_OP_TAIL_CALL, since stack top can otherwise be pointing to a stale pointer.

This fixes the #953