Code::Blocks Forums
User forums => Help => Topic started 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?
-
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?
-
We do this for most linux distros...
-
ok will try latest svn + gdb
-
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.
-
ok the problem was caused by using mingw 32 for debug. mingw 64 works without crashes for release/debug.