Author Topic: CB crash when using batchbuild  (Read 8024 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
CB crash when using batchbuild
« on: May 24, 2006, 04:14:47 pm »
i'm using the batchbuild feature regularly, since a few revisions CB crashes when trying to batchbuild a workspace

here the commandline, which i use in a batchfile, which was working since half a year or longer ...

"D:\Programme\CodeBlocks\codeblocks.exe"  -na -nd -ns -p=batchbld --build "D:\Devel\CodeBlocks\trunk\src\.my.CodeBlocks.workspace"

CB svn rev 2499, wx-widgets 2.6.3 Windows, unicode

and here the RPT file attached

[attachment deleted by admin]

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: CB crash when using batchbuild
« Reply #1 on: May 24, 2006, 05:51:29 pm »
here a call-stack trace,
might be better than the previous crash report.

[attachment deleted by admin]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: CB crash when using batchbuild
« Reply #2 on: May 24, 2006, 10:15:01 pm »
Mmmmh... it's the bold line in the following code (sdk/messagemanager.cpp:443):

        if (dlg->m_pText)
        {
            dlg->m_pText->AppendText(tmp + _T('\n')); // log to build log window
            dlg->m_pText->ScrollLines(-1);
            Manager::ProcessPendingEvents();
        }

I don't see an issue here since dlg->m_pText is veriffeied before...?! Could you have a look if it points to the same construct the sources you've used?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: CB crash when using batchbuild
« Reply #3 on: May 24, 2006, 10:24:57 pm »
i couldn't analyse the problem till now, but since my last installed "good" version, where everything was working ok for me, was rev 2472,
it has to do something with any modifications that happened later.

obviously the crash has something to do with the logging feature,
one of the suspect changes is in rev 2482, the commit descriptions says :
" * Cleaned up some logging code in compiler plugin. "


Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: CB crash when using batchbuild
« Reply #4 on: May 24, 2006, 10:27:04 pm »
I don't see an issue here since dlg->m_pText is veriffeied before...
it happened more than once in history of menkind, that a pointer isn't set to zero
and isn't valid any more at the same time ...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: CB crash when using batchbuild
« Reply #5 on: May 24, 2006, 10:40:19 pm »
it happened more than once in history of menkind, that a pointer isn't set to zero
and isn't valid any more at the same time ...
Yes, this could be, of course! I did not think about that one. I'm looking for references to that pointer, maybe I can find a delete or similar without setting to zero...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: CB crash when using batchbuild
« Reply #6 on: May 24, 2006, 10:52:34 pm »
I don't see an issue here since dlg->m_pText is veriffeied before...
it happened more than once in history of menkind, that a pointer isn't set to zero
and isn't valid any more at the same time ...

The pointer is valid alright.

What I noticed though is that it works flawlessly when batch-building a project. It crashes only when batch-building a workspace. I believe this is enough of a clue to find out what's wrong ;)
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: CB crash when using batchbuild
« Reply #7 on: May 24, 2006, 11:03:59 pm »
I believe this is enough of a clue to find out what's wrong ;)
Could you have a look here http://forums.codeblocks.org/index.php?topic=3192.msg25284#msg25284, too? This could be related...?!
With regards, Morten.

Edit: Wrong URL in the fiurst place.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: CB crash when using batchbuild
« Reply #8 on: May 25, 2006, 10:10:27 am »
I believe this is enough of a clue to find out what's wrong ;)
Could you have a look here http://forums.codeblocks.org/index.php?topic=3192.msg25284#msg25284, too? This could be related...?!
With regards, Morten.

Edit: Wrong URL in the fiurst place.

No, not related. Workspaces contain projects so it's not the same bug. Actually this is a strange bug and I 'm looking into it...
Be patient!
This bug will be fixed soon...