This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akuchling
Recipients akuchling, mark.dickinson, r.david.murray
Date 2010-04-15.21:49:52
SpamBayes Score 0.00011472819
Marked as misclassified No
Message-id <1271368194.13.0.109717646953.issue7384@psf.upfronthosting.co.za>
In-reply-to
Content
Could I get a login on the buildbot to make a fix?

I bet the problem is with the stdscr object.  PyCurses_InitScr()
does 'return (PyObject *)PyCursesWindow_New(stdscr);'.

PyCursesWindow_Dealloc() does:
  if (wo->win != stdscr) delwin(wo->win);

I bet FreeBSD is clearing contents of the stdscr global variable.  The condition in PyCursesWindow_Dealloc() is then true, and it tries to delwin() the old value, which is in wo->win.

One fix might be to keep a reference to that PyCursesWindow object holding stdscr, and change dealloc to 'if (wo != saved_stdscr_object)'.  Or maybe, since multiple calls to initscr() will create multiple window objects holding the value of stdscr, window objects should have a 'do_not_delwin' flag.
History
Date User Action Args
2010-04-15 21:49:54akuchlingsetrecipients: + akuchling, mark.dickinson, r.david.murray
2010-04-15 21:49:54akuchlingsetmessageid: <1271368194.13.0.109717646953.issue7384@psf.upfronthosting.co.za>
2010-04-15 21:49:52akuchlinglinkissue7384 messages
2010-04-15 21:49:52akuchlingcreate