summary refs log tree commit diff stats
path: root/lib/system/gc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/gc.nim')
-rw-r--r--lib/system/gc.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index 0ab5f4d94..cb264fe0d 100644
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -90,6 +90,8 @@ template gcAssert(cond: bool, msg: string) =
   when defined(useGcAssert):
     if not cond:
       echo "[GCASSERT] ", msg
+      GC_disable()
+      writeStackTrace()
       quit 1
 
 proc addZCT(s: var TCellSeq, c: PCell) {.noinline.} =