Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every time I go to debug some code in QTCreator, I get this GDB error returning.

Current setup: Ubuntu 11.04
QT Creator version: 2.1.0
GDB Version: GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2

Debugging starts
&"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

I've also tried debugging from CLI with the following results:

charles@virtubuntu:~/Documents/it327/Day3/Lab1-build-desktop$ qtcreator -debug Lab1
Warning: HANDLE RUNCONTROL START FAILED (no active run control)
UNEXPECTED STATE TRANSITION:  "State changed from EngineSetupFailed(2) to DebuggerFinished(21)." 
Warning: State changed from EngineSetupFailed(2) to DebuggerFinished(21). (no active run control)
Warning: (gdb)  (no active run control)

Any ideas on how to resolve this so I can actually debug my code?

share|improve this question
up vote 2 down vote accepted

Apparently this was fixed in Qt Creator 2.2.0, #2837.

Version 2.2.1 will be available with Oneiric.

share|improve this answer
I'm holding out to see if someone has a fix for 11.04, but this was a good find. Thank you – lazyPower Sep 28 '11 at 22:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.