Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] suggestion for record pattern matching and construction
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe Raffalli <Christophe.Raffalli@u...>
Subject: Re: [Caml-list] FreeBSD + lablglut + thread: bug or not bug
Christophe Raffalli wrote:
> Her is a small file (simplified from GlSurf)
> that SEGV on FreeBSD 4.3 (with NVidia driver ...) and ocaml-3.07beta2

FreeBSD 4.8 not 4.3 !!

> If you remove the line with thread.yeld it does not SEGV. note:
> thread.yeld is not called since Glut.mainLoop is not started, so I am
>  puzzled.
> 
> Note: all the examples in lablglut distributions appear to work on my 
> FreeBSD box and the same program (GlSurf) works on Linux, windows and OSX.
> 
> So there is a problem when you use FreeBSD+lablGL/GLUT+thread (you need 
> the three of them)
> 
> Here is the file:
> 
> -- test.ml
> 
>     ignore(Glut.init Sys.argv);
>     Glut.initDisplayMode ~alpha:true ~double_buffer:true ~depth:true () ;
>     Glut.initWindowSize ~w:300 ~h:300;
>     ignore (Glut.createWindow ~title:"bug demo");
>     Glut.idleFunc (Some Thread.yield);
>     print_string "titi";
>     print_newline ()
> 
> -- 
> 
> And the line used to compile it
> 
> ocamlc -o testbug functionstubs.o -thread -labels -I +lablglut -I 
> +lablGL -I +threads -pp "camlp4o pa_ifdef.cmo -DUNIX" -thread unix.cma 
> threads.cma lablglut.cma lablgl.cma -cclib -lGL -cclib -lGLU -cclib 
> -lXmu test.ml
> bash-2.05b$ ./testbug
> Segmentation fault (core dumped)
> 

-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature
---------------------------------------------

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners