News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

random crashes when building project

Started by piciji, January 18, 2014, 05:38:08 PM

Previous topic - Next topic

piciji

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?

BlueHazzard

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?

oBFusCATed

(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!]

piciji


piciji

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.

piciji

ok the problem was caused by using mingw 32 for debug. mingw 64 works without crashes for release/debug.