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

Latest LLDB under Linux doesn'r report variable values.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.13.1
    • Qt Creator 4.12.4
    • Debugger
    • None
    • Ubuntu 20.04 Intel processor, 32 GB RAM. LLVM suite compiled from github with Python support.
    • Linux/X11
    • 0e3eaec5923a2a34530809c1314aeb926eeeaf77

    Description

      With self compile of the latest LLVM/Clang/LLDB, LLDB (12.0.0) fails at a breakpoint while trying to display the current variable values. The processing wheel spins indefinitely and the following is displayed in a panel at the top of the main window:

       

      59fetchVariables({"autoderef":1,"context":"","displaystringlimit":"100","dyntype":1,"expanded":["return","watch","local","inspect"],"fancy":1,"formats":{},"nativemixed":0,"partialvar":"tooltip.695265616c426567696e","passexceptions":0,"qobjectnames":1,"stringcutoff":"10000","timestamps":0,"token":59,"typeformats":{},"watchers":[\{"exp":"695265616c426567696e","iname":"tooltip.695265616c426567696e"},\{"exp":"42544d756c74694576656e743a3a636f756e7473","iname":"watch.0"},\{"exp":"42544d756c7469576169743a3a6576656e7473","iname":"watch.1"},\{"exp":"62446f6e65","iname":"watch.2"},\{"exp":"6544656275674576656e74","iname":"watch.3"},\{"exp":"654576656e74","iname":"watch.4"},\{"exp":"6e6f77","iname":"watch.5"},\{"exp":"7374617274","iname":"watch.6"},\{"exp":"74696d6552656d61696e696e67","iname":"watch.7"}]})

      >(lldb) script theDumper.fetchVariables({"autoderef":1,"context":"","displaystringlimit":"100","dyntype":1,"expanded":["return","watch","local","inspect"],"fancy":1,"formats":{},"nativemixed":0,"partialvar":"tooltip.695265616c426567696e","passexceptions":0,"qobjectnames":1,"stringcutoff":"10000","timestamps":0,"token":59,"typeformats":{},"watchers":[\{"exp":"695265616c426567696e","iname":"tooltip.695265616c426567696e"},\{"exp":"42544d756c74694576656e743a3a636f756e7473","iname":"watch.0"},\{"exp":"42544d756c7469576169743a3a6576656e7473","iname":"watch.1"},\{"exp":"62446f6e65","iname":"watch.2"},\{"exp":"6544656275674576656e74","iname":"watch.3"},\{"exp":"654576656e74","iname":"watch.4"},\{"exp":"6e6f77","iname":"watch.5"},\{"exp":"7374617274","iname":"watch.6"},\{"exp":"74696d6552656d61696e696e67","iname":"watch.7"}]})

      >Traceback (most recent call last):

      > File "/usr/lib/python3.8/code.py", line 90, in runcode

      > exec(code, self.locals)

      > File "<input>", line 1, in <module>

      > File "/home/jim/Qt/Tools/QtCreator/share/qtcreator/debugger/lldbbridge.py", line 1202, in fetchVariables

      > self.fakeAddress = int(anySymbol.GetStartAddress())

      > File "/home/jim/llvm-12/lib/python3/dist-packages/lldb/_init.py", line 1695, in __int_

      > raise RuntimeError(self.__runtime_error_str)

      >RuntimeError: This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.

       

      Attachments

        Issue Links

          Activity

            People

              hjk hjk
              odhinnsrunes2 James Baker
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: