dom96 / jester

A sinatra-like web framework for Nim.
MIT License
1.56k stars 120 forks source link

Fix for SIGSEGV: Illegal storage access from lib/system/orc.nim nimIncRefCyclic #325

Open prasad83 opened 9 months ago

prasad83 commented 9 months ago

With nim version 2.0

nim c -r example.nim

fails with

$HOME/.nimble/pkgs2/httpbeast-0.4.1-b23e57a401057dcb9b7fae1fb8279a6a2ce1d0b8/httpbeast.nim(83) eventLoop
$HOME/.choosenim/toolchains/nim-2.0.0/lib/system/orc.nim(46) nimIncRefCyclic
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault (core dumped)

Using:

nim -d:useMalloc c -r example.nim

Similar: https://github.com/nim-lang/Nim/issues/22546 https://github.com/nim-lang/Nim/issues/22255#issuecomment-1645057959

ThomasTJdev commented 9 months ago

See https://github.com/dom96/httpbeast/issues/91