Code::Blocks Forums

User forums => Help => Topic started by: piciji on January 18, 2014, 05:38:08 pm

Title: random crashes when building project
Post by: piciji on January 18, 2014, 05:38:08 pm
I am using the latest version of Code::Blocks on Win7 64. My project is based on a makefile. Sometimes when compiling the latest code changes or rebuilding the whole project Code::Blocks crashes hard without an error message. The build log doesn't help to find out what's going wrong. Code::Blocks almost ever crash if I skip a running build process. The crash behavior is not reproduceable. Code::Blocks 12.x has the same problem so its not a new bug of latest version.

Another way to crash Code::Blocks each time is to open the program Hex-Editor MX while Code::Blocks is running.

Maybe there is some other log to provide you with crashing information?
Title: Re: random crashes when building project
Post by: BlueHazzard on January 18, 2014, 06:18:27 pm
latest version means? svn odr release?
if svn can you run c::b through gdb?

OT: @dev: Wouldn't it be better to compile the releases version with -g , or provide a version without stripping the debug information, for a better backtrace in gdb?
Title: Re: random crashes when building project
Post by: oBFusCATed on January 18, 2014, 06:54:30 pm
We do this for most linux distros...
Title: Re: random crashes when building project
Post by: piciji on January 20, 2014, 10:20:59 pm
ok will try latest svn + gdb
Title: Re: random crashes when building project
Post by: piciji on January 26, 2014, 07:29:12 pm
haven't tried a nightly yet but switched to release build a few days ago. There wasn't a single crash.

release: mingw 64
debug: mingw 32

ifeq ($(DEBUG), 0)
  flags += -O3 -fomit-frame-pointer
  link += -mwindows -s
else
  flags += -O0 -g -Wall
  link += -mconsole
endif

I guess either adding debug information (-g) or the mingw32 compiler cause the crash. I will try it a few more days.
Title: Re: random crashes when building project
Post by: piciji on February 04, 2014, 09:23:07 pm
ok the problem was caused by using mingw 32 for debug. mingw 64 works without crashes for release/debug.