Hi, I am a user of the Nim programming language which compile to C,
I use TinyCC for compiling Nim programs in debug mode for its
especially fast compilation time.
I recently encountered an issue where I was getting a segfault at
some point after I called a function which returned a struct as
Note that this issue only appear with TCC, and not with gcc or
I managed to reproduce the issue with this test
file. The Nimframe function inside are there to mimic the Nim