News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CC makes cb hang

Started by killerbot, July 19, 2011, 09:58:44 AM

Previous topic - Next topic

killerbot

with one of the latest changes in CC, CB now always hangs on a project that used to work ok.

I have minimized the project to the below code snippet.

Steps to reproduce :
1) create a console project (C++)
2) open its main.cpp
3) replace the main.cpp content by :

#include "boost/filesystem.hpp"


void Copy()
{
boost::filesystem::copy_directory("FooDir", "BarDir");
}

int main()
{
Copy();
return 0;
}

---> all done on linux, make sure you have boost installed somewhere
4) put your cursor just past "boost::filesystem' ===> type '3'   ===> hangs

oBFusCATed

Is this with the debugger's branch?
Because the latest two CC commits are not in the branch and they should fix some random threading problems.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

killerbot

no, just on trunk [I have some machines at home on trunk ;-)  ]

ollydbg

Sounds be a big bug, I will check it. I will tell Loaden too.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Loaden


killerbot

I can confirm it is fixed :-)  well done.

ironhead

Any chance we can get a new nightly?  It looks like a lot of the CC hangs have been addressed and it would be really nice to be able to take advantage of them.  ;)

killerbot

I will kick one out tomorrow.

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

oBFusCATed

Also another sync to the debugger's branch will be handy, so I can test the fixes, too...
Morten, Jens can you do it?

(Jens, if you tell me the exact commands needed to do the merge, I won't bother you any more:) )
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

killerbot

Quote from: oBFusCATed on July 19, 2011, 02:30:55 PM
Also another sync to the debugger's branch will be handy, so I can test the fixes, too...
Morten, Jens can you do it?

(Jens, if you tell me the exact commands needed to do the merge, I won't bother you any more:) )

send those commands to me too please ;-)

Jenna

#11
Quote from: killerbot on July 19, 2011, 03:48:49 PM
Quote from: oBFusCATed on July 19, 2011, 02:30:55 PM
Also another sync to the debugger's branch will be handy, so I can test the fixes, too...
Morten, Jens can you do it?

(Jens, if you tell me the exact commands needed to do the merge, I won't bother you any more:) )

send those commands to me too please ;-)
This is how I do it on commandline in linux:


  • cd [path/to/my/debugger-branch/copy]
  • make sure it is clean and uptodate
  • run: svn merge -r [first revision to be merged]:[last revision to be merged] svn+ssh://jenslody@svn.berlios.de/svnroot/repos/codeblocks/trunk . (note the trailing dot [with a blank before it])
  • commit changes with comment "* debugger_branch: merged with trunk (trunk to debugger_branch)"

The first revision to be merged is normally the revision after of (!) the last merge, the last revision to be merged is normally HEAD, the url has to be fixed to fit your needs.
Instead of the url you can use the root-folder of your working-copy of trunk.
Instead of the trailing dot you can use the path to your working copy of the debugger-branch (if you are not inside its root-folder).
To see what will be merged (instead of really doing it), you can use "--dry-run" as for many other svn-commands.

EDIT:
corrected incorrect and dangerous instruction !

oBFusCATed

Thanks a lot Jens,
I've added this precious info to the wiki -> http://wiki.codeblocks.org/index.php?title=Version_control
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

:oops: I found a serious error in my instructions two posts above :
the first revision to be merged has to be the reviosion of last merge !!

This means all my merges (and the merges done by others with this instruction) are most likely incorrect !!

I will check them all and try to correct them !
Exactly I check all merges done by me, oBFusCATed and killerbot.

Jenna

Quote from: jens on August 15, 2011, 02:50:27 PM
This means all my merges (and the merges done by others with this instruction) are most likely incorrect !!

I will check them all and try to correct them !
Exactly I check all merges done by me, oBFusCATed and killerbot.

Seems like only four files have been involved.

Should be fixed now.

Sorry for the inconvenience.