User forums > Using Code::Blocks

Code blocks crash on CentOS 7

<< < (2/3) > >>

oBFusCATed:
http://jenslody.de/fedora/el7/x86_64/
Obviously you need codeblocks-debuginfo package installed...

Jenna:

--- Code: ---yum install codeblocks-debuginfo
--- End code ---
as root should work.

alexchen:
Do I need to set up any specially flags in the command line?  What should I expect to get when it crashes, or where should I look for debug information?

oBFusCATed:
Start codeblocks under gdb... when it crashes execute the bt command...

alexchen:
That's the problem I mentioned.  This problem happens within a shell script.  It works like this: a script build_linux.sh is executed.  It contains commands to go to different projects' folder and run another script that passes the build configuration (debug/release), and workspace file to run CB in batch mode.

build_linux.sh looks like this:
for cfg in Debug Release
do
   for proj in A B C D
   do
      cd $proj
      /usr/bin/codeblocks /ni /ns --debug-info --build --target=$cfg A.workspace
   done
done

It fails in project C for instance, but if I run the same command in project C manually, it works.
Are you suggesting that I put gdb in front of codeblocks in the script?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version