Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Runtime SIGBUS:  #305

@ynfle

Description

@ynfle
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions