idlewan / nim-fswatch

Nim bindings for the fswatch library
0 stars 0 forks source link

SIGSEGV: Illegal storage access. (Attempt to read from nil?) / EXC_BAD_ACCESS with basic.nim example #2

Open timotheecour opened 5 years ago

timotheecour commented 5 years ago

rnim --passl:-Wl,-rpath,$(brew --prefix fswatch)/lib $nim_D/nim-fswatch/examples/basic.nim nim c --nimcache:/tmp/nim//nimcache/ -o:/tmp/nim//app -r --passl:-Wl,-rpath,/Users/timothee/homebrew/opt/fswatch/lib /Users/timothee/git_clone//nim//nim-fswatch/examples/basic.nim

fails here: discard handle.add_path(directory_to_watch)

with gdb: (lldb) bt

likewise with discard handle.add_path("./")