StackOverflowException in Microsoft.Framework.Runtime.LibraryManager.Flatten adding erroneous packages to KProject #997
Comments
@MattGal Thanks for reporting the issue. I was able to reproduce the problem and we'll investigate. Looks like System.Net.Http is being renamed to |
An additional bug exists in KPM. In Matt's repro (where you have
|
This happens in the runtime because we don't fail for circular references right now: Cycles are broken here but this doesn't flow out of the dependency walker. We should probably just throw instead. |
Is this actually considered a cycle though? Shouldn't we treat framework assembly dependencies differently than package/project dependencies? System.Net.Http.nuspec
Microsoft.Net.Http.nuspec
|
Nope, if it stack overflows it's a cycle. The only difference between the two is fallback semantics. |
So are you saying that this package is bad and it should fail? The same package seems to work with a traditional project type and nuget though. |
- Throw an error when you declare a cycle #997
- Throw an error when you declare a cycle #997
- Throw an error when you declare a cycle #997
@davidfowl is this good to close? |
Closing this and opening a new bug about framework references being treated as packages |
While experimenting with K projects, I added a reference to "System.Net.Http": "2.0.20710.0" from Nuget.Org. I expected this was going to have some errors, but not a constantly crashing klr.exe.
As soon as you add this reference, klr will crash repeatedly due to stack overflow in Microsoft.Framework.Runtime.LibraryManager.Flatten
The text was updated successfully, but these errors were encountered: