Debugging failed on Centos 6.7
-
I am using QTCreator 3.6.1 on Centos 6.7 and my attempts to debug a test application result in the following application output:
Debugging starts
Debugging has failed
Debugging has finishedI have set the Python environment variable to Python 2.7 and gdb works on the test application. The QTCreator output and general Centos environment information is provided below. Would you have any suggestions/clues on how to avoid the aforementioned error.
[user@centos67 Debug]$ /opt/qtcreator-3.6.1/bin/qtcreator QProcess: Destroyed while process ("/usr/bin/cmake") is still running. Unexpected GDB stderr: "'import site' failed; use -v for traceback\n" UNKNOWN RESPONSE TYPE ' T '. REST: raceback (most recent call last): File "<string>", line 32, in <module> File "/opt/python2.7/lib/python2.7/os.py", line 398, in <module> import UserDict File "/opt/python2.7/lib/python2.7/UserDict.py", line 83, in <module> import _abcoll File "/opt/python2.7/lib/python2.7/_abcoll.py", line 11, in <module> from abc import ABCMeta, abstractmethod File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: File "<string>", line 32, in <module> File "/opt/python2.7/lib/python2.7/os.py", line 398, in <module> import UserDict File "/opt/python2.7/lib/python2.7/UserDict.py", line 83, in <module> import _abcoll File "/opt/python2.7/lib/python2.7/_abcoll.py", line 11, in <module> from abc import ABCMeta, abstractmethod File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: File "/opt/python2.7/lib/python2.7/os.py", line 398, in <module> import UserDict File "/opt/python2.7/lib/python2.7/UserDict.py", line 83, in <module> import _abcoll File "/opt/python2.7/lib/python2.7/_abcoll.py", line 11, in <module> from abc import ABCMeta, abstractmethod File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: import UserDict File "/opt/python2.7/lib/python2.7/UserDict.py", line 83, in <module> import _abcoll File "/opt/python2.7/lib/python2.7/_abcoll.py", line 11, in <module> from abc import ABCMeta, abstractmethod File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: File "/opt/python2.7/lib/python2.7/UserDict.py", line 83, in <module> import _abcoll File "/opt/python2.7/lib/python2.7/_abcoll.py", line 11, in <module> from abc import ABCMeta, abstractmethod File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: import _abcoll File "/opt/python2.7/lib/python2.7/_abcoll.py", line 11, in <module> from abc import ABCMeta, abstractmethod File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: File "/opt/python2.7/lib/python2.7/_abcoll.py", line 11, in <module> from abc import ABCMeta, abstractmethod File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: from abc import ABCMeta, abstractmethod File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: File "/opt/python2.7/lib/python2.7/abc.py", line 8, in <module> from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: from _weakrefset import WeakSet File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: File "/opt/python2.7/lib/python2.7/_weakrefset.py", line 5, in <module> from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' '. REST: from _weakref import ref ImportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" UNKNOWN RESPONSE TYPE ' I '. REST: mportError: No module named _weakref =thread-group-added,id="i1" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) &"show version\n" ~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" 1^done (gdb) &"show debug-file-directory\n" ~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" 2^done (gdb) &"set print object on\n" 3^done (gdb) &"set breakpoint pending on\n" 4^done (gdb) &"set print elements 10000\n" 5^done (gdb) &"handle SIGSEGV nopass stop print\n" ~"Signal Stop\tPrint\tPass to program\tDescription\n" ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" 6^done (gdb) &"set unwindonsignal on\n" 7^done (gdb) &"set width 0\n" 8^done (gdb) &"set height 0\n" 9^done (gdb) &"set substitute-path /var/tmp/qt-src /usr/include\n" 10^done (gdb) 11^done (gdb) &"python sys.path.insert(1, '/opt/qtcreator-3.6.1/share/qtcreator/debugger/')\n" 12^done (gdb) &"python sys.path.append('/usr/bin/data-directory/python')\n" 13^done (gdb) &"python from gdbbridge import *\n" Warning: HANDLE RUNCONTROL START FAILED (no active run control) Warning: State changed from EngineSetupFailed(2) to DebuggerFinished(22) [master] (no active run control) Warning: (gdb) (no active run control) Warning: QUIT DEBUGGER REQUESTED IN STATE 22 (no active run control) Warning: 16^done (no active run control) Warning: (gdb) (no active run control) QProcess: Destroyed while process ("/usr/bin/gdb") is still running. Warning: HANDLE GDB ERROR: The gdb process crashed some time after starting successfully. (no active run control) Warning: GDB PROCESS FINISHED, status 1, exit code 9 (no active run control) [user@centos67 Debug]$
-
The general Centos environment information is:
PATH=/opt/python2.7/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/intel/bin:/home/user/bin PWD=/home/user/svn/app/cmake_build/linux/Debug PYTHONHOME=:/opt/python2.7 PYTHONPATH=:/opt/python2.7/lib:/opt/python2.7/lib/python2.7:/opt/python2.7/lib/python2.7/site-packages:/opt/python2.7/lib/python2.7/lib-dynload
[user@centos67 ~]$ sudo lid -g wheel user(uid=503) [user@centos67 ~]$ sudo cat /etc/sudoers | grep wheel ## Allows people in group wheel to run all commands #%wheel ALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL [user@centos67 ~]$
[user@centos67 Debug]$ gdb GNU gdb (GDB) 7.8 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) file app_test Reading symbols from app_test...done. (gdb) set args --gtest_filter=types.checkLen (gdb) run Starting program: /home/user/svn/app/bin/linux/Debug/app_test --gtest_filter=types.checkLen [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Note: Google Test filter = types.checkLen [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from types [ RUN ] types.checkLen [ OK ] types.checkLen (0 ms) [----------] 1 test from types (0 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (0 ms total) [ PASSED ] 1 test. YOU HAVE 3 DISABLED TESTS [Inferior 1 (process 4140) exited normally] (gdb) quit [user@centos67 Debug]$
[user@centos67 Debug]$ rpm -qa | grep -e ^gdb- gdb-7.2-83.el6.x86_64 [user@centos67 Debug]$ uname -a Linux centos67 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [user@centos67 Debug]$ cat /etc/lsb-release LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch [user@centos67 Debug]$ cat /etc/centos-release CentOS release 6.7 (Final) [user@centos67 Debug]$
-
Looks like the gdb installation (or rather the Python your gdb installation uses) is broken. What does 'py print(32)' and 'py import site' at the (gdb) prompt of a stand-alone gdb session say?
As a general note: bugreports are better directed to bugreports.qt-project.org. Most developers don't read the web forum.