-
-
Notifications
You must be signed in to change notification settings - Fork 389
ModOrigin: hidden module redefined #786
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
Comments
Probably some state in the ghc session is not completely thread-safe, or doesn't like being interrupted. What sort of guarantees does the ghc api offer here? |
Lots of state in the GHC session doesn't like being interrupted, although the guarantee is that you'll be fine - although it's a guarantee no one has tested or extensively relied upon before. TH used to have horrible issues with being interrupted. I imagine it's a case of tracking them down one by one. |
So the panic is coming from the http://78.47.113.11/docs/html/libraries/ghc/src/GHC.Unit.State.html#line-1649 |
Being able to see where an instance is being used is an awesome superpower, thanks! |
After looking at the code, my understanding is that we can work around the problem by avoiding interrupting calls to Indeed, I can confirm that the issue doesn't reproduce with ghc 8.10.1 for me at all. It does repro easily with ghc 8.8.3, where presumably the |
Hm, can we make a backporting patch for 8.8.3? What commit fixed this for 8.10? |
By all means, if you or anyone else have the time and inclination, please go for it! I have little motivation since we have already upgraded to 8.10 at work. |
Well, I would. Do you have any research on 8.8 to 8.10 changes? I fear bisecting would be too hard :/ |
I haven’t done any research, sorry. |
I've built 8.8.3 from source, planning to bisect, but could not reproduce the fail in |
We dont have a reproducible case and afaiu it is fixed for sure in ghc-8.10, should we keep open this? |
Closing as the issue is already fixed in GHC |
I get a sporadic GHC panic while editing the module imports of a small project (ghc-check). This seems to be triggered only by very fast edits, .e.g. when using
fd
as a vim arpeggio for escape.ghcide doesn't immediately crash after the panic, but diagnostics become stuck. After a while, ghcide will crash.
This is on current HEAD:
The text was updated successfully, but these errors were encountered: