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

Error when running crystal spec #24

Closed
marceloboeira opened this issue Feb 14, 2016 · 11 comments · Fixed by #26
Closed

Error when running crystal spec #24

marceloboeira opened this issue Feb 14, 2016 · 11 comments · Fixed by #26

Comments

@marceloboeira
Copy link
Contributor

When running crystal spec the following error output is given:

Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"), function init, file /tmp/llvm20151214-69554-hagc7s/llvm-3.6.2.src/lib/IR/Instructions.cpp, line 281. fish: 'crystal run spec/spec2_spec.cr' terminated by signal SIGABRT (Abort)

@waterlink I'm currently trying to implement #23, can you help me with this?

@waterlink
Copy link
Owner

That looks really weird. This is an error from LLVM back-end. Probably we are looking at some compiler bug.

Can you push your branch on your spec2.cr fork, so that I can clone and play around with it?

@waterlink
Copy link
Owner

Or, is it just a formatter that you are implementing on spec2-ns.cr ?

@marceloboeira
Copy link
Contributor Author

@waterlink It is on the spec2.cr repository only, I've followed the contributing guide by cloning it, then I tried to run crystal spec. In this specific order. There is no additional code.

@waterlink
Copy link
Owner

Oh, I see.

@waterlink
Copy link
Owner

Yes. Something seems to be changed strangely. I am getting silent Program exited because of a segmentation fault (it actually runs some tests). It worked before crystal update by the way.

@waterlink
Copy link
Owner

It fails consistently for subject(...) {...} and subject {...} forms.

@waterlink
Copy link
Owner

@marceloboeira Currently was unable to understand the reason. Debugging doesn't help either. I will try to narrow down the code to minimum failing example and see if it helps.

@marceloboeira
Copy link
Contributor Author

@waterlink alright, if you need any help let me know.

@waterlink
Copy link
Owner

@marceloboeira I think I have a couple of small examples, that I would report as issues to Crystal lang, because I think inheritance + with self yield is broken.

@waterlink
Copy link
Owner

I will put links to them here to keep track.

@waterlink
Copy link
Owner

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

Successfully merging a pull request may close this issue.

2 participants