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

Methods using objects cause SIGSEGV #12

Closed
ddlsmurf opened this issue Feb 7, 2011 · 0 comments
Closed

Methods using objects cause SIGSEGV #12

ddlsmurf opened this issue Feb 7, 2011 · 0 comments

Comments

@ddlsmurf
Copy link
Contributor

ddlsmurf commented Feb 7, 2011

To reproduce, compile (eg with nimrod c test.nim) following source:
method somethin(obj: TObject) =
echo "do nothing"
Generates
Hint: used config file '/Users/eric/Documents/Private/Code/nimrod/Compiler/Nimrod/config/nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
Traceback (most recent call last)
nimrod.nim(85) nimrod
nimrod.nim(69) HandleCmdLine
main.nim(194) MainCommand
main.nim(120) CommandCompileToC
main.nim(95) CompileProject
main.nim(90) CompileModule
passes.nim(137) processModule
passes.nim(91) closePasses
cgen.nim(965) myClose
cgen.nim(604) genProcAux
ccgstmts.nim(679) genStmts
ccgstmts.nim(120) genIfStmt
ccgexprs.nim(257) initLocExpr
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

@Araq Araq closed this as completed in a25cda3 May 2, 2011
reactormonk pushed a commit to reactormonk/nim that referenced this issue Apr 7, 2014
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