As I've mentioned in a previous post, I've been working on an interpreter written in Nim (https://github.com/arturo-lang/arturo).
The lexer/parser part is handled by Flex/Bison, so I'm basically interfacing with C code (the code calls back my Nim code, creates objects, turns control over to Bison, and so on).
The thing is - not in every case, but in most cases - this triggers SIGSEGV: Illegal storage access errors.
Everything is solved though when setting --gc:regions.
I guess this has to do with memory management and the Nim-C interaction?
Any suggestions are more than welcome!