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

StackOverflowError in adapt crashes typechecker #7057

Closed
scabug opened this issue Feb 1, 2013 · 5 comments
Closed

StackOverflowError in adapt crashes typechecker #7057

scabug opened this issue Feb 1, 2013 · 5 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 1, 2013

I'm sorry I can't give more details, but hopefully this can still be enough to track an infinite recursion case.

java.lang.StackOverflowError
	at scala.reflect.internal.Types$InstantiateDependentMap$$anonfun$existentialsNeeded$1.apply(Types.scala:4759)
	at scala.reflect.internal.Types$InstantiateDependentMap$$anonfun$existentialsNeeded$1.apply(Types.scala:4759)
	at scala.collection.TraversableLike$$anonfun$filter$1.apply(TraversableLike.scala:264)
	at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
	at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:105)
	at scala.collection.TraversableLike$class.filter(TraversableLike.scala:263)
	at scala.collection.mutable.ArrayOps$ofRef.filter(ArrayOps.scala:105)
	at scala.reflect.internal.Types$InstantiateDependentMap.existentialsNeeded(Types.scala:4759)
	at scala.reflect.internal.Types$MethodType.resultType(Types.scala:2578)
	at scala.tools.nsc.typechecker.Infer$Inferencer.typesCompatible$1(Infer.scala:770)
	at scala.tools.nsc.typechecker.Infer$Inferencer.scala$tools$nsc$typechecker$Infer$Inferencer$$isApplicable(Infer.scala:791)
	at scala.tools.nsc.typechecker.Infer$Inferencer.isAsSpecific(Infer.scala:866)
	at scala.tools.nsc.typechecker.Infer$Inferencer.isStrictlyMoreSpecific(Infer.scala:932)
	at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferExprAlternative$1.scala$tools$nsc$typechecker$Infer$Inferencer$$anonfun$$improves$1(Infer.scala:1490)
	at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferExprAlternative$1$$anonfun$35.apply(Infer.scala:1495)
	at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferExprAlternative$1$$anonfun$35.apply(Infer.scala:1495)
	at scala.collection.immutable.List.loop$3(List.scala:273)
	at scala.collection.immutable.List.dropWhile(List.scala:276)
	at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferExprAlternative$1.apply(Infer.scala:1495)
	at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferExprAlternative$1.apply(Infer.scala:1478)
	at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$tryTwice$1.apply(Infer.scala:1646)
	at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$tryTwice$1.apply(Infer.scala:1646)
	at scala.tools.nsc.typechecker.Contexts$Context.withImplicitsDisabled(Contexts.scala:211)
	at scala.tools.nsc.typechecker.Infer$Inferencer.tryTwice(Infer.scala:1646)
	at scala.tools.nsc.typechecker.Infer$Inferencer.inferExprAlternative(Infer.scala:1478)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1069)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
	at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1070)
(hundreds more)

Unfortunately the JVM cut off the bottom of the stack.

@scabug
Copy link
Author

scabug commented Feb 1, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7057?orig=1
Reporter: @dragos
Affected Versions: 2.10.0
Duplicates #6912

@scabug
Copy link
Author

scabug commented Feb 1, 2013

@hubertp said:
I would say a duplicate of #6912.

@scabug
Copy link
Author

scabug commented Feb 1, 2013

@retronym said:
#6912

@scabug scabug closed this as completed Feb 1, 2013
@scabug
Copy link
Author

scabug commented Feb 4, 2013

@dragos said:
I knew I saw something similar, but i couldn't track down the ticket :(.

We can leave it closed, but I'm using 2.10.1 nightlies (I know, I set the wrong version in the report). I'll re-open if I see it again.

@scabug scabug added this to the 2.10.1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants