-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Compiler segfaults after printing error in some tests #936
Comments
I don't see this, and a segfaulting compiler should cause tests to fail now. Was the crash in map perchance? I've seen that a number of times. |
What happens when you try to compile one of these from the command-line? For me, it prints out the error, then segfaults with this stack trace:
|
You are right, and the test runner isn't looking for a specific non-zero return value when it runs the compiler. I wonder how many of these compile failures are actually segfaults... |
The anwser is 18. 18 compile-fail tests are segfaulting. |
Also opened #938 to make the test runner catch this in the future |
So this is not a symptom of #939 then? |
#939 did fix one of them |
Fair enough. I'm going to xfail a few that hang instead of segfaulting with a patch I'm trying to land. Will refer to this bug in the patch, so that we can be sure to re-enable the tests when the problem is found. |
Now 14 failures:
|
This converts the AST fold into a resource that breaks it's own circular reference (just a temporary workaround until GC), so that failure during fold will unwind correctly. Issue #936
Had to revert 6eabe6f. Works for me, not for the tinderbox. |
Now these four fail with optimizations on, not with optimizations off:
|
I observed this in
src/test/compile-fail/extft-non-literal.rs
andsrc/test/compile-fail/extft-non-literal2.rs
, might be happening in others. This is probably an unwinding bug.With some changes to our generated code (I was working on making calls simpler), it hangs instead of segfaulting when
extft-non-literal2.rs
fails.The text was updated successfully, but these errors were encountered: