[Python-Dev] FreeBSD test suite failure -> curses

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Sun Mar 9 22:02:10 CET 2008


-On [20080309 20:23], "Martin v. Löwis" (martin at v.loewis.de) wrote:
>If it's similar on FreeBSD, the only reason why this
>could break is that newscr is NULL.

This is what I get:

  do {
      if(newscr->_leaveok)
          (y) = (x) = -1;
      else
          ((y) = ((newscr) ? (newscr)->_cury : (-1)),
	   (x) = ((newscr) ? (newscr)->_curx : (-1)));
  } while(0);

ncurses 5.6

In the same stack frame:

(gdb) print newscr
$1 = (WINDOW *) 0x0

So it seems that the newscr variable is indeed a NULL.

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
Let us eat and drink; for tomorrow we shall die...


More information about the Python-Dev mailing list