I've gotten this crash when I invoke --build. To duplicate, just build a project where it's already built (In my case, I'm running the windows version) and after the project reports everything is build, it crashes on CodeBlocks exit. If I add --no-batch-window-close, it will build fine and leave the message dialog, which I can close manually without a crash. However, for batch file based builds, this isn't a good solution.