Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime SIGBUS: #305

Open
ynfle opened this issue Nov 29, 2022 · 1 comment
Open

Runtime SIGBUS: #305

ynfle opened this issue Nov 29, 2022 · 1 comment

Comments

@ynfle
Copy link

ynfle commented Nov 29, 2022

import jester

const cookies = {
  "a": "a",
  "b": "b",
  "c": "c",
  "d": "d",
  "e": "e",
  "f": "f"
}.toTable

proc myrouter(request: Request): Future[ResponseData] {.async.} =
  block route:
    for name, cookie in cookies:
      setCookie(name, cookie)
    resp Http200

var j = initJester myrouter
j.serve

fails at runtime when the endpoint is hit with SIGBUS: Illegal storage access. (Attempt to read from nil?)

This is only with the refc gc, but linux and Windows don't have the crash with orc. macOS still crashes, though

@ArikRahman
Copy link

I actually have that same error with orc. It works occasionally, just a timing issue, I have to spam execute the server executable until it works. There is some conversation about it here as well:

https://forum.nim-lang.org/t/9767

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants