| Summary: | Deadlock in JobManagerAdapter during shutdown | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Benjamin Muskalla <b.muskalla> | ||||||||
| Component: | Workbench | Assignee: | Project Inbox <rap-inbox> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P2 | CC: | digga1404, phil.xue, ruediger.herrmann, wolfgang.pedot | ||||||||
| Version: | 1.3 | ||||||||||
| Target Milestone: | 1.5 M4 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | sr142 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Benjamin Muskalla
I ran into the same deadlock today, thread dump is attached. Created attachment 182346 [details]
deadlock thread dump
Created attachment 205970 [details]
Proposed fix for HEAD
We are still not able to reproduce this dead lock. However, in JobManagerAdapter#done(), there is a code passage that attempts to acquire a Display-lock while holding a JobManager-lock.
The patch moves the acquisition of the Display-lock outside the block that is guarded by the JobManager-lock.
If this patch solves the deadlock please report here.
Just to let you know that we encountered the same deadlock and that the patch supplied by Herrmann did fix the problem. We don't have much more information as to why this happens but if you have questions, don't hesitate to ask. With some more testing and the feedback from comment #4 I am confident that the patch from attachment 205970 [details] solves this bug and doesn't introduce other issues. Applied to CVS HEAD. *** Bug 366517 has been marked as a duplicate of this bug. *** Ruediger, does this patch fit (suitable) for the 1.4 maintenance branch? We have been using this patch in our application (1.4.0) for about a month (~6000 Sessions since then) and have not noticed any sideeffects other than not having that deadlock any more. (In reply to comment #7) > Ruediger, does this patch fit (suitable) for the 1.4 maintenance branch? If the patch itself applies without conflicts, it is safe to commit it to 1.4 Created attachment 210031 [details] Adopted patch (attachment 205970 [details]) for 14_Maintenance branch Applied patch to v14_Maintenance branch. |