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

Michael Hudson mwh at python.net
Tue Jul 15 11:55:37 EDT 2003


gavriep at yahoo.com (Gavrie Philipson) writes:

> pwmiller1 at adelphia.net (Paul Miller) wrote in message news:<2e363c08.0307130944.4c470bc3 at posting.google.com>...
> > I'm not sure if this is a python bug or a bug in an associated
> > library, and I'm not even sure how to correctly report it, but here is
> >   Anytime python is accepting keyboard input, whether it's with
> > raw_input, or sitting on the command line waiting for the user to type
> > code, you can crash python by holding ctrl+shift and then pressing
> > enter.
> > 
> > This is on a RedHat 9.0 system running on an Athlon 600.  Basically
> > everything about the system is standard except for what's been updated
> > by RedHat itself.  If anyone who has the time and ability to track
> > down this bug needs more information, please email me.
> 
> I'm seeing the same effect on RH9, using KDE's "konsole" terminal
> emulator.
> When pressing Ctrl-Shift-Enter, it actually sends the ^[OM characters
> (Escape, O, M).
> Manually sending the key sequence Esc-O-something also crashes Python.
> 
> Why this happens is still a good question...

This has almost surely got to be a readline problem.  Does it happen
in (e.g.) gdb?

Cheers,
mwh

PS: pressing ctrl-\ also crashes Python...
PPS: unless you've been mucking with stty -- 'stty quit i' makes for
     an abbreviated python programming experience :-)

-- 
  well, take it from an old hand: the only reason it would be easier
  to program in C is that you can't easily express complex problems
  in C, so you don't.                   -- Erik Naggum, comp.lang.lisp




More information about the Python-list mailing list