-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Orc compiler crash when not making object from lineInfoObj
into a literal
#21326
Comments
This was referenced Feb 3, 2023
It seems to be a common problem of VM, whose types disappear after evaluation. I might check semmacrosanity. |
ringabout
added a commit
that referenced
this issue
Feb 24, 2023
ringabout
added a commit
that referenced
this issue
Feb 24, 2023
capocasa
pushed a commit
to capocasa/Nim
that referenced
this issue
Mar 31, 2023
…nim-lang#9607; rework quote do; `getAst` uses type info to annotate the type of quoted variables; no more type erasures for quoted variables (nim-lang#21433) * fixes nim-lang#21326; getAst uses type info to annotateType quoted variables * simplify logics; sem types first * fixes important packages * add testcases * tiny
bung87
pushed a commit
to bung87/Nim
that referenced
this issue
Jul 29, 2023
…nim-lang#9607; rework quote do; `getAst` uses type info to annotate the type of quoted variables; no more type erasures for quoted variables (nim-lang#21433) * fixes nim-lang#21326; getAst uses type info to annotateType quoted variables * simplify logics; sem types first * fixes important packages * add testcases * tiny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
This bug was discovered when testing latest nimib against
devel
(see @ringabout's stacktrace here). The problem is that for some reason beyond me, the compiler crashes with aSIGSEGV: Illegal storage access. (Attempt to read from nil?)
when running this code onorc
/arc
but not onrefc
. And I have only been able to reproduce it using the object returned bylineInfoObj
. Creating aLineInfo
object directly does not trigger this bug:I have also tried creating my own objects and returning them from functions but without any success in reproducing this.
The way to make the example code work is to convert
a
to a literal witha.newLit
and then it compiles.Nim Version
Nim Compiler Version 1.9.1 [Linux: amd64]
Compiled at 2023-02-03
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 8e53fba
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: