dotCover console runner does not work on Ubuntu with .NET Core 3.0

Affected versions: 2019.2 and later

Symptoms

An attempt to run coverage analysis with dotCover console runner fails with the error:

[JetBrains dotCover] Coverage session finished with errors: Can’t find symtab section in the ELF file

[file name] = /usr/share/dotnet/shared/Microsoft.NETCore.App/3.0.1/libcoreclr.so.

 

Possible cause

dotnet-sdk-3.0.deb package for Ubuntu 18.04 comes with the stripped libcoreclr.so symbols file. As a result, dotCover profiler is unable to start a coverage session.

 

Workaround

Get the libcoreclr.so symbols file by running the following commands:

sudo dotnet tool install -g dotnet-symbol

sudo dotnet-symbol <path to dotnet>/libcoreclr.so

1 out of 1 found this helpful

Please sign in to leave a comment.

Have more questions?

Submit a request