[New-bugs-announce] [issue35261] readline.c: PyOS_InputHook not protected against SIGWINCH

pmpp report at bugs.python.org
Thu Nov 15 16:56:03 EST 2018


New submission from pmpp <pmpp.pub at gmail.com>:

when using PyOS_InputHook from within readline module
two signals are to be handled SIGINT and SIGWINCH
SIGINT is really usefull in case hook has a problem though in some case it should be nice to prevent it too (async loop in repl background) 

but SIGWINCH is an annoyance and often lead to interpreter crash.

sample file:
 linux crash test under ubuntu bionic python 3.7.1 gcc7

more elaborated test case https://github.com/pmp-p/aioprompt

----------
components: Extension Modules
files: pih.py
messages: 329969
nosy: pmpp
priority: normal
severity: normal
status: open
title: readline.c: PyOS_InputHook not protected against SIGWINCH
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file47935/pih.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35261>
_______________________________________


More information about the New-bugs-announce mailing list