[Python-bugs-list] [ python-Bugs-754455 ] sigwinch crashes python with curses
SourceForge.net
noreply@sourceforge.net
Sat, 14 Jun 2003 03:51:25 -0700
Bugs item #754455, was opened at 2003-06-14 10:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=754455&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: sigwinch crashes python with curses
Initial Comment:
[forwarded from http://bugs.debian.org/178205]
I'm not able to reproduce this bug in current 2.1/2.2.
In 2.3 CVS 20030614, changing the window size of an
xterm results in the crash
The following code crashes. It does not occur when
getkey () is not used.
# Crash python
import curses, signal, time, sys
def sigwinch (signum, frame): return
win = curses.initscr ()
signal.signal(signal.SIGWINCH, sigwinch)
while 1: win.getkey ()
curses.endwin ()
Traceback (most recent call last):
File "curs.py", line 9, in ?
while 1: win.getkey ()
_curses.error: no input
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=754455&group_id=5470