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 RAA31592; Thu, 11 Sep 2003 17:24:04 +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 RAA23683 for ; Thu, 11 Sep 2003 17:24:03 +0200 (MET DST) Received: from mail.npc.de (fw.npc.de [62.225.140.214]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8BFO2f20736 for ; Thu, 11 Sep 2003 17:24:02 +0200 (MET DST) Received: from styx.ffm.npc.de (lion.npc.de [192.168.129.1]) by mail.npc.de (Postfix) with ESMTP id D637615B7; Thu, 11 Sep 2003 17:24:01 +0200 (CEST) Received: from hera.ffm.npc.de (hera.ffm.npc.de [192.168.130.8]) by styx.ffm.npc.de (Postfix STYX NPC GmbH) with ESMTP id E4C7A78E0; Thu, 11 Sep 2003 17:24:00 +0200 (CEST) Received: from ares.ffm.npc.de (ares.ffm.npc.de [192.168.130.32]) by hera.ffm.npc.de (Postfix HERA NPC GmbH) with ESMTP id 72EE0159C3; Thu, 11 Sep 2003 17:24:00 +0200 (CEST) Received: from ares.ffm.npc.de (ares.ffm.npc.de [192.168.130.32]) by ares.ffm.npc.de (Postfix ARES NPC GmbH) with ESMTP id 3FF18183C; Thu, 11 Sep 2003 17:24:00 +0200 (CEST) Subject: Re: [Caml-list] FreeBSD + lablglut + thread: bug or not bug From: Gerd Stolpmann To: Christophe Raffalli Cc: caml-list@inria.fr In-Reply-To: <3F6090B7.2090801@univ-savoie.fr> References: <20030910185255.GF25815@ecooper.com> <3F607D6F.4010405@univ-savoie.fr> <1063290613.18964.3.camel@ares> <3F6090B7.2090801@univ-savoie.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.8 Date: 11 Sep 2003 17:23:59 +0200 Message-Id: <1063293840.18964.24.camel@ares> Mime-Version: 1.0 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 lablglut:01 bug:01 bug:01 gerd:01 stolpmann:01 raffalli:01 glsurf:01 glsurf:01 crashes:01 -thread:01 threads:01 o'caml's:01 gerd:01 stolpmann:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Am Don, 2003-09-11 um 17.11 schrieb Christophe Raffalli: > Complement: >=20 > GlSurf 2.0 that uses no thread works on my BSD Box (so it is not a=20 > problem with the NVidia driver for FreeBSD) >=20 > GlSurf 2.1 also crashes with vmthread ... but a bit later and this is=20 > more difficult to reproduce . (I can send the source if you want, but it=20 > is not ready for distribution) >=20 > I know that NVidia driver are not thread safe, but only yhe main thread=20 > does openGL call and it works for Linux. Well, it does not depend on whether you give the -thread or -vmthread=20 option, because the executable is always linked against libc_r. I ran into problems with an application that did not use threads at all. You can try to disable the link against libc_r by modifying O'Caml's configure script, and then use -vmthread to select the bytecode implementation. If the program works then, it is very likely that libc_r is broken. > Gerd Stolpmann wrote: > > Am Don, 2003-09-11 um 15.49 schrieb Christophe Raffalli: > >=20 > >>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=20 > >>FreeBSD box and the same program (GlSurf) works on Linux, windows and O= SX. > >> > >>So there is a problem when you use FreeBSD+lablGL/GLUT+thread (you need= =20 > >>the three of them) > >=20 > >=20 > > Maybe another incarnation of this (non-)bug: > >=20 > > http://caml.inria.fr/bin/caml-bugs/not%20a%20bug?id=3D1820;page=3D47;us= er=3Dguest > >=20 > > It seems that FreeBSD's libc_r is not stable enough. > >=20 > > Gerd >=20 > --=20 > Christophe Raffalli > Universit=E9 de Savoie > Batiment Le Chablais, bureau 21 > 73376 Le Bourget-du-Lac Cedex >=20 > t=E9l: (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 > --------------------------------------------- >=20 > ------------------- > To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inr= ia.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 >=20 >=20 --=20 ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany=20 gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- 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