-
Notifications
You must be signed in to change notification settings - Fork 9
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
[major] SIGSEGV: Illegal storage access
in gen=>genCall=>skipTypes
#93
Comments
SIGSEGV: Illegal storage access
with include sequtils
SIGSEGV: Illegal storage access
with include sequtils
after compiling a debug version of nimsuggest as follows:
and running
I'm getting:
|
with lldb (see instructions in #94) I'm getting:
|
even more info:
|
/cc @Araq after a (painful... wish I had nim-lang/Nim#8276 ) reduction I get something without any imports: proc fun(a: NimNode) =
echo a.kind
macro mapLiterals(a: untyped): untyped =
fun(a)
mapLiterals(0) echo "sug bugs/nimsuggest/t01c.nim:9:3" | $nimc_D/bin/nimsuggest --stdin bugs/nimsuggest/t01c.nim
and a shorter stacktrace:
|
SIGSEGV: Illegal storage access
with include sequtils
SIGSEGV: Illegal storage access
in skipTypes
SIGSEGV: Illegal storage access
in skipTypes
SIGSEGV: Illegal storage access
in gen=>genCall=>skipTypes
|
indeed... but when I simplify a bit further,
macro mapLiterals(a: untyped): untyped =
echo a.kind
mapLiterals(0) instead it (strangely, is that a bug?) gives all the symbols; EDIT: I'm reporting this particular bug here: #99 |
so |
I couldn't reproduce the sigsegv with v0.19.9, neither with |
@narimiran |
Even with the old sequtils, I can no longer reproduce this with the latest
I don't think it's worth keeping this open unless someone can reproduce it. |
@saem if possible, you could add reduced case #93 (comment) as a regression test case |
/cc @Araq
The text was updated successfully, but these errors were encountered: