-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Crash depending on require order #7060
Comments
It's probably a compiler bug. Just require stuff in the correct order as a workaround. |
It's a compiler bug. It happened to me numerous times the last few months. The only workaround it to run with Duplicate of #6920 |
Thanks for the update, I wasn’t sure it was the same issue as #6920 since it only started for me on 0.27.0 and the issue was older than that release. |
We changed OpenSSL to support v1.1 which changed BIO, and it seems to trigger the bug. Nice to know that we can require the app before minitest/autorun to avoid this. |
|
Fix for GitHub issue 1 - #1 Works around Crystal issue 7060 (6920) - crystal-lang/crystal#7060 This should be reverted after it is fixed in the Crystal compiler.
There's a crash in Crystal 0.27.0 that did not happen in 0.26.1 when using minitest.cr (0.4.0 for 0.26.1 / 0.4.2 for 0.27.0) and
HTTP::Client
in the same file that depends on the order of theminitest/autorun
andhttp/client
requires.The following example works:
However the following code crashes (require order switched):
Example entry for
shard.yml
:System info:
System is macOS Mojave 10.14.1 and Crystal was installed from Homebrew using the precompiled bottle for Mojave.
Maybe @ysbaddaden (author of minitest.cr) has an idea what could be causing this.
The text was updated successfully, but these errors were encountered: