dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.53k stars 4.54k forks source link

Debug Assertion Violation: 'codeManager->IsUnwindable(pvAddress) || runtime->IsConservativeStackReportingEnabled()' #103333

Open MichalStrehovsky opened 2 weeks ago

MichalStrehovsky commented 2 weeks ago

Consistently seeing this assert when running GC/API/GC/GetTotalAllocatedBytes test on ARM32 Linux. Going to block the test on this issue.

dotnet-policy-service[bot] commented 2 weeks ago

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.

filipnavara commented 2 weeks ago

I'll have a look.

filipnavara commented 2 weeks ago

Do you have more details or a link to some failed run?

I tried to reproduce it repeatedly in various configurations (Checked, Debug, Release) and the test always passed on my Raspberry PI.

MichalStrehovsky commented 2 weeks ago

This one is in a different test: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-fbc02bf54e7d4f1e83/nativeaot.SmokeTests/1/console.ed1873ad.log?helixlogtype=result

Then this one is in that test: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-103220-merge-59324ad7b5104e33bf/PayloadGroup0/1/console.8ce2f210.log?helixlogtype=result

Then again in DynamicGenerics: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-ebd64041cf89465e8c/nativeaot.SmokeTests/1/console.bedda414.log?helixlogtype=result

I didn't look for more.

filipnavara commented 2 weeks ago

Thanks! I still don't know what is going on. I downloaded the payload from the second link through runfo and run it 100 times without hitting the crash. The core dump doesn't seem to have any useful information since it's likely way past the problematic unwind (or I mismatched the symbols).