waterlink / spec2.cr

Enhanced `spec` testing library for [Crystal](http://crystal-lang.org/).
MIT License
103 stars 22 forks source link

Error when running `crystal spec` #24

Closed marceloboeira closed 8 years ago

marceloboeira commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

marceloboeira commented 8 years ago

@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 commented 8 years ago

Oh, I see.

waterlink commented 8 years ago

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 commented 8 years ago

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

waterlink commented 8 years ago

@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 commented 8 years ago

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

waterlink commented 8 years ago

@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 commented 8 years ago

I will put links to them here to keep track.

waterlink commented 8 years ago