Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock ordering deadlock in TableDataSource #52478

Open
sharwell opened this issue Apr 8, 2021 · 3 comments
Open

Lock ordering deadlock in TableDataSource #52478

sharwell opened this issue Apr 8, 2021 · 3 comments
Assignees
Labels
Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Tenet-Reliability Customer telemetry indicates that the product is failing in a crash/hang/dataloss manner.

Comments

@sharwell
Copy link
Member

sharwell commented Apr 8, 2021

馃敆 This is the root cause of AB#1296045

The following code takes two locks in order:

lock (_gate)
{
snapshot = _subscriptions;
GetOrCreateFactory_NoLock(data, out var factory, out var newFactory);
factory.OnDataAddedOrChanged(data);

The following code takes the same two locks in opposite order:

lock (_gate)
{
var version = _lastVersion;
if (TryGetLastSnapshot(version, out var lastSnapshot))
{
return lastSnapshot;
}
var items = _entriesSources.GetItems();

@sharwell sharwell added Bug Area-IDE Tenet-Reliability Customer telemetry indicates that the product is failing in a crash/hang/dataloss manner. labels Apr 8, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Apr 8, 2021
@sharwell sharwell added Developer Community The issue was originally reported on https://developercommunity.visualstudio.com and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 8, 2021
@lindexi
Copy link

lindexi commented Apr 14, 2021

See https://developercommunity.visualstudio.com/t/VisualStudio-no-response-when-debugging/1377004

@CyrusNajmabadi
Copy link
Member

@heejaechang Do you have any idea what the right thing is to do here. I'm afraid i don't know much about how the table-data-source is structured.

@CyrusNajmabadi
Copy link
Member

Will be addressed once we move to pull diagnostics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Tenet-Reliability Customer telemetry indicates that the product is failing in a crash/hang/dataloss manner.
Projects
None yet
Development

No branches or pull requests

3 participants