-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Regression SpaceEngine wrt 3.3.0 #19433
Comments
@Adam-Vandervorst can you help to minimise the code for the replication of this crash? |
Since the error doesn't show a single call originating from the project, I am still trying to figure out where to start. |
@Adam-Vandervorst as much as I'd like to help, not really. while compiling: <no file>
during phase: <no phase> we don't know the particular file or phase. tree: EmptyTree
tree position: :<unknown>
tree type: <notype>
symbol: val <none>
call site: package <root> in module class <root> the output we see here doesn't give virtually anything to go on, as far as I can tell. What I imagine minimising this issue would entail is to take a look at your whole build and try to strip it of code while checking if the issue is replicable to try to pinpoint on where is the cause. https://github.com/lampepfl/dotty/blob/release-3.3.1/compiler/src/dotty/tools/dotc/core/Types.scala#L886 Of course, we won't ignore this, as it's evidently a compiler crash and seems like a possible regression, but thorough investigation on the compiler team's side may take time. |
Out of curiosity, what could've caused this info to be unavailable? |
Just checking: is it the same on 3.4.0-RC2? |
unhandled exception while running MegaPhase{protectedAccessors, extmethods, uncacheGivenAliases, elimByName, hoistSuperArgs, forwardDepChecks, specializeApplyMethods, tryCatchPatterns, patternMatcher} on /home/adam/IdeaProjects/CZ2/shared/src/main/scala/ExprMap.scala Actually I haven't noticed earlier, but it seems we do know the exact file it breaks on: I suppose there's a separate bug in crash reporting, as the rest of the log doesn't point anywhere concrete. Based on that, the megaphase seems to be this: https://github.com/lampepfl/dotty/blob/721e7c87ee95b811984b7b992728729d7094c4c4/compiler/src/dotty/tools/dotc/Compiler.scala#L75-L83 |
@SethTisue yes, it also crashes on 3.4.0-RC2. @Gedochao thanks, I'll try and surface some of the suspicious pattern matching in that file, or try and comment it out. |
This issue was picked for the Issue Spree No. 42 of February 6th, 2024. @dwijnand, @EugeneFlesselle, @jan-pieter will be working on it. If you have any insight into the issue or guidance on how to fix it, please leave it here. |
3.3.1
Minimized code
running compile on
https://github.com/Adam-Vandervorst/CZ2
Output (click arrow to expand)
Note
It doesn't crash on 3.3.0
The text was updated successfully, but these errors were encountered: