Compilation options:
-d:debug
-d:useSysAssert
-d:useGcAssert
--debugger:native
--stackTrace:on
--gc:refc
This is what I'm getting:
[GCASSERT] incRef: interiorPtrTraceback (most recent call last)
/Users/drkameleon/Documents/Code/OpenSource/arturo-lang/arturo/src/main.nim(81) main
/Users/drkameleon/Documents/Code/OpenSource/arturo-lang/arturo/src/compiler.nim(511) runScript
/Users/drkameleon/Documents/Code/OpenSource/arturo-lang/arturo/src/core/expression_list.nim(38) addExpression
/usr/local/Cellar/nim/1.0.0/nim/lib/system/gc.nim(238) asgnRef
/usr/local/Cellar/nim/1.0.0/nim/lib/system/gc.nim(113) incRef
Answering to myself (after, hopefully, having fixed the issue):
I was trying to access and change a ref object which was obviously not GC_ref -ed before.