Bug 1200228

Summary: ipython crash on tab completion
Product: [openSUSE] openSUSE Distribution Reporter: Alexander Krupp <obs>
Component: OtherAssignee: Steve Kowalik <steven.kowalik>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mcepl, steven.kowalik
Version: Leap 15.4   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Leap 15.4   
See Also: http://bugzilla.opensuse.org/show_bug.cgi?id=1195830
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: ipython crash report
crash also with other modules, e.g. time

Description Alexander Krupp 2022-06-04 09:21:40 UTC
Created attachment 859433 [details]
ipython crash report

Shortest reproduction I could find:

1) Start ipython
2) import turtle
3) turtle.<tab><backspace><enter>

On pressing <tab> the screen scrolls upwards by a couple of lines with no visible content after a short delay.

I don't know whether this is related to bug #1195830 still. There, ipython 7.16.3 was suggested, but only 7.16.1 is in place, currently.

Packages in place:
python3-jedi-0.18.0-bp154.1.40.noarch
python3-ipython-7.16.1-bp154.1.67.noarch

Crash report attached.
Comment 1 Alexander Krupp 2022-06-13 12:08:09 UTC
Created attachment 859555 [details]
crash also with other modules, e.g. time

The crash is not restricted to "turtle".

Shortest reproduction I can demonstrate so far:

ipython
import time
time.<tab><bs>.<tab><tab><cr><cr>
Comment 2 Alexander Krupp 2022-06-13 12:16:16 UTC
A more common set of keystrokes to fail:

----
ipython
import time
time.<tab><down><cr><cr>
time.<tab><cr><cr>
----

First tab completion works, the second tab completion fails. The last <cr> causes ipython to crash.
Comment 3 Matej Cepl 2022-07-01 09:13:49 UTC
Why is this not a duplicate of bug 1195830?
Comment 4 Alexander Krupp 2022-07-01 15:37:14 UTC
If I may comment on comment #3: 

I did not reopen the previous bug, because reproduction of bug 1195830 is not possible anymore: the keystrokes leading to the bug are slightly different, although the outcome seems quite similar.

However, I do not know whether bug 1195830 was resolved properly, because the currently distributed ipython is 7.16.0 instead of 7.16.3 as suggested by Benjamin Greiner in bug 1195830, comment 1, so it may be worth reopening. 

The decision is beyond my expertise in this project, though.
Comment 5 Alexander Krupp 2022-07-01 16:14:33 UTC
a little correction: ipython 7.16.1 is currently distributed with 15.4
Comment 6 Steve Kowalik 2022-07-04 02:40:39 UTC
I have been investigating this, but upgrading ipython also impacts jedi, so I'm still trying to determine how best to proceed.
Comment 7 Steve Kowalik 2022-07-07 06:22:27 UTC
7.16.1 and 7.16.2 are identical, according to upstream. Upgrading to 7.16.3 is effectively pointless, it only fixes a CVE that we added a patch for. 7.17 and above added support for jedi >= 0.18, *but* also removed support for Python 3.6.
Comment 8 OBSbugzilla Bot 2022-07-12 04:40:03 UTC
This is an autogenerated message for OBS integration:
This bug (1200228) was mentioned in
https://build.opensuse.org/request/show/988520 Backports:SLE-15-SP4 / python-ipython
Comment 9 Swamp Workflow Management 2022-07-27 13:17:44 UTC
openSUSE-RU-2022:10069-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1200228
CVE References: 
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP4 (src):    python-ipython-7.16.1-bp154.2.3.3, python-ipython-test-7.16.1-bp154.2.3.3
Comment 10 Alexander Krupp 2022-07-27 15:34:15 UTC
Updated just now, tested, and the issue seems to be fixed.
Comment 11 Steve Kowalik 2022-07-28 06:11:04 UTC
That is lovely to hear, thanks. I shall close this issue.