Skip to content
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

standalone wait crashes compiler when invoked from Stainless #21758

Closed
vkuncak opened this issue Oct 12, 2024 · 2 comments
Closed

standalone wait crashes compiler when invoked from Stainless #21758

vkuncak opened this issue Oct 12, 2024 · 2 comments
Labels
area:compiler-plugins Issues tied with handling of compiler plugins. itype:bug itype:crash itype:invalid

Comments

@vkuncak
Copy link

vkuncak commented Oct 12, 2024

Compiler version

3.5.0

Minimized code

object BugReport:
  val t: Thread = new Thread {
    override def run: Unit = {
      wait()
    }
  }

Output (click arrow to expand)

  An unhandled exception was thrown in the compiler.
  Please file a crash report here:
  https://github.com/scala/scala3/issues/new/choose
  For non-enriched exceptions, compile with -Xno-enrich-error-messages.

     while compiling: BugReport.scala
        during phase: stainless
                mode: Mode(ImplicitsEnabled)
     library version: version 2.13.14
    compiler version: version 3.5.0
            settings: -Wsafe-init true -classpath /home/kuncak/software/stainless/frontends/dotty/target/universal/stage/lib/org.scala-lang.scala-library-2.13.14.jar:/home/kuncak/software/stainless/frontends/dotty/target/universal/stage/lib/org.scala-lang.scala3-library_3-3.5.0.jar -color never -language List(implicitConversions)

Note: this works with Stainless version: 0.9.8.8-27-ga681d38 .

@vkuncak vkuncak added itype:bug itype:crash stat:needs triage Every issue needs to have an "area" and "itype" label labels Oct 12, 2024
@Gedochao Gedochao added stat:needs info itype:invalid and removed stat:needs triage Every issue needs to have an "area" and "itype" label stat:needs info labels Oct 16, 2024
@Gedochao
Copy link
Contributor

@vkuncak it seems the crash is caused by stainless itself, rather than the compiler.
The issue should be raised in the stainless backlog, is what I'm guessing, rather than here.

However, perhaps we should improve the compiler error message not to point to our issue backlog when a crash originates from a compiler plugin phase.

@Gedochao
Copy link
Contributor

Let's track the error message enhancement under:

Closing this, nothing to do here.

@Gedochao Gedochao closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
@Gedochao Gedochao added the area:compiler-plugins Issues tied with handling of compiler plugins. label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:compiler-plugins Issues tied with handling of compiler plugins. itype:bug itype:crash itype:invalid
Projects
None yet
Development

No branches or pull requests

2 participants