Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 195160 - Import hangs when importing project of version 3
Summary: Import hangs when importing project of version 3
Status: VERIFIED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 4.0.1   Edit
Assignee: Mikhail Sennikovsky CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-02 13:03 EDT by Edzard Egberts CLA
Modified: 2007-12-11 08:50 EST (History)
2 users (show)

See Also:


Attachments
Dump made out of console, when cdt import hangs (179.53 KB, text/plain)
2007-07-02 13:07 EDT, Edzard Egberts CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edzard Egberts CLA 2007-07-02 13:03:39 EDT
When trying to import a project of version 3 into new CDT version 4, the import hangs and CDT doesn't react any more. There is no CPU activity or memory allocation going on.
Comment 1 Edzard Egberts CLA 2007-07-02 13:07:11 EDT
Created attachment 72883 [details]
Dump made out of console, when cdt import hangs
Comment 2 Anton Leherbauer CLA 2007-07-03 03:04:19 EDT
Thanks for the thread dump.

A deadlock happens between the threads "ModalContext" and "main".
While the ModalContext thread holds a lock on the ManagedBuildManager class, it tries to do a Display.syncExec() while the main thread is waiting to lock the ManagedBuildManager class and thus the syncExec can never complete.

Assigning to cdt-build for comment.
Comment 3 Mikhail Sennikovsky CLA 2007-07-05 05:53:27 EDT
(In reply to comment #2)
> Thanks for the thread dump.
> 
> A deadlock happens between the threads "ModalContext" and "main".
> While the ModalContext thread holds a lock on the ManagedBuildManager class, it
> tries to do a Display.syncExec() while the main thread is waiting to lock the
> ManagedBuildManager class and thus the syncExec can never complete.
> 
> Assigning to cdt-build for comment.
Thanks for looking into this, Anton. Yes, the bug is caused by the MBS project conversion mechanism. I'll have a look at fixing this for the 4.0.1

Mikhail
Comment 4 Volodymyr N. Skrypka CLA 2007-07-12 14:17:44 EDT
The same hang on linux platform
Comment 5 Mikhail Sennikovsky CLA 2007-08-15 10:50:15 EDT
This should be fixed now.. Please verify..
Comment 6 Edzard Egberts CLA 2007-08-15 11:57:13 EDT
(In reply to comment #5)
> Please verify..

I really would like to, but I don't know, how to get a windows binary to verify? Is there a place to find pre-releases?

Comment 7 Edzard Egberts CLA 2007-09-27 15:21:03 EDT
> > Please verify..

CDT 4.01 did the job and took the old configuration without problems. Thank you!
Comment 8 Daniel Friederich CLA 2007-12-11 08:50:12 EST
*** Bug 212191 has been marked as a duplicate of this bug. ***