Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: MortenMacFly on June 30, 2006, 08:47:53 pm

Title: Crash (serious) when removing a dependend lib from a workspace
Post by: MortenMacFly on June 30, 2006, 08:47:53 pm
Dear all,
I've tracked down a crash that caused me a headage over the past couple of weeks (month) into a reproducable way:
Find attached a ZIP file with a project that consists of 2 libs and an application that depends on those libs. Steps to reproduce:
1.) Open the workspace (make sure there are 3 projects open afterwards)
2.) Remove the first lib ("LibA") by right-clicking on the project and select "Close project"
3.) Issue a "Rebuild workspace" from the Build command

--> Crash!

I don't have time today to have a closer look into so I'm only reporting here currently for others to confirm this issue. The crash occurs in bool cbProject::SaveAllFiles(), in cbproject.cpp at line 1055. That's for sure for now.

Thomas: That's also the cause for the issue we were discussing here: http://forums.codeblocks.org/index.php?topic=3375.0 (http://forums.codeblocks.org/index.php?topic=3375.0).

With regards, Morten.

[attachment deleted by admin]
Title: Re: Crash (serious) when removing a dependend lib from a workspace
Post by: mandrav on June 30, 2006, 08:59:53 pm
Sounds like the dependency is not removed. I 'll check.
Title: Re: Crash (serious) when removing a dependend lib from a workspace
Post by: mandrav on June 30, 2006, 10:14:08 pm
As I suspected.
There were two (!) bugs in ProjectManager::RemoveProjectFromAllDependencies(). One caused this crash and the other caused a hang (some times) when closing a workspace.
Revision 2648.

Quote from: svn commit log
* Fixed crash when rebuilding after having closed a project which was a
dependency for other projects in the workspace. This also fixes a hang,
under certain circumstances, also when closing projects/workspace.
Title: Re: Crash (serious) when removing a dependend lib from a workspace
Post by: nfz on June 30, 2006, 11:05:35 pm
excellent: this fixes the bug I posted here: https://developer.berlios.de/bugs/?func=detailbug&bug_id=7742&group_id=5358 (https://developer.berlios.de/bugs/?func=detailbug&bug_id=7742&group_id=5358)