Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32905 - HOpenGL programs compiled with ghc 6.0.1 crash.
Summary: HOpenGL programs compiled with ghc 6.0.1 crash.
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Andres Loeh (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-06 13:55 UTC by Anatoli Tubman
Modified: 2004-04-01 13:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoli Tubman 2003-11-06 13:55:51 UTC
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"
Comment 1 Andres Loeh (RETIRED) gentoo-dev 2003-11-10 02:31:44 UTC
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?

Comment 2 Andres Loeh (RETIRED) gentoo-dev 2004-01-05 14:01:49 UTC
Dou you have the same problem with GHC 6.2?

ks
Comment 3 Andres Loeh (RETIRED) gentoo-dev 2004-04-01 13:29:50 UTC
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.