Skip to content

Fixes [SR-78] swift compiler seg fault #328

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

Merged
merged 1 commit into from
Dec 8, 2015

Conversation

manavgabhawala
Copy link
Contributor

See #293
Fixes broken test case which caused revert.

@rudkx
Copy link
Contributor

rudkx commented Dec 7, 2015

Did you run ./utils/build-script -RT?

Can you please rebase & squash so that we do not have a commit in the history that is broken?

@manavgabhawala
Copy link
Contributor Author

The broken commits are a part of the apple/swift repo not my fork so I can't rebase those (the new pull request just has the patched test case). As for running the tests every time I run it I get this error, I don't know what I'm doing wrong:

The following tests FAILED:
      2 - html_normalization (Failed)
      3 - spectest_library (Failed)
      5 - spectest_executable (Failed)
      6 - smartpuncttest_executable (Failed)
Errors while running CTest
*** Failed while running tests for cmark (test)

@rudkx
Copy link
Contributor

rudkx commented Dec 7, 2015

@manavgabhawala It should be possible to rebase your branch against the current apple/swift master and squash. the two commits (reapplying the change, and fixing the test) into one.

I don't know why you're seeing cmark failures.

It should be possible to reconfigure and build without the CMark testing by doing:
./utils/build-script -RT -- --skip-test-cmark
(note the -- is intentional, followed by --skip-test-cmark).

@manavgabhawala manavgabhawala force-pushed the master branch 3 times, most recently from 9512bad to fa0c0a5 Compare December 8, 2015 02:08
@manavgabhawala
Copy link
Contributor Author

@rudkx I fixed the branches. Also found the same bug for enums and fixed that.
About the tests thanks for the tip for the life of me I could not get the tests to run. I know you guys are really busy but I think it might be really worthwhile to flesh out the Testing.rst document because its kind of confusing right now and I found it really difficult to understand. This seems to be passing the tests locally when I run it with ./utils/build-script -RT -- --skip-test-cmark.

@rudkx
Copy link
Contributor

rudkx commented Dec 8, 2015

@manavgabhawala I noticed that your test case differs from the one from the original bug. I tried your test case with a compiler that does not have your fix, and it compiles without error, whereas the test case from the original bug demonstrates the problem you're fixing.

Can you please update the test to include an example where it fails without your fix?

Also, since you fixed the enum code as well (which is awesome BTW - good catch), can you include a test case involving enums that fails without your fix but works with it?

Thanks!

@manavgabhawala
Copy link
Contributor Author

@rudkx fixed

@rudkx
Copy link
Contributor

rudkx commented Dec 8, 2015

LGTM, thanks!

rudkx added a commit that referenced this pull request Dec 8, 2015
Fixes [SR-78] swift compiler seg fault
@rudkx rudkx merged commit 84b33cc into swiftlang:master Dec 8, 2015
slavapestov pushed a commit to slavapestov/swift that referenced this pull request Nov 27, 2018
Check for dtrace and only enable its use if found
edymtt added a commit to edymtt/swift that referenced this pull request Oct 22, 2020
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
…e-for-5.1

Update stress tester xfails to separate 5.1 branch and master
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 this pull request may close these issues.

2 participants