You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd nimx
cd test
nake SIGSEGV: Illegal storage access
upon further inspection:
nake produces (and runs) ./nakefile; and running ./nakefile compiles a nim binary (IIUC) and runs this binary then produces that SIGSEGV: Illegal storage access
however I have no way to know which is that binary (so I can't debug that program via lldb ; see fowlmouth/nake#64 ; also, I can't debug via lldb ./nakefile either, this time because of nim-lang/Nim#9634)
Note:
after echo-style debugging it crashes here: inside result = superTypeAux(getImpl(t[1].symbol))
proc superTypeAux(t: NimNode, indent: int): NimNode =
doAssert(indent < 10, "Recursion too deep")
template superTypeAux(t: NimNode): NimNode = superTypeAux(t, indent + 1)
proc log(args: varargs[string, `$`]) =
discard
# echo "- ", " " * indent, args.join(" ")
log "superTypeAux: ", treeRepr(t)
case t.kind
of nnkSym:
if $t == "RootRef": return t
let ty = getTypeImpl(t)
log "TypeKind: ", ty.typeKind
result = superTypeAux(ty)
of nnkBracketExpr:
echo "ok1"
echo t.len
echo t[1] == nil
result = superTypeAux(getImpl(t[1].symbol))
echo "ok2"
EDIT
maybe even crashes here: getTypeImpl(t[^1]) in result = superTypeAux(getTypeImpl(t[^1])) in the nnkRefTy clause
The text was updated successfully, but these errors were encountered:
timotheecour
changed the title
test demo fails: SIGSEGV: Illegal storage access
regression: test demo fails: SIGSEGV: Illegal storage accessNov 7, 2018
cd nimx
cd test
nake
SIGSEGV: Illegal storage access
upon further inspection:
nake produces (and runs) ./nakefile; and running ./nakefile compiles a nim binary (IIUC) and runs this binary then produces that
SIGSEGV: Illegal storage access
however I have no way to know which is that binary (so I can't debug that program via lldb ; see fowlmouth/nake#64 ; also, I can't debug via
lldb ./nakefile
either, this time because of nim-lang/Nim#9634)Note:
after echo-style debugging it crashes here: inside
result = superTypeAux(getImpl(t[1].symbol))
EDIT
maybe even crashes here:
getTypeImpl(t[^1])
inresult = superTypeAux(getTypeImpl(t[^1]))
in thennkRefTy
clauseThe text was updated successfully, but these errors were encountered: