Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24004

Debugging on remote host - impossible to launch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.12.2
    • Qt Creator 4.12.0
    • Debugger
    • None
    • Linux/Other display system
    • e71c0b7fe206d607c94bda0cd2dc5d7ed249101b

    Description

      After update Qt Creator to 4.12.0 it's impossible to launch debugger on the remote host. Problem is in 42 line file:

      /Qt/Tools/QtCreator/share/qtcreator/debugger/dumper.py

      exception in this line use class "DumperBase" which is defined below. After fixing it Qt Creator starts working normally as in the previous version.

      wNote: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under the control of Qt Creator's Debugger plugin, for instance in swap files, or other plugins you might use.
      wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share.
      w
      dEXAMINING /home/michal/Projects/Px752/build-px752_main-Qt_imx6_5_9_6_VAR_QRay_fb-Debug/px752_app/px752
      dELF SECTIONS:  .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.extab .ARM.exidx .eh_frame .init_array .fini_array .data.rel.ro .dynamic .got .data .bss .comment .ARM.attributes .debug_aranges .debug_info .debug_abbrev .debug_line .debug_frame .debug_str .debug_loc .debug_ranges .symtab .strtab .shstrtab
      dStart parameters: 'px752_app (on QRAY_CONSOLE)' mode: 6
      dABI: arm-linux-generic-elf-32bit
      dLanguages: c++
      dExecutable: /storage/px752
      dDebugger: /opt/fslc-framebuffer/2.4.3/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-gdb
      dProject: /home/michal/Projects/Px752/px752_main
      dAdditional Search Directories:
      dRemote: 10.10.3.220:10000
      dQML server: 10.10.3.220:10001
      dSysroot: /opt/fslc-framebuffer/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi
      dDebug Source Location:
      dDebugger settings:
      dAdditionalArguments:   (default: )
      dAdjustBreakpointLocations: true  (default: true)
      dAllPluginBreakpoints: true  (default: true)
      dAlwaysAdjustColumnWidths: true  (default: true)
      dAutoDerefPointers: true  (default: true)
      dAutoEnrichParameters: true  (default: true)
      dAutoQuit: false  (default: false)
      dBreakEvent:   (default: )
      dBreakOnAbort: false  (default: false)
      dBreakOnCatch: false  (default: false)
      dBreakOnCrtDbgReport: false  (default: false)
      dBreakOnFatal: false  (default: false)
      dBreakOnThrow: false  (default: false)
      dBreakOnWarning: false  (default: false)
      dBreakpointCorrection: true  (default: true)
      dBreakpointsFullPath: false  (default: false)
      dCDB_Console: false  (default: false)
      dCloseBuffersOnExit: false  (default: false)
      dCloseMemoryBuffersOnExit: true  (default: true)
      dDisplayStringLimit: 100  (default: 100)
      dEnableReverseDebugging: false  (default: false)
      dExtraDumperFile:   (default: )
      dFirstChanceExceptionTaskEntry: true  (default: true)
      dFontSizeFollowsEditor: false  (default: false)
      dGdbCustomDumperCommands:   (default: )
      dGdbPostAttachCommands:   (default: )
      dGdbStartupCommands:   (default: )
      dIgnoreFirstChanceAccessViolation: false  (default: false)
      dIntelFlavor: false  (default: false)
      dLoadGdbDumpers2: false  (default: false)
      dLoadGdbInit: true  (default: true)
      dLogTimeStamps: false  (default: false)
      dMaximalStackDepth: 20  (default: 20)
      dMaximalStringLength: 10000  (default: 10000)
      dMultiInferior: false  (default: false)
      dNoPluginBreakpoints: false  (default: false)
      dQmlInspector.ShowAppOnTop: false  (default: false)
      dRaiseOnInterrupt: true  (default: true)
      dSecondChanceExceptionTaskEntry: true  (default: true)
      dSelectedPluginBreakpoints: false  (default: false)
      dSelectedPluginBreakpointsPattern: .*  (default: .*)
      dShowQObjectNames2: true  (default: true)
      dShowQmlObjectTree: true  (default: true)
      dShowQtNamespace: true  (default: true)
      dShowStandardNamespace: true  (default: true)
      dShowThreadNames: false  (default: false)
      dSkipKnownFrames: false  (default: false)
      dSortStructMembers: true  (default: true)
      dSourcePaths:   (default: )
      dStationaryEditorWhileStepping: false  (default: false)
      dSwitchModeOnExit: false  (default: false)
      dSymbolPaths:   (default: )
      dTargetAsync: false  (default: false)
      dUseAlternatingRowColours: false  (default: false)
      dUseCodeModel: true  (default: true)
      dUseDebuggingHelper: true  (default: true)
      dUseDynamicType: true  (default: true)
      dUseMessageBoxForSignals: true  (default: true)
      dUsePythonDumper: true  (default: true)
      dUseToolTips: true  (default: true)
      dUseToolTipsInBreakpointsView: false  (default: false)
      dUseToolTipsInLocalsView: false  (default: false)
      dUseToolTipsInStackView: true  (default: true)
      dWarnOnReleaseBuilds: true  (default: true)
      dWatchdogTimeout: 20  (default: 20)
      dState changed from DebuggerNotReady(0) to EngineSetupRequested(1)
      dCALL: SETUP ENGINE
      dTRYING TO START ADAPTER
      dENABLING TEST CASE: 0
      dSTARTING /opt/fslc-framebuffer/2.4.3/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-gdb -i mi
      dGDB STARTED, INITIALIZING IT
      <76show version
      <77show debug-file-directory
      <78set print object on
      <79set breakpoint pending on
      <80set print elements 10000
      <81set unwindonsignal on
      <82set width 0
      <83set height 0
       Ustawianie podprocesu...
      <84set sysroot /opt/fslc-framebuffer/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi
      <85set substitute-path /usr/src /opt/fslc-framebuffer/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/src
      <86python sys.path.insert(1, '/home/michal/Qt/Tools/QtCreator/share/qtcreator/debugger/')
      <87python sys.path.append('/opt/fslc-framebuffer/2.4.3/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/data-directory/python')
      <88python from gdbbridge import *
      <89python theDumper.loadDumpers({"token":89})
      
      >=thread-group-added,id="i1"
      >~"GNU gdb (GDB) 8.0\n"
      >~"Copyright (C) 2017 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 \"--host=x86_64-fslcsdk-linux --target=arm-fslc-linux-gnueabi\".\nType \"show configuration\" for configuration details."
      >~"\nFor bug reporting instructions, please see:\n"
      >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
      >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
      >~"For help, type \"help\".\n"
      >~"Type \"apropos word\" to search for commands related to \"word\".\n"
      
      >&"show version\n"
      >~"GNU gdb (GDB) 8.0\n"
      >~"Copyright (C) 2017 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 \"--host=x86_64-fslcsdk-linux --target=arm-fslc-linux-gnueabi\".\nType \"show configuration\" for configuration details."
      >~"\nFor bug reporting instructions, please see:\n"
      >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
      >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
      >~"For help, type \"help\".\n"
      >~"Type \"apropos word\" to search for commands related to \"word\".\n"
      >76^done
      dPARSING VERSION: 76^done
      dSUPPORTED GDB VERSION GNU gdb (GDB) 8.0
      dCopyright (C) 2017 Free Software Foundation, Inc.
      dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      dThis is free software: you are free to change and redistribute it.
      dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
      dand "show warranty" for details.
      dThis GDB was configured as "--host=x86_64-fslcsdk-linux --target=arm-fslc-linux-gnueabi".
      dType "show configuration" for configuration details.
      dFor bug reporting instructions, please see:
      d<http://www.gnu.org/software/gdb/bugs/>.
      dFind the GDB manual and other documentation resources online at:
      d<http://www.gnu.org/software/gdb/documentation/>.
      dFor help, type "help".
      dType "apropos word" to search for commands related to "word".
      dGNU gdb (GDB) 8.0
      dCopyright (C) 2017 Free Software Foundation, Inc.
      dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      dThis is free software: you are free to change and redistribute it.
      dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
      dand "show warranty" for details.
      dThis GDB was configured as "--host=x86_64-fslcsdk-linux --target=arm-fslc-linux-gnueabi".
      dType "show configuration" for configuration details.
      dFor bug reporting instructions, please see:
      d<http://www.gnu.org/software/gdb/bugs/>.
      dFind the GDB manual and other documentation resources online at:
      d<http://www.gnu.org/software/gdb/documentation/>.
      dFor help, type "help".
      dType "apropos word" to search for commands related to "word".
      dUSING GDB VERSION: 80000, BUILD: 2017
      <90-interpreter-exec console "set target-async off"
      
      >&"show debug-file-directory\n"
      >~"The directory where separate debug symbols are searched for is \"/opt/fslc-framebuffer/2.4.3/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/debug\".\n"
      >77^done
      
      >&"set print object on\n"
      >=cmd-param-changed,param="print object",value="on"
      >78^done
      
      >&"set breakpoint pending on\n"
      >=cmd-param-changed,param="breakpoint pending",value="on"
      >79^done
      
      >&"set print elements 10000\n"
      >=cmd-param-changed,param="print elements",value="10000"
      >80^done
      
      >&"set unwindonsignal on\n"
      >=cmd-param-changed,param="unwindonsignal",value="on"
      >81^done
      
      >&"set width 0\n"
      >=cmd-param-changed,param="width",value="4294967295"
      >82^done
      
      >&"set height 0\n"
      >83^done
      
      >&"set sysroot /opt/fslc-framebuffer/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi\n"
      >=cmd-param-changed,param="sysroot",value="/opt/fslc-framebuffer/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi"
      >84^done
      
      >&"set substitute-path /usr/src /opt/fslc-framebuffer/2.4.3/sysroots/armv7at2hf-neon-fslc-linux-gnueabi/usr/src\n"
      >85^done
      
      >&"python sys.path.insert(1, '/home/michal/Qt/Tools/QtCreator/share/qtcreator/debugger/')\n"
      >86^done
      
      >&"python sys.path.append('/opt/fslc-framebuffer/2.4.3/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/data-directory/python')\n"
      >87^done
      
      >&"python from gdbbridge import *\n"
      >&"Traceback (most recent call last):\n"
      >&"  File \"/home/michal/Qt/Tools/QtCreator/share/qtcreator/debugger/dumper.py\", line 41, in <module>\n"
      >&"    import json\n"
      >&"ImportError: No module named 'json'\n"
      >&"\nDuring handling of the above exception, another exception occurred:\n\n"
      >&"Traceback (most recent call last):\n"
      >&"  File \"<string>\", line 1, in <module>\n"
      >&"  File \"/home/michal/Qt/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py\", line 39, in <module>\n"
      >&"    from dumper import DumperBase, Children, toInteger, TopLevelItem\n"
      >&"  File \"/home/michal/Qt/Tools/QtCreator/share/qtcreator/debugger/dumper.py\", line 43, in <module>\n"
      >&"    DumperBase.warn(\"Python module json not found. \"\n"
      >&"NameError: name 'DumperBase' is not defined\n"
      >&"Error while executing Python code.\n"
      >88^error,msg="Error while executing Python code."
      
      >&"python theDumper.loadDumpers({\"token\":89})\n"
      >&"Traceback (most recent call last):\n"
      >&"  File \"<string>\", line 1, in <module>\n"
      >&"NameError: name 'theDumper' is not defined\n"
      >&"Error while executing Python code.\n"
      >89^error,msg="Error while executing Python code."
      dNOTE: ENGINE SETUP FAILED
      dState changed from EngineSetupRequested(1) to EngineSetupFailed(2)
      <Debugging has failed.
      dState changed from EngineSetupFailed(2) to DebuggerFinished(17)
      

      Attachments

        1. QtCreator_log
          11 kB
          Michał Kluska

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-24004
          # Subject Branch Project Status CR V

          Activity

            People

              hjk hjk
              kluszon Michał Kluska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes