Closed HugoGranstrom closed 1 year ago
Thank you for reporting this, this is actually a severe bug[s] in Nim when orc enabled. Somehow var param
stop working after certain depth of indirect recursion.
This bug have not reported to Nim dev team because it is very hard to isolate and reproduce outside nim-serialization framework. But because it has appear consistently in several nim-serialization derived libraries, I think it's time to look deeper into this.
For the time being, you can stick with refc
that what we also doing because orc
breaks a lot of our libraries.
When decoding an object on
orc
it segfaults when echoing the object. It works forrefc
but not onorc
(tested on 1.6.10 and devel). Reproducing code:nimib.toml
:Output:
Expected output: