This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: SegFault in interactive mode when cursor is over a non-ASCII
Type: Stage:
Components: None Versions: Python 2.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: hyeshik.chang, mwh, nnorwitz, theigel
Priority: normal Keywords:

Created on 2004-11-15 09:31 by theigel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (9)
msg23134 - (view) Author: theIgel (theigel) Date: 2004-11-15 09:31
I'm running python2.3.3 as shipped with Mandrake 10.0 Official. Locale is 
ru_RU (KOI8-R). When running python in intercative mode (tested in 
KDE's Konsole and Xterm), I get SegFault each time I press almost any 
key while a cyrillic character is under cursor.

Say, I type:

>>> s = 'GB> 70 G5@B'

Then I move the cursor using arrow keys somewhere to the middle of 
the string. Now if I press a letter (no matter english or russian keymap 
being active) or backspace, or maybe other keys, the interpreter 
crashes. The arrow keys themselves are working without problems.

It doesn't happen if an ASCII character is under cursor.
msg23135 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-11-15 09:37
Logged In: YES 
user_id=6656

What version of readline?  I don't think this is going to be a Python 
bug.
msg23136 - (view) Author: theIgel (theigel) Date: 2004-11-15 12:37
Logged In: YES 
user_id=1151790

How can I find out readline version?
msg23137 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-11-15 14:18
Logged In: YES 
user_id=6656

Ask Mandrake.  Mandrake is rpm-based, right?  So

rpm -q readline

should work.
msg23138 - (view) Author: theIgel (theigel) Date: 2004-11-15 14:39
Logged In: YES 
user_id=1151790

libreadline4-4.3-7mdk

So it's 4.3

But if it were a readline bug, wouldn't it mean it should appear in other console 
applications? It doesn't, at least in shell.
msg23139 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-11-16 08:40
Logged In: YES 
user_id=6656

Hrm.  Maybe it's not a readline bug then.

OTOH, I've not heard of a Python bug like this either.  Do you 
know how to use gdb?

(It's possible that bash uses its own version of readline).
msg23140 - (view) Author: Hyeshik Chang (hyeshik.chang) * (Python committer) Date: 2004-11-16 14:36
Logged In: YES 
user_id=55188

It seems to work for me for same input on ru_RU.KOI8-R locale.
My terminal app is gnome-terminal and tested platforms are:
- FreeBSD 5.3 with readline 4.3
- Debian stable with readline 4.2a
- Debian testing with readline 4.3
msg23141 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-12-19 05:10
Logged In: YES 
user_id=33168

Is this still a problem?  Can anyone reproduce?  If we don't
hear back within a month, this should be closed.
msg23142 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-01-09 05:37
Logged In: YES 
user_id=33168

Close enough to a month.  Closing due to lack of
information/repeatability.
History
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41173
2004-11-15 09:31:34theigelcreate