-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix crash in DependentGenericTypeResolver::resolveDependentMemberType
#253
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
Conversation
Note: the same sort of |
What configuration (hardware and bulid) are you using? The full test suite runs within less than 10 minutes when the compiler is built in release mode, try |
Just kidding — this fixed 335 of the crashing tests 😃 |
Nice! |
Wow, fantastic! @DougGregor, please review this when you have a chance, thanks! |
Updated with new fixed crashers. |
Please squash this into a single commit; we like to have the test suite in sync with the code. |
Hm, why all the fixed crashers removed? Shouldn't they go into |
@DougGregor: done. |
@jtbandes it looks like the moved files were not commited. |
@yas375: They actually were. GitHub shows it incorrectly; I've sent a message to support. If you pull jtbandes/swift@d781605a6d, you can see them locally. |
@jtbandes you are right! I apologize. I bet we can help I went ahead and did it locally and here is a list of steps to follow: Given: you are on top of your branch with the fix.
I've created a list of commands using string replacement on the output of the removed files to use
Now
Please rerun the tests to make sure I didn't break anything :)
UPD: here is how changes will be shown on GitHub: http://screencast.com/t/NO5nEJDw Thanks for your contribution! 👍 I've also reported the issue with wrong statistics to GitHub support. |
Thanks @yas375! I wasn't aware that |
Actually, that didn't help. (jtbandes/swift@3cbabd0). I think The problem is that in all of the moved files, I also changed one line, to remove the I think this is as good as it will get. It's only a GitHub problem, not a git problem :) |
@jtbandes this is weird. I don't think it matters, but just in case:
|
@yas375 I'm using 2.6.3. On your PR I see "File renamed without changes" for each of the test files. That seems wrong to me. The files are supposed to be modified as well as renamed. |
@jtbandes oh, I'm sorry then. I thought those were just moves. Sorry for the confusion and for taking you time. Great job! 👍 |
No worries, thanks for trying! It would have been nice if it worked :) |
@DougGregor please let me know if there's anything else to be done here! |
An erroneous `baseTy` would cause resolveArchetype to return nullptr, resulting in a null dereference.
@DougGregor @gribozavr I've updated this PR to avoid conflicts from #398 and #405 |
Fix crash in `DependentGenericTypeResolver::resolveDependentMemberType`
Convert dispatch_workq from legacy priorities to qos
Convert dispatch_workq from legacy priorities to qos Signed-off-by: Daniel A. Steffen <[email protected]>
Add SwiftyJSON
An erroneous
baseTy
would cause resolveArchetype to return nullptr, resulting in a null dereference.Apologies — the test suite is prohibitively large for me to run it fully before submitting this patch. The file00626-swift-lexer-lexidentifier.swift
no longer crashes the compiler, so I've moved it to compiler_crashes_fixed. Before merging, though, someone will need to convince themselves that everything else still works.