It looks like your application crashs, nothing we can help here.
If you want to know how to copy from xterm-window, you should read the manual of xterm.
You can use other terminals if you prefer this (I use gnome-terminal).
See "Settings -> Environment -> General settings" and
http://forums.codeblocks.org/index.php/topic,17621.msg120701.html#msg12070 .
Be aware, that questions about compiling, linking and application errors are not allowed in our forum, just questions, that are directly related to C::B.
Such posts might get locked or even silently deleted.
Pleased reread the rules you have accepted when registering here:
http://forums.codeblocks.org/index.php/topic,9996.0.html .