Starting debug c/c++ console project fails with
&"warning: GDB: Failed to set controlling terminal: Operace nen\303\255 povolena\n"
(English) &"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
This messages appears in a new created console window after compilation (compilation is ok). I can't see any output of
my application. When the debugged programme ends, line
[Press Enter to close window]
is added into console window.
This bug appears when I upgrade my system from fc10 (debugging was ok) to fc11. So maybe it's bug of system but I ask
Actually I use nb 6.5.1 but there was to item in selectbox for it.
- what gdb version do you use?
- what terminal do you use?
- try to set another terminal in project properties/run
- try to set output window as console type in project properties/run
gdb version: GNU gdb (GDB) Fedora (126.96.36.19990302-27.fc11)
terminal: gnome terminal 2.26.1
changing terminal type has no effect (default / GNOME Termina / KDE Console / XTerm)
console type: external terminal - bug still there
console type: output window - everything ok
confirmed is only warning message... However in our fedora environment we were getting program output in the terminal
Can you please try to reproduce the issue from the command line:
- open a terminal and get it's tty (type tty command)
- start gdb session in another console with the argument -tty <TTY of the first terminal>
see if you get program output in the terminal after that.
czerny, could you, please, provide the requested info.
I have tested the clean updated installation of f11 (64b) with the last nb 6.7.1 (Build 200907230233). The first message
of the debugging external console is still &"warning: GDB: Failed to set controlling terminal: Operation not
permitted\n". However after that I can see output of my programme.
When I run gdb in standalone console with parameter tty pointing to another console, I'll obtain the same message as above.
I had no problem with debugging on Ubuntu (64b) + nbnb 6.7.1.
btw: the same bug is discussed on http://forums.netbeans.org/topic15797.html
I suggest to rename issue from "CND debugging broken on fedora 11" into "warning in terminal appears when user is
debugging project in Fedora 11 or Ubuntu 9.10"
This can be easily reproduced without the IDE, I filed:
Also using output window (project properties/Run/console type) helps.