[issue7384] curses crash on FreeBSD

Stefan Krah report at bugs.python.org
Fri Apr 16 11:38:02 CEST 2010

Stefan Krah <stefan-usenet at bytereef.org> added the comment:

Valgrind can be installed by:

cd /usr/ports/devel/valgrind && make install

Then you can do (curses_test.py is your short test program):

1) valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python curses_test.py

2) valgrind --suppressions=Misc/valgrind-python.supp ./python curses_test.py

Valgrind finds invalid writes. The problem with 1) is that the
terminal is in an unusable state, so controlling gdb isn't possible.

The best thing is probably to use 2) and wade through the unformatted
output starting here:

 ==12043== Invalid write of size 8
 ==12043==    at 0x27A71B7: getwin (in/li /libncursesw.so.8)                                                                             ==12043==    by 0x2A3EAAB: PyCurses_GetWin (_cursesmodule.c:1902)
       ==12043==    by 0x4573FB: PyEval_EvalFrameEx (ceval.c:3833)
                                                                  ==12043==    by 0x457DF9: PyEval_EvalCodeEx (ceval.c:3282)

(I don't have time to do that right now, I might do it later.)

nosy: +skrah

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list