-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Empty array allocated on the Frozen Heap for a Collectible type? #100437
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Yes, this looks like a bug. Could you please submit a PR with the fix? |
Sure! |
There is |
Created PR #100444. We have tested a similar fix in our own fork, and it seems to be fixing our issues. |
dotnet#100437) Add assert for collectible in FrozenObjectHeapManager::TryAllocateObject Fix another potential case Add test Fix test Fix test bis Fix test bis bis
dotnet#100444) * Fix allocation of empty array in the frozen heap for collectible types (dotnet#100437) * Remove Optimize from csproj * Add test for generic with static * Apply suggestions from code review * Better test * Disable tests on Mono --------- Co-authored-by: Jan Kotas <jkotas@microsoft.com> (cherry picked from commit 78f7707)
#100444) (#100509) * Fix allocation of empty array in the frozen heap for collectible types (#100437) * Remove Optimize from csproj * Add test for generic with static * Apply suggestions from code review * Better test * Disable tests on Mono --------- Co-authored-by: Alexandre Mutel <alexandre_mutel@live.com>
dotnet#100444) * Fix allocation of empty array in the frozen heap for collectible types (dotnet#100437) * Remove Optimize from csproj * Add test for generic with static * Apply suggestions from code review * Better test * Disable tests on Mono --------- Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Hello folks,
Apologies, it's not a fully reproducible bug as we haven't tried yet to reproduce it with a simpler sample, but we have a suspicion.
We are investigating an error where we have the GC marking of frozen objects
gc_heap::mark_ro_segments()
that is crashing.One place that we are curious about is in
TryAllocateFrozenSzArray
:runtime/src/coreclr/vm/gchelpers.cpp
Lines 516 to 520 in 7486be8
Where it seems that we could allow to allocate an empty array for collectible MethodTable in the Frozen heap. Shouldn't it be something like this instead?
Before we investigate this further, any thoughts?
cc: @EgorBo
The text was updated successfully, but these errors were encountered: