Nasty nasty panic. I am starting to think it's in the curses subsystem itself.