-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assert failure: !"Heap contamination detected! HeapFree was called on a heap other than the one that memory was allocated from.\n" #55517
Comments
If this is a consistent failure for specific test category, might make sense for the owners to investigate if there is a smaller repro and if any allocations/pinvokes are causing a corruption. |
@karelz can some from system.net please take an initial look at the failures to determine if they might be corruption due to pinvokes here? |
Adding @janvorli as well in case this is related to the w^x work, assuming this started happening in the past day or so. |
I've found the issue, I'll create a PR with a fix in a minute. |
Thanks @janvorli! Out of curiosity, what caused the problems? Was it w^x work or some churn in Networking/crypto? |
W^X work, I've forgotten to replace one call to c++ delete by an appropriate executable heap method. |
And it was in a place that's executed when we allocate a data structure from multiple threads and only one of them wins so the others free what they've allocated. That's why it was intermittent and I haven't caught it locally. |
@janvorli, fyi, enabling event log with |
@janvorli, this assert happened in runtime-coreclr superpmi-collect pipeline, e.g., in System.Text.Json.Tests.JsonDocumentTests.CheckUnparsable(json: "[ 1") test. Could you please take a look? |
This assert is a general sign of unmanaged heap corruption that can have many different root causes. This is crashing in the superpmi tool. It is different test and scenario than this issue tracked originally. I have opened a new issue for it: #101708 . |
System.Net.Requests.Tests and System.Security.Cryptography.Pkcs.Tests
Many jobs, x64/arm64/arm32
https://dev.azure.com/dnceng/public/_build/results?buildId=1232250&view=ms.vss-test-web.build-test-results-tab
The text was updated successfully, but these errors were encountered: