Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11762 - Python segfaults when using latin-1 chars in interactive mode
Summary: Python segfaults when using latin-1 chars in interactive mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Jon Portnoy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-08 06:28 UTC by Tobias Klausmann (RETIRED)
Modified: 2003-03-02 10:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Klausmann (RETIRED) gentoo-dev 2002-12-08 06:28:19 UTC
When using chars like "
Comment 1 Tobias Klausmann (RETIRED) gentoo-dev 2002-12-08 06:28:19 UTC
When using chars like "ä" in Python interactive mode (just starting the
interpreter), refetching them from cmd history and editing those lines in a way
that "moves" the latin-1 characters around, the interpreter segfaults:

python
Python 2.2.2 (#1, Dec  8 2002, 13:02:08) 
[GCC 3.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "one twothree ä"
one twothree ä
>>> print "one twothreeSegmentation fault

On that last line, I just pressed cursor-up and tried to remove the space in
front of the "ä". I guess this problem is somehow between Python and ReadLine.

If need be, I can supply a gdb backtrace.

python-2.2.2
gcc-3.2.1
glibc-2.3.1-r2
readline-4.3-r3
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2002-12-08 11:25:26 UTC
I just reproduced this. It doesn't occur when using LANG=en_US, but occurs with
LANG=POSIX and LANG=C (possibly others?)

A gdb backtrace may be useful - I'm going to contact the upstream developer.
Comment 3 Jon Portnoy (RETIRED) gentoo-dev 2002-12-08 12:10:09 UTC
Tracked this down to readline 4.3. I'll do some more digging.
Comment 4 Jon Portnoy (RETIRED) gentoo-dev 2002-12-09 09:42:27 UTC
Should be fixed now, grab readline-4.3-r4 out of the portage tree after it
propogates. Added a patch from the upstream developer for readline. Works for
me, but if that doesn't fix it for you, let me know.
Comment 5 Tobias Klausmann (RETIRED) gentoo-dev 2002-12-09 10:08:13 UTC
works for me, no recompile of Python necessary.
thx!
Comment 6 Joachim Blaabjerg (RETIRED) gentoo-dev 2003-03-02 10:21:35 UTC
Hm, I have this very same problem with readline-4.3-r4 and bash. It's quite 
annoying, as I can't rename files with international characters in them without 
getting a segfault from bash. I'll do some digging and submit a new bug report.