This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166965

Summary: warning in terminal appears when user is debugging project in Fedora 11
Product: cnd Reporter: czerny <czerny>
Component: DebuggerAssignee: Egor Ushakov <gorrus>
Status: RESOLVED WONTFIX    
Severity: blocker CC: apepin
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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 (6.8.50.20090302-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
Comment 3 soldatov 2009-08-10 12:20:12 UTC
confirmed
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 http://forums.netbeans.org/topic15797.html
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:
http://sourceware.org/bugzilla/show_bug.cgi?id=11403
Also using output window (project properties/Run/console type) helps.
Comment 9 vedantydv123 2019-07-20 05:37:11 UTC
Its so important for the all user because here we can get more things  http://windowstuts.net/synchronize-settings/ for the system because here we can get more benefit for the learning.