I installed CodeBlocks on Ubuntu 16.10 using:
sudo apt install codeblocks
When I start CodeBlocks and then create a new console application, the CodeBlocks IDE will freeze if I start clicking on menu options (such as SETTINGS -> COMPILER, or SETTINGS -> ENVIRONMENT). The freeze doesn't always happen on the first attempt, although many times it does. It's very easy to reproduce and happens quite often (making CodeBlocks virtually unusable for me on Ubuntu 16.10).
The version of CodeBlocks is 16.01 rev 10692.
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.