From e8f5595536d3fd9c9e5052f9fa80a0db5ba77e65 Mon Sep 17 00:00:00 2001 From: dzaima Date: Fri, 13 Jun 2025 01:18:23 +0300 Subject: [PATCH] don't try to use fancy stack frame printer during GC as it'll likely end up wanting to GC itself, and nested GC isn't allowed --- src/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.c b/src/vm.c index fe20fd8b..b5e7b04d 100644 --- a/src/vm.c +++ b/src/vm.c @@ -1381,7 +1381,7 @@ NOINLINE void vm_printPos(Comp* comp, i32 bcPos, i64 pos) { // want to try really hard to print errors - if (!cbqn_initialized) goto native_print; + if (!cbqn_initialized || gc_running) goto native_print; #if FORCE_NATIVE_ERROR_PRINT goto native_print; #endif