-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Description
We're getting a CoCreateInstance error when trying to load the profiler in my NetCore 3.0 app.
Reproduction Steps
-
Build coreclr in docker with
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.15-20211214164127-f0ea7baas base image -
use the release from https://codeload.github.com/dotnet/coreclr/tar.gz/release/3.0
-
add these statements in the docker file
RUN cd /code/coreclr/src/pal/src/libunwind/src/mi/ && sed -i '28d' dyn-info-list.c
RUN cd /code/coreclr && ./build.sh x64 release configureonly skipgenerateversion nopgooptimize skiptests
RUN cd /code/coreclr/bin/obj/Linux.x64.Release/src/pal && make -
Set CORECLR_ENABLE_PROFILING, CORECLR_PROFILER and CORECLR_PROFILER_PATH environment variables
-
build your profiler with that library.
-
Run the net core 3.0 application
Expected behavior
The profiler should attach and create logs
Actual behavior
This error is printed when the application runs.
Loading profiler failed during CoCreateInstance. Profiler CLSID: '{************}'. HRESULT: 0x8007007e. Process ID (decimal): 161. Message ID: [0x2504]..NET Core SDK (3.1.416)
Regression?
No response
Known Workarounds
No response
Configuration
.net version: 3.1.416
Alpine
x86_64
I don't know
Other information
No response