- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
...
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The best method to troubleshoot such a issue is touse windbg which has extensive commands and metacommands to deal with possible deadlock situation.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page