I tracked down my issue to the following point. If I run my app by itself it works fine. However if I
chroot it, it seems to work fine until the current game ends and then it core dumps calling the
refresh() function. Can someone give me some pointers on what the
refresh() function might be needing that is not in the
I have this code calling it:
move(My_pos.y, My_pos.x); printw("AARRrrgghhhh...."); move(My_pos.y+1, My_pos.x); /* ZZZ */ printw("before refresh"); /* ZZZ */ refresh(); move(My_pos.y+1, My_pos.x); /* ZZZ */ printw("done with refresh"); /* ZZZ */
The ZZZ lines are what proves the error - the "before refresh" works either way, but the "done with refresh" only occurs in the non-chroot call. In the chroot it core dumps...