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 TAA22838; Thu, 11 Sep 2003 19:27:10 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA01497 for ; Thu, 11 Sep 2003 19:27:09 +0200 (MET DST) Received: from beech (beech.ucdavis.edu [128.120.141.134]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h8BHR8T13997 for ; Thu, 11 Sep 2003 19:27:08 +0200 (MET DST) Received: from ijtrotts by beech with local (Exim 3.36 #1 (Debian)) id 19xVJp-0001C6-00; Thu, 11 Sep 2003 10:33:21 -0700 Date: Thu, 11 Sep 2003 10:33:21 -0700 From: Issac Trotts To: Christophe Raffalli Cc: caml-list@inria.fr Subject: Re: [Caml-list] FreeBSD + lablglut + thread: bug or not bug Message-ID: <20030911173321.GA4359@beech> Reply-To: ijtrotts@ucdavis.edu References: <20030910185255.GF25815@ecooper.com> <3F607D6F.4010405@univ-savoie.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F607D6F.4010405@univ-savoie.fr> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; issac:01 trotts:01 ijtrotts:01 caml-list:01 lablglut:01 bug:01 bug:01 raffalli:01 glsurf:01 segv:01 3.07:01 segv:01 mainloop:01 lablglut:01 glsurf:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Sep 11, 2003 at 03:49:35PM +0200, Christophe Raffalli wrote: > 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) Thanks for your bug report. I don't have a BSD box on hand to reproduce the bug, so there isn't much I can do about this at the moment. Did Gerd Stolpmann's advice help? Issac Trotts ------------------- 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