I don't think this is a wxwidgets issue. You could try to pin-point the culprit using debugger, profiler or some other tracing tool (strace for ex.). I took a quick look in code::blocks forums and there seems to be similar issues with other Ubuntu users.
-- Crash in applications using wxWidgets2.6.1 https://launchpad.net/bugs/57569 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs