Building Python 2.2 - curses module test failure

Nick Chalk nick at leviathan.uklinux.net
Tue Jan 29 15:29:51 EST 2002


I'm in the process of building Python 2.2 on a
bootstrapped Linux machine, but having problems
with the curses module.

I've asked for _curses and _curses_panel to be
built as shared objects in Modules/Setup.local,
and indeed there are no problems at compile time.
However, the curses part of the test-suite fails -
a segfault, leaving the terminal in an unusable
state.

Running the test with memory allocation checking
on - MALLOC_CHECK_=1 - reports several attempts at
free()ing invalid pointers. Cutting the test
script down to the minimum - calls to
curses.wrapper(main), curses.savetty(), and
curses.resetty() - still results in an invalid
pointer report.

I think the build and run environments are sound,
but there may be a problem as it's all my own
work. :-) I have C-based ncurses programs 
running - such as tin and vim - so I think the
libraries are working. The main version numbers
are as follows...

   kernel 2.4.16
   glibc 2.2.4
   gcc 2.95.3
   ncurses 5.2

If anyone can suggest what the problem might be,
or what other tests I could perform, I'd be most
grateful.

Nick.

-- 
Nick Chalk ........................ Radio Designer
 Confidence is failing to understand the problem.




More information about the Python-list mailing list