Based on current main (5bef921), build product and tests in Debug configuration on Ubuntu 18.04 x64:
./build.sh
./src/tests/build.sh -p:LibrariesConfiguration=Debug
Running a simple hello world app works:
cd artifacts/bin/testhost/net6.0-Linux-Debug-x64/shared/Microsoft.NETCore.App/6.0.0
corerun /tmp/helloworld.dll
running the same app with event log enabled fails an assertion:
DOTNET_EnableEventLog=1 corerun /tmp/helloworld.dll
Assert failure(PID 543 [0x0000021f], Thread: 543 [0x021f]): !"Heap contamination detected! HeapFree was called on a heap other than the one that memory was allocated from.\n" "Possible cause: you used new (executable) to allocate the memory, but didn't use DeleteExecutable() to free it."
File: /runtime/src/coreclr/utilcode/clrhost_nodependencies.cpp Line: 296
Image: /runtime/artifacts/bin/testhost/net6.0-Linux-Debug-x64/shared/Microsoft.NETCore.App/6.0.0/corerun
corehost, OTOH, has no issue with DOTNET_EnableEventLog=1 (or COMPlus_EnableEventLog=1).