-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Win11] [Bug] [ConcurrentBag regression in .Net 9] System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' #110355
Comments
@dotnet/area-system-collections |
It's very unlikely this is actually related to ConcurrentBag. It's more likely some code in your app is resulting in corruption that then appears as an AV in other code, in this case in CB. Without a repro or crash dump, though, we can't investigate. |
Ill try to create repro then
ср, 4 дек. 2024 г., 13:49 Stephen Toub ***@***.***>:
… It's very unlikely this is actually related to ConcurrentBag. It's more
likely some code in your app is resulting in corruption that then appears
as an AV in other code, in this case in CB. Without a repro or crash dump,
though, we can't investigate.
—
Reply to this email directly, view it on GitHub
<#110355 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD6N3JMYBH22IJUFRXLKJ32D3M4PAVCNFSM6AAAAABS5ZL6IKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJWHE2DCMZZGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Here's the reproduction sample
Build for .Net 9 and run => Access Violation, Please return .Net 8 implementation since other software might expect old behavior, or new one create with postsfix ConcurrentBagV2/put into breaking changes list. I updated first post with steps. |
Thanks for the repro. This is not about the ConcurrentBag implementation. I suspect this may be the same as the issue fixed by #109074. If you add |
Adding
worked. But guys, seriously, we're in the dark times, when its needed to modify csproj config to make ConcurrentBag work. |
Again, this has little to do with ConcurrentBag. It is a runtime bug to do with Intel's CET security mechanism, it's already been fixed in main with #109074 and it's being fixed in 9.0 with #109548 (cc: @janvorli, @jeffschwMSFT). I mentioned the csproj property to both confirm this is the same problem and to give you a temporary workaround. |
Closing as a duplicate of #109074. Thanks for reporting. |
@stephentoub Thanks! |
Steps:
Actual result:
Expected result:
Works without error, as in .Net 9.
Please introduce ConcurrentBag - from .Net 8 because uinstable work in .Net 9 breaks my app
The text was updated successfully, but these errors were encountered: