Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to crash Python in 1 easy step (python 2.2.2)

Reply
Thread Tools

How to crash Python in 1 easy step (python 2.2.2)

 
 
Jeff Epler
Guest
Posts: n/a
 
      07-16-2003
On Tue, Jul 15, 2003 at 03:55:37PM +0000, Michael Hudson wrote:
> This has almost surely got to be a readline problem. Does it happen
> in (e.g.) gdb?


It happens in bc, but not in gdb or my shell.

The traceback is endless frames of
#2094 0x4045e803 in _rl_dispatch_subseq () from /usr/lib/libreadline.so.4
#2095 0x4045e77e in _rl_dispatch () from /usr/lib/libreadline.so.4
... the same in bc or python

So does this simple C program:
#include <stdio.h>
#include <readline/readline.h>
#include <readline/history.h>

int main(void) {
char *line = readline(">>>");
if(line == NULL) return 1;
printf("The user entered %s\n", line);
free(line);
return 0;
}

It seems fairly clear that this is a readline bug. I'm not sure what
Python can do about it, if anything...

Jeff

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
"Best" way to "drive" a Python program step by step. André Python 1 09-15-2008 01:50 AM
wanted: framework for creating nice step by step graphical visualisationsof running Python code Claudio Grondi Python 2 07-02-2006 11:55 PM
Step By Step Instructions Glenallan Wireless Networking 15 12-29-2004 12:13 AM
can somebody guide me through this step by step? Taquin Noel Wireless Networking 5 12-26-2004 01:31 AM



Advertisments