I just tested it, and it works fine here.
Can you tell step by step what you did to get the crash, or better provide a simple sample project where this occurs (of course saved before the crash).
And the crash-report if any would be interesting.
It shoud be in /tmp/codeblocks_dbgrpt_[pid]_[YYYYMMDDTHHMMSS]/codeblocks.xml, where pid is the pid of the C::B instance that crashes and the rest is the date and time of the crash.