Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] help. possible lablgl problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: paddym@m...
Subject: [Caml-list] Re: help. possible lablgl problem

> Hi,
>   I was trying to install lablgl and I attempted to run the demos but
> all I got
> was a segmentation fault.  I am running Mandrake 8.0 with ocaml-3.04. 
> First I
> just used the default installation of GL that came with mandrake, which
> is
> admittedly confusing. was came from Mesa-common-devel-3.4.1
> but
> came from XFree86-devel and the actual library
> came from
> XFree86-libs.  Thinking that GL was most likely my problem, I
> installed
> Mesa-4.0.1 in a different install directory and then rebuilt lablGL. 
> After that
> didn't work, I tried inputting the lines of the ml directly into the
> interpreter.  I discovered that:
> open Tk;;
> let top = openTk ();;
> caused a segmentation fault (without leaving a core file), yet these
> same lines
> worked fine in labltk.  Now it could still be a problem with my GL, I
> guess, but
> I don't know how to figure out what is wrong.  Any suggestions would
> be
> appreciated.  Thanks.
> Patrick
> -----------------------------------------------------------------
> Get your own free mailbox at MailStop9!

I tried also installing ocaml from the mandrake rpm.  I then stripped out the
#!/usr/bin/ocamlrun from the lablgltop and ran gdb ocamlrun.  Then I passed the
file name finallablgltop (which was my edited version) and basically ran the
same stuff in gdb.  This is what I got:
/recentfiles/lablGL-0.97 gdb ocamlrun
GNU gdb 5.0mdk-11mdk Linux-Mandrake 8.0
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-mandrake-linux"...
(gdb) run finallablgltop -I /usr/lib/ocaml/lablGL -I /usr/lib/ocaml/labltk
Starting program: /usr/bin/ocamlrun finallablgltop -I /usr/lib/ocaml/lablGL -I
[New Thread 1024 (LWP 11447)]
        Objective Caml version 3.04

# open Tk;;
# let top = openTk ();;

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11447)]
__pthread_unlock (lock=0xbfffe650) at spinlock.c:179
179     spinlock.c: No such file or directory.
        in spinlock.c

Not sure if the spinlock error is gdb or what, but I thought I'd update the problem.


Get your own free mailbox at MailStop9!
Bug reports:  FAQ:
To unsubscribe, mail  Archives: