Author Topic: cc-branch crashes on linux  (Read 33226 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: cc-branch crashes on linux
« Reply #30 on: August 25, 2010, 06:56:41 am »
I personally think that not CC bug.
We need find the reason?
True - it's not as CC bug, but CC could avoid it.
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cc-branch crashes on linux
« Reply #31 on: August 25, 2010, 11:06:51 am »
Hm, Looks the same as the one in the debugger branch.
I think this should be fixed in C::B's sdk, not in every plugin, it will be easier I suppose :)
(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!]

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: cc-branch crashes on linux
« Reply #32 on: August 25, 2010, 12:14:31 pm »
but rather urgently ;-)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: cc-branch crashes on linux
« Reply #33 on: August 25, 2010, 12:32:51 pm »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: cc-branch crashes on linux
« Reply #34 on: August 25, 2010, 01:44:55 pm »
I think this should be fixed in C::B's sdk, not in every plugin, it will be easier I suppose :)
True, If what I said is correct. As the loggers is an implementation of Thomas, I wonder what he believes is the right thing to do.

I would implement the destructor for the relevant loggers (including TextCtrlLogger) and set the control pointer to zero (NOT deleting it, as deletion will be done by the parent component in wxwidgets).

Any objections / thoughts / hints on that topic?!
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 killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: cc-branch crashes on linux
« Reply #35 on: August 25, 2010, 02:38:17 pm »

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: cc-branch crashes on linux
« Reply #36 on: August 25, 2010, 02:50:48 pm »
Hi, all!
I personally hope we can publish a CC BRANCH build in the "Nightly builds" board.
Because we need more extensive testing in order to perfect the CC.
Any comments?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: cc-branch crashes on linux
« Reply #37 on: August 25, 2010, 03:11:09 pm »
confirmed this fixes the issue.
On second thoughts:
The loggers are one of the components destroyed at last. So in fact they should be valid during the shutdown/destruction of ANY plugin.

However, logging/UI access in operations called during shutdown (of plugins) should ALWAYS check if the app is shutting down -> just as Loaden did it in the patch for the CC branch. Basically that's what this method is for!

I have (however) attached a patch concerning the loggers for testing. It shouldn't harm but may introduce some "safety"... although it's not really a "good way".

I would welcome testing and feedback (@oBFusCATed: e.g. if this "fixes" the crash in the debugger branch).

I personally hope we can publish a CC BRANCH build in the "Nightly builds" board.
I had asked killerbot to do so, I'm afraid he didn't find the time or wanted to wait until the show-stoppers are solved.
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 killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: cc-branch crashes on linux
« Reply #38 on: August 26, 2010, 12:06:04 pm »
Quote
wanted to wait until the show-stoppers are solved.

But this weekend I will create one.

I could do all 3 of them :
regular
cc
debugger (if there are any updates ?)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: cc-branch crashes on linux
« Reply #39 on: August 26, 2010, 12:18:05 pm »
Quote
wanted to wait until the show-stoppers are solved.

But this weekend I will create one.

I could do all 3 of them :
regular
cc
debugger (if there are any updates ?)
Thanks a lot!

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: cc-branch crashes on linux
« Reply #40 on: August 26, 2010, 01:25:01 pm »
Quote
wanted to wait until the show-stoppers are solved.

But this weekend I will create one.

I could do all 3 of them :
regular
cc
debugger (if there are any updates ?)
Nice, glad to hear! thank you!!!
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cc-branch crashes on linux
« Reply #41 on: September 17, 2010, 02:19:54 am »
I would welcome testing and feedback (@oBFusCATed: e.g. if this "fixes" the crash in the debugger branch).
No, it doesn't, it's the same as before, the logger has control pointer pointing to the dead gui object...

Steps to reprocude:
1. start cb
2. start some app
3. attach to the app
4. close cb
(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!]