| Summary: | Deadlock reported during startup of cdt.debug.ui | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Anton Leherbauer <aleherb+eclipse> | ||||||
| Component: | cdt-debug | Assignee: | Patrick Chuong <pchuong> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Ken Ryall <ken.ryall> | ||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | cdtdoug, marc.khouzam, pawel.1.piech, pchuong | ||||||
| Version: | 8.0 | ||||||||
| Target Milestone: | 8.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Anton Leherbauer
Awesome, Patrick and I were just looking into that. Toni, how did you see this problem? We saw it when trying to run the DSF-GDB JUnit tests. See bug 334650. (In reply to comment #1) > Awesome, Patrick and I were just looking into that. > > Toni, how did you see this problem? We saw it when trying to run the DSF-GDB > JUnit tests. See bug 334650. Nice coincidence. I saw it during normal startup from the workspace, but only once so far. It depends on the timing and which views are open, I'd guess. When I launch into the Debug perspective and the Breakpoints view is open with a few C/C++ Breakpoints and no C/C++ Editor, I can reproduce it about every other time. At least this activates the cdt.debug.ui on a worker thread instead of the UI thread. Created attachment 187008 [details]
fix
Toni, Marc, can you test this patch when you have a chance? Thanks.
(In reply to comment #4) > Created attachment 187008 [details] > fix > > Toni, Marc, can you test this patch when you have a chance? Thanks. Thanks Patrick, I did not try your patch, but I assume it would work. I think the synchronized (fInitialized) is problematic, though, because fInitialized changes. I have a patch ready for CDebugUIPlugin which leaves ViewIDCounterManager unchanged and also makes sure all other background initialization is done safely. Created attachment 187012 [details]
Fix #2
I'd suggest this solution.
I was thinking of doing the same, but try to minimized the number of changes. I have committed your fix to HEAD. Thanks for the patch. *** cdt cvs genie on behalf of pchuong *** Bug 334651 - Deadlock reported during startup of cdt.debug.ui [*] CDebugUIPlugin.java 1.72 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java?root=Tools_Project&r1=1.71&r2=1.72 |