Author Topic: Is CC crash, or Debugger plugin?  (Read 73011 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Is CC crash, or Debugger plugin?
« Reply #45 on: July 26, 2011, 02:59:31 pm »
I was editing the source code. Almost all crashes/lockups happen after I've edit the source code.
Just for convenience: Can you try if theses crashes still happen if you disable the real-time parsing? I would guess it'll be way more stable then.
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: Is CC crash, or Debugger plugin?
« Reply #46 on: July 26, 2011, 03:03:50 pm »
Yes, I've disabled 'Update parse when typing', I hope this is what you mean by real time parser.
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Is CC crash, or Debugger plugin?
« Reply #47 on: July 26, 2011, 03:50:05 pm »
Yes, I've disabled 'Update parse when typing', I hope this is what you mean by real time parser.
Yes, that's what I meant. So the kick-in is not caused by that. :-(
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: Is CC crash, or Debugger plugin?
« Reply #48 on: July 26, 2011, 04:00:50 pm »
....So the kick-in is not caused by that. :-(
My mistake, I should have said - "I've just disabled it, lets see if the crashes are happening still!"
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is CC crash, or Debugger plugin?
« Reply #49 on: July 26, 2011, 04:21:07 pm »
The "calltip crash" (the one in the std::set), just happened, so it is not related to the realtime parser.

This time it happened during debugging :( (99% of the time it was during debugging, but I guess this is just caused by the usage pattern).

Maybe it is time to start running it under valgrind.
(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 Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Is CC crash, or Debugger plugin?
« Reply #50 on: August 01, 2011, 07:51:23 pm »
The "calltip crash" (the one in the std::set), just happened, so it is not related to the realtime parser.

This time it happened during debugging :( (99% of the time it was during debugging, but I guess this is just caused by the usage pattern).

Maybe it is time to start running it under valgrind.
I don't know how to use valgrind.
Maybe it is time to disable the option: "Compiler and debugger settings > Debugger settings > Evaluate expression under cursor"  ?
 :lol:

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is CC crash, or Debugger plugin?
« Reply #51 on: August 01, 2011, 08:23:13 pm »
Or you should fix the bug  8)

Do you have anymore CC fixes in the pipeline or it is safe to do a merge?

p.s. you should try it (valgrind) it is pretty powerful and not that hard (on smaller projects, C::B is a bit biggish)
(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 Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Is CC crash, or Debugger plugin?
« Reply #52 on: August 02, 2011, 10:52:52 am »
Maybe it is time to start running it under valgrind.
I can't run Valgrind plugin in CB, here is the error log:
Quote
valgrind --version
valgrind-3.6.1
valgrind --leak-check=yes --xml=yes --xml-file=ValgrindOut.xml "devel/codeblocks" --debug-log --multiple-instance -ns -ni
devel/codeblocks: error while loading shared libraries: libcodeblocks.so: cannot open shared object file: No such file or directory

Then I run valgrind in bash:
Code
#!/bin/sh
APP_DIR=`dirname "$0"`
APP_DIR=`( cd "$APP_DIR" && pwd )`
export LD_LIBRARY_PATH=$APP_DIR:$LD_LIBRARY_PATH
valgrind --leak-check=yes --xml=yes --xml-file=ValgrindOut.xml $APP_DIR/parsertest $@
And I can't find any issue.


[attachment deleted by admin]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is CC crash, or Debugger plugin?
« Reply #53 on: August 02, 2011, 11:17:20 am »
It is better to run in from the command line.
Something like valgrind --leak-check=full ./app
Also try running it on the parsetest project.
Also look at the threaded engines of valgrind:
http://valgrind.org/docs/manual/hg-manual.html
http://valgrind.org/docs/manual/drd-manual.html
(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 Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Is CC crash, or Debugger plugin?
« Reply #54 on: August 02, 2011, 04:31:15 pm »
Valgrind can not give me any useful advise.
You can try REV7309, and disable the new option "Enable headers code-completion".
Maybe the issue is related with it.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is CC crash, or Debugger plugin?
« Reply #55 on: August 02, 2011, 04:38:30 pm »
Do you see any "uninitialized write" kind of messages?

OK, when I get home all, merge the code in the branch and will do some testing.
(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 Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Is CC crash, or Debugger plugin?
« Reply #56 on: August 02, 2011, 05:08:08 pm »
Do you see any "uninitialized write" kind of messages?
No.

Quote
valgrind --version
valgrind-3.6.1
valgrind --leak-check=full --xml=yes --xml-file=ValgrindOut.xml "devel/codeblocks" --debug-log --multiple-instance -ns -ni

** (codeblocks:13539): CRITICAL **: murrine_style_draw_flat_box: assertion `width >= -1' failed

** (codeblocks:13539): CRITICAL **: murrine_style_draw_flat_box: assertion `width >= -1' failed

** (codeblocks:13539): CRITICAL **: murrine_style_draw_flat_box: assertion `width >= -1' failed

** (codeblocks:13539): CRITICAL **: murrine_style_draw_flat_box: assertion `width >= -1' failed

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is CC crash, or Debugger plugin?
« Reply #57 on: August 02, 2011, 05:29:12 pm »
Loaden: Why are you using --xml=yes and --xml-file? They are ment for application parsing, not human parsing.
(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 Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Is CC crash, or Debugger plugin?
« Reply #58 on: August 02, 2011, 05:31:27 pm »
Loaden: Why are you using --xml=yes and --xml-file? They are ment for application parsing, not human parsing.
I am using CB's Valgrind plugin.
It's works now.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is CC crash, or Debugger plugin?
« Reply #59 on: August 02, 2011, 05:51:15 pm »
Try from the command line, there is more output there.

And you're trying it on a big project for long time? If you just start C::B move around for a minute and quit, you'll find nothing.
(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!]