[issue7384] curses crash on FreeBSD
report at bugs.python.org
Thu Apr 15 18:51:15 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
I'm looking at this again, after installing FreeBSD 8.0/amd64 in a VM.
I've reduced Lib/test/test_curses.py to the following 9 lines:
f = open('mytempfile', 'w+b')
stdscr = curses.initscr()
I then get:
$ ./python Lib/test/regrtest.py test_curses
Bus error (core dumped)
>From looking at the core dump, and tracing through with gdb, the core dump occurs when delwin is called (from PyCursesWindow_Dealloc) on the result of curses.getwin(f), as a result of garbage collection.
The 'import rlcompleter' line appears to be necessary to cause this; I've no idea why.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list