Results 1 to 8 of 8

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

  1. #1
    Join Date
    Oct 2009
    Posts
    90
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

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

    hello,

    what is this warning (only in debug run) and what is solution?

    ubuntu 9.10
    qt-sdk-x86 4.6

    regards
    navid

  2. #2
    Join Date
    Dec 2009
    Posts
    29
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default Re: &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

    I habe the same problem on the same platform. the problem seems to be with the debugger used (GDB) and not Qt itself. GDB is also used with other tools like NetBeans. One possible solution I seen from reading their forums is to somehow Sett "Console Type" to "Output Window"

  3. #3
    Join Date
    Dec 2009
    Posts
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

    anybody work out a solution? I'm getting the same problem on the same platform

    cheers

    dave

  4. #4
    Join Date
    Dec 2009
    Posts
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

    well, i just found the answer for me

    create a file Qt.conf in /etc/ld.so.conf.d with this content
    # Qt libraries
    /opt/qtsdk-2009.05/lib

    or wherever your libraries are
    then 'sudo ldconfig'

    cheers

  5. The following user says thank you to drave for this useful post:

    swat535 (8th January 2010)

  6. #5
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

    Hello,
    i just ran into the same Problem on ubuntu 10.04 - 32bit and GNU gdb (GDB) 7.1-ubuntu, This GDB was configured as "i486-linux-gnu"

    GDB worked quite fine several weeks, and suddenly it was very slow to debug and then i got the message: &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

    Is there any other solution but Qt.conf?
    Which i tried already?

    regards Astronomy

  7. #6
    Join Date
    Aug 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

    Qt 4.7.3, Ubuntu 10.4

    Reverting back to gdb 6.6 worked, GDB has a ftp site that has .debs. It didn't take too long to build it.

  8. #7
    Join Date
    Aug 2012
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

    I had the same Problem with Ubuntu 10.04, QTCreator 2.5.2 and gdb 7.1 coming with ubuntu.

    I could solve my problems with an upgrade to the current version 7.5 of gdb and using this instead the 7.1 installed by ubuntu.

    You can download the latest and compile it by yourself

    wget http://ftp.gnu.org/gnu/gdb/gdb-7.5.tar.gz
    tar xvfz gdb-7.5.tar.gz
    cd gdb-7.5
    ./configure
    make
    cp gdb/gdb /usr/local/bin

    Take care about that the /usr/local/bin is at the beginning of the PATH you are using while running QtCreator
    You can place the following line into your .profile

    export PATH=$PATH:/usr/local/bin

  9. #8
    Join Date
    Nov 2012
    Posts
    12
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"

    i have the same problem with ubuntu 10.04, QTCreator bt with gdb7.5 coming with ubuntu.
    While debugging starts it shows the following.

    &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"
    Cannot call inferior functions, you have broken Linux kernel i386 NX (non-executable pages) support!

    Any1 tel me y it is showing this error.

Similar Threads

  1. problem with indexes
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 10th December 2007, 15:55
  2. Client/Server Error: BadIDChoice
    By 3nc31 in forum Qt Programming
    Replies: 5
    Last Post: 27th November 2007, 11:22
  3. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 07:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.