Bug 1452689 - Debugging with LLDB hangs
Summary: Debugging with LLDB hangs
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: qt-creator
Version: 25
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Itamar Reis Peixoto
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-19 13:24 UTC by Gavin Rosenbush
Modified: 2017-05-20 21:02 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-20 21:02:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to qt-creator.spec to require python-lldb (343 bytes, patch)
2017-05-19 13:24 UTC, Gavin Rosenbush
no flags Details | Diff

Description Gavin Rosenbush 2017-05-19 13:24:14 UTC
Created attachment 1280420 [details]
Patch to qt-creator.spec to require python-lldb

Description of problem:
Debugging won't start if LLDB is used as the debugger.

Version-Release number of selected component (if applicable):
4.1.0-2.fc25.2 
The bug may be present in other Fedora versions. I've only tested with 25.

How reproducible: Always

Steps to Reproduce:
1. Create a project and set debugger to LLDB 
2. Start debugging

Actual results:
"Debugging starts" is displayed, but the process to be debugged is not launched and no further feedback is given, unless you view the debugger log, where you see the following:

ERROR: Lldb stderr: Traceback (most recent call last):
  File "<string>", line 1, in <module>

ERROR: Lldb stderr: ImportError: No module named lldb.embedded_interpreter
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined

ERROR: Lldb stderr: error: python failed attempting to evaluate 'print('@\nlldbstartupok@\n')'

Expected results:
Debugging begins successfully.

Additional info:
The solution is to install package 'python-lldb'. Attaching a proposed (untested) patch to qt-creator.spec.

Comment 1 Sandro Mani 2017-05-20 21:02:57 UTC
Hmm not sure here. LLDB itself isn't a dependency of qt-creator, and indeed the same way qt-creator doesn't require a specific compiler, it should also not require a specific debugger. The user is free to install LLDB if he wishes to use it, that also python-lldb is required is something I'm afraid we cannot control with the qt-creator packaging.

Closing as NOTABUG; feel free to reopen if you have another opinion.


Note You need to log in before you can comment on or make changes to this bug.