Bug 1356140

Summary: Typing produces unicode character literals
Product: [Fedora] Fedora Reporter: Nathaniel McCallum <npmccallum>
Component: lldbAssignee: Dave Airlie <airlied>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: adolforanea, airlied, davejohansen, evangelos, gabrielschulhof, hershal.bhave, jan.kratochvil, jv+fedora, sebastien, tstellar, vashirov
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://bugs.llvm.org/show_bug.cgi?id=28898
Whiteboard:
Fixed In Version: lldb-3.8.0-3.fc25 lldb-3.8.0-3.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1479523 (view as bug list) Environment:
Last Closed: 2017-12-05 04:40:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1479523    
Attachments:
Description Flags
.spec + upstream patch as a patch none

Description Nathaniel McCallum 2016-07-13 13:16:44 UTC
$ lldb
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/lldb/embedded_interpreter.py", line 22, in <module>
    readline.parse_and_bind('bind ^I rl_complete')
AttributeError: 'module' object has no attribute 'parse_and_bind'
(lldb) \U+BD71\U+BD75\U+BD69\U+BD74
error: empty command

That is me attempting to type "quit" and hit enter. Since you can't type anything, the debugger is useless. You can't even exit without killing it.

The python traceback is caused by a local module named "readline" which conflicts with the global readline module. Even when fixing this issue, typing still doesn't work. I haven't researched further.

Comment 1 Jan Kurik 2016-07-26 04:02:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 2 Gabriel Schulhof 2016-09-27 08:39:07 UTC
This is also happening on 24.

I'm more interested in fixing the python crash, because I'm not seeing any Unicode characters when I type - though I can see how a messed-up readline library can cause that.

Comment 3 Nathaniel McCallum 2016-10-13 15:23:19 UTC
This is still occurring in rawhide.

Comment 4 Viktor Ashirov 2016-11-04 09:02:17 UTC
Upstream bug: https://llvm.org/bugs/show_bug.cgi?id=28898
Arch linux bug and discussion: https://bugs.archlinux.org/task/49974

I've disabled libedit (-DLLDB_DISABLE_LIBEDIT:BOOL=ON) and it solved this issue for me.

Comment 5 Fedora Update System 2016-11-14 21:31:26 UTC
lldb-3.8.0-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-55e0ee7ec1

Comment 6 Fedora Update System 2016-11-14 21:31:37 UTC
lldb-3.8.0-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c62e6cb739

Comment 7 Fedora Update System 2016-11-15 13:28:07 UTC
lldb-3.8.0-3.fc25 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-2016-55e0ee7ec1

Comment 8 Fedora Update System 2016-11-16 10:24:28 UTC
lldb-3.8.0-3.fc24 has been pushed to the Fedora 24 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-2016-c62e6cb739

Comment 9 Fedora Update System 2017-01-05 20:20:56 UTC
lldb-3.8.0-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2017-01-06 04:03:53 UTC
lldb-3.8.0-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Adolfo 2017-01-15 20:44:22 UTC
Problem still persists in lldb-3.8.0-3.fc25.


[root@dell-m3800]# dnf install lldb
Última comprobación de caducidad de metadatos hecha hace 2:03:54, el Sun Jan 15 19:38:59 2017.
El paquete lldb-3.8.0-3.fc25.x86_64 ya se encuentra instalado, omitiendo.
Dependencias resueltas.
Nada por hacer.
¡Listo!


[root@dell-m3800]# lldb -v
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'
lldb version 3.8.0 ( revision )

Comment 12 Hershal Bhave 2017-01-26 04:37:41 UTC
I'm also getting this issue with Fedora 24:

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'
lldb version 3.8.0 ( revision )

Comment 13 Jan Kratochvil 2017-07-11 20:53:32 UTC
Created attachment 1296467 [details]
.spec + upstream patch as a patch

Upstream has fixed it but it is post-4.0.1 so providing a backport:
https://bugs.llvm.org/show_bug.cgi?id=28898

Comment 14 Jan Kurik 2017-08-15 09:19:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 15 Tom Stellard 2017-12-05 04:40:14 UTC
The has been fixed in f26+.