[qforeign] CursesTest segfaults

Jens Petersen petersen@redhat.com
04 Dec 2001 18:27:01 +0900

"Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl> writes:

> 29 Nov 2001 18:12:08 +0900, Jens Petersen <juhp@01.246.ne.jp> pisze:
> > I built qforeign from cvs under Linux.  Any idea why
> > tests/CursesTest segfaults?
> No idea - works for me now.

> ghc-5.03
> glibc-2.2.3

These are the only differences then.  Well I'm using Red Hat
Linux on ia32.

> ncurses-5.2

sorry, I have that too.

> gmp-3.1.1
> readline-4.2

same here.

Any advice on how I can debug the problem further.  A gdb
backtrace seems to say that it gets stuck in a loop in
attr_set in libncurses.so.5.  Indeed my own debugging of
CursesTest.hsc told me that it segfaults during the attrSet

How to proceed from here.  Linking with a debug version of