Inspector reports deadlock, but "Lock owned" code location is missing.

Inspector reports deadlock, but "Lock owned" code location is missing.

Hi all,

While testing my app with theInspector,I've met the following issue.
Inspector detected "deadlock" problem in my App, but showed only two code locations: "Allocation site" and "Lock wanted". Normally, it also shows a "Lock owned" code location when deadlock detected, but in this case it's missing.
It's not clear for me, what could it mean?
I had an idea that critical section, may be,was not initialized, but it seems to be Ok. The application didn't hang during execution.
Does anybody knowthe explanation of this? What kind of bug in my App can lead the Inspector to such behaviour?
Thanks in advance.

3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Quoting dimon7...Normally, it also shows a "Lock owned" code location when deadlock detected...
...
I had an idea that critical section, may be,was not initialized...

A critical section objecthas several states and one of them is"initialized-nobody-owns" and a recursion count of the object
in that case is 0. From the state"initialized-nobody-owns"it could go to the"deleted" stateor "owned-by-somebody" state.
Sorry if my respnonse looks for you too generic.

Best regards,
Sergey

The best method to troubleshoot such a issue is touse windbg which has extensive commands and metacommands to deal with possible deadlock situation.

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen