I've installed codeblocks on linux mint 20.1. Every time I try to debug a console application the console appears with the message "warning: GDB: failed to set controlling terminal: Operation not permitted". It sometimes displays the output I want and sometimes doesn't. Otherwise it appears to be debugging ok, shows the correct values etc in the watch window, but the console disappears as soon as the programme ends so you have to put in extra user input lines to see what's on screen. And it sometimes crashes completely and doesn't allow you to stop the programme or run it again without closing the project and reopening it. Anybody got any ideas what is happening?