|
From: | Thomas Dickey |
Subject: | Re: Segmentation fault when calling redrawwin on a fresh window |
Date: | Fri, 12 Oct 2007 07:45:35 -0400 (EDT) |
On Fri, 12 Oct 2007, Thorben Krueger wrote:
I had the python ncurses module segfaulting on me, see http://bugs.python.org/issue1266. I use python 2.5.1, which is built against ncurses version 5.6-r1 (or so). ncurses5-config --version gives me 5.6.20061217. The seems to effect older versions, too. Python 2.4 on the slightly more conservative debian machine of a friend crashes too, but now someone has posted a c-script to show that the bug seems to lie with ncurses. For your convenience, I post it below: #include <curses.h> int main(int argc, char**argv) { WINDOW *win = initscr(); WINDOW *win2 = newwin(50, 50, 50, 50);
this is probabyl returning a null pointer, since
redrawwin(win2);
this is using the 'win' parameter before checking it.
return 0; } hope it helped. thorben _______________________________________________ Bug-ncurses mailing list address@hidden http://lists.gnu.org/mailman/listinfo/bug-ncurses
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |