I performed a clean install of Ubuntu 16.04.1 LTS, ran all the updates, then installed Code::Blocks from the repositories using:
sudo apt install codeblocks
This installed Code::Blocks release 13.12 rev 9501.
Again, I created a new console application, opened the generated main.cpp file, then iteratively clicked through the SETTINGS menu options (Environment, Editor, Compiler, Debugger, Global Variables, Scripting...).
The gdb backtrace is attached.