From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA16267; Thu, 11 Sep 2003 15:48:40 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA23841 for ; Thu, 11 Sep 2003 15:48:39 +0200 (MET DST) Received: from post.bourget.univ-savoie.fr (post.bourget.univ-savoie.fr [193.48.120.73]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8BDmcf12344; Thu, 11 Sep 2003 15:48:39 +0200 (MET DST) Received: from univ-savoie.fr (d85.lama.univ-savoie.fr [193.48.123.85]) by post.bourget.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id h8BDnMno023353 ; Thu, 11 Sep 2003 15:49:22 +0200 Message-ID: <3F607D6F.4010405@univ-savoie.fr> Date: Thu, 11 Sep 2003 15:49:35 +0200 From: Christophe Raffalli User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030324 X-Accept-Language: en-us, en MIME-Version: 1.0 CC: caml-list@inria.fr Subject: [Caml-list] FreeBSD + lablglut + thread: bug or not bug References: <20030910185255.GF25815@ecooper.com> In-Reply-To: <20030910185255.GF25815@ecooper.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; raffalli:01 raffalli:01 univ-savoie:01 lablglut:01 bug:01 bug:01 glsurf:01 segv:01 3.07:01 segv:01 mainloop:01 lablglut:01 glsurf:01 lablgl:01 argv:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Her is a small file (simplified from GlSurf) that SEGV on FreeBSD 4.3 (with NVidia driver ...) and ocaml-3.07beta2 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