This was reported downstream as a bug in Python's curses module. See the issue there:
It seems that calling resizeterm() with some ridiculous resolution (35000x1 in the CPython issue) causes stdscr to break (i.e., a crash). A small reproducer:
#include <curses.h> // or ncurses.h
int
main(void)
{
initscr();
if (resizeterm(35000, 1) < 0) {
puts("resizeterm() failed, trying to reset");
}
wrefresh(stdscr); // Segfault!
return 0;
}
At first I thought this was an issue with stdscr getting freed, but manually resetting it with initscr() still causes use of stdscr to crash. Any ideas?
Best regards,
Peter Bierma