Bug 1433463 - lldb scripting support gives errors
Summary: lldb scripting support gives errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lldb
Version: 25
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1417371
TreeView+ depends on / blocked
 
Reported: 2017-03-17 17:05 UTC by Peter Hull
Modified: 2017-03-31 02:22 UTC (History)
3 users (show)

Fixed In Version: lldb-3.9.1-1.fc25.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-31 02:22:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
CTRL-D does not close the python session within lldb (80.31 KB, image/jpeg)
2017-03-23 12:21 UTC, Peter Hull
no flags Details

Description Peter Hull 2017-03-17 17:05:37 UTC
Description of problem:
lldb script support gives errors

Version-Release number of selected component (if applicable):
lldb 3.9.1

How reproducible:
Always

Steps to Reproduce:
1. Start lldb from command line
2. Type 'script' at the (lldb) prompt
3. Console prints a lot of errors.

Actual results:
Errors appear (see below)

Expected results:
Scripting is initialised

Additional info:
[peter@dell-fedora rj98]$ lldb
(lldb) script
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/lldb/embedded_interpreter.py", line 24, in <module>
    readline.parse_and_bind('tab: complete')
AttributeError: 'module' object has no attribute 'parse_and_bind'
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
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_python_interpreter' is not defined

Comment 1 Tom Stellard 2017-03-17 20:00:15 UTC

*** This bug has been marked as a duplicate of bug 1417371 ***

Comment 2 Tom Stellard 2017-03-17 20:03:23 UTC
Re-opening, since bug 1417371 has other failures.

Comment 3 Fedora Update System 2017-03-18 00:59:18 UTC
lldb-3.9.1-1.fc25.1 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-cae6181290

Comment 4 Peter Hull 2017-03-18 09:26:10 UTC
I would be delighted to test the update but am not sure how to. I followed the instructions and tried:
sudo dnf update lldb  --enable-repo=updates-testing
But this says 'Nothing to do.' How can I test it?

Comment 5 Fedora Update System 2017-03-19 02:22:36 UTC
lldb-3.9.1-1.fc25.1 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-cae6181290

Comment 6 Peter Hull 2017-03-20 08:51:32 UTC
OK, got it. I was missing: (1) Patience! (2) Need to upgrade python-lldb as well as lldb.
That seems to have fixed my issues, thanks.

Comment 7 Fedora Update System 2017-03-22 09:22:14 UTC
lldb-3.9.1-1.fc25.2 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-4ed6584beb

Comment 8 Fedora Update System 2017-03-22 20:22:46 UTC
lldb-3.9.1-1.fc25.2 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-4ed6584beb

Comment 9 Peter Hull 2017-03-23 12:16:01 UTC
Recent update lldb-3.9.1-1.fc25.2 seems to fix this issue, however I also noticed that ^D does not cause the internal python session to exit. Not sure if this is also readline related or if it is a separate problem. Please advise.

Comment 10 Peter Hull 2017-03-23 12:21:13 UTC
Created attachment 1265731 [details]
CTRL-D does not close the python session within lldb

Comment 11 Fedora Update System 2017-03-31 02:22:17 UTC
lldb-3.9.1-1.fc25.2 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


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