runtime: Stack Overflow exception with SslStream and NetCoreApp mix of 2.1 and 3.x

Description

Hi dotnet/runtime team,

I found an issue in Ubuntu 16.04 when I was using the SslStream. At first, I tried to reproduce it in a sample application in Ubuntu, and at last, I am able to reproduce it in Windows. I don’t know if there is a similar issue with other types!

The issue happens when you try to use an assembly with NetCore 2.1 in another project with NetCore 3.x (I have not checked the NetCore 5.0 preview).

  • You can find the sample application here.

  • Here are the sample outputs:

image

  • You will get the same exception if you use nercoreapp3.0 in the ‘Demo’ project.

If you change the TargetFramework of the project ClassLibraryA to nercoreapp3.1 from netcoreapp2.1, or change TargetFramework of the project Demo to nercoreapp2.1 it will work without exception.

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

This was quite visible with the sample app @karelz. We should decide if we take while change or just the SslStream part (to limit possible impact)