[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Bug report: Unwanted output on stdout from rl_initial
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] Bug report: Unwanted output on stdout from rl_initialize() |
Date: |
Sat, 18 Aug 2007 22:05:04 -0400 |
User-agent: |
Thunderbird 2.0.0.6 (Macintosh/20070728) |
Glen Coates wrote:
> By recompiling python, I managed to trace the output to rl_initialize():
>
> <test.c>
>
> #include <stdio.h>
> #include <readline/readline.h>
> #include <readline/history.h>
>
> int main()
> {
> rl_initialize();
> printf( "hello\n" );
> return 0;
> }
>
> $ ./test | od -tc
> 0000000 033 [ ? 1 0 3 4 h h e l l o \n
>
> I'm using the readline library shipped with Fedora 7 (readline-5.2-4.fc7
> ). I have never seen this in previous versions of Fedora.
>
> Could you please confirm whether or not this is a bug in readline, or
> rl_initialize() is being used incorrectly and thus a bug report should
> be made to the Python project?
I can't reproduce the problem with my environment, but the string
preceding the `hello' looks a lot like a terminal escape sequence.
Since you've distilled the problem case to a short program, you should
be able to run that under gdb, set a breakpoint in `write', wait for it
to be hit, and get a stack backtrace with `where'. If you hit the
breakpoint before you're writing the `hello', send me the backtrace
and I'll take a look.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/