Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 166965 - warning in terminal appears when user is debugging project in Fedora 11
warning in terminal appears when user is debugging project in Fedora 11
Product: cnd
Classification: Unclassified
Component: Debugger
PC Linux
: P3 (vote)
: 6.x
Assigned To: Egor Ushakov
Depends on:
  Show dependency treegraph
Reported: 2009-06-12 08:12 UTC by czerny
Modified: 2010-03-19 13:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description czerny 2009-06-12 08:12:30 UTC
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
for help. 

Actually I use nb 6.5.1 but there was to item in selectbox for it.
Comment 1 Egor Ushakov 2009-06-23 13:26:25 UTC
- 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
Comment 2 czerny 2009-06-23 14:45:24 UTC
gdb version: GNU gdb (GDB) Fedora (
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
Comment 3 soldatov 2009-08-10 12:20:12 UTC
Comment 4 Egor Ushakov 2009-09-01 03:51:14 UTC
confirmed is only warning message... However in our fedora environment we were getting program output in the terminal
after that.
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.
Comment 5 Vladimir Voskresensky 2009-10-01 20:08:22 UTC
czerny, could you, please, provide the requested info. 
Comment 6 czerny 2009-10-03 20:22:20 UTC
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
Comment 7 soldatov 2009-10-04 10:18:51 UTC
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"
Comment 8 Egor Ushakov 2010-03-19 13:04:21 UTC
This can be easily reproduced without the IDE, I filed:
Also using output window (project properties/Run/console type) helps.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo