When I try to run example HOpenGL programs from http://www.tfh-berlin.de/~panitz/hopengl/examples/klassen.html, they exit with segfault. Reproducible: Always Steps to Reproduce: 1. Download http://www.tfh-berlin.de/~panitz/hopengl/examples/src/APolygon.hs 2. ghc --make APolygon -o APolygon 3. ./APolygon Actual Results: Segmentation fault Expected Results: Run APolygon :) (It works with ghc 6 on my Solaris box at work) The program crashes in glClear(). Tracebacks are irrelevant with ghc so I'm not including one. emerge --info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline arts tetex aalib svga tcltk java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla scanner bidi dnd doc dvd emacs faad fbcon gtk2 gtkhtml imap javascript lcms matroska mozaccess mozcalendar mozinterfaceinfo mozp3p mozsvg mozxmlterm mule pda samba sqlite sse stroke tiff transcode type1 usb v4l wmf X509 xml xvid"
I will try to have a look at this -- however, I do not have much experience with HOpenGL myself. Do you have any idea what might be causing this, i.e. if it has something to do with the Gentoo ebuild or might be a general problem with the Linux version of GHC?
Dou you have the same problem with GHC 6.2? ks
I have not heard anything, and it seems to work for others, so I am closing this for now. Please reopen the bug if you still experience problems.