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 HAA08947; Wed, 20 Mar 2002 07:17:37 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA05739 for caml-list@pauillac.inria.fr; Wed, 20 Mar 2002 07:17:36 +0100 (MET) 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 DAA07151 for ; Wed, 20 Mar 2002 03:58:53 +0100 (MET) Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id g2K2wpj01039 for ; Wed, 20 Mar 2002 03:58:52 +0100 (MET) Received: from frouaix (AUTH login) at ca-redbch-u1-c3b-189.stmnca.adelphia.net (HELO homebox) (frouaix@24.54.194.189) by smtp.mail.vip.sc5.yahoo.com with SMTP; 20 Mar 2002 02:58:50 -0000 From: "Francois Rouaix" To: Subject: [Caml-list] threads Date: Tue, 19 Mar 2002 18:59:38 -0800 Message-ID: <000001c1cfbb$460b3c60$ca01a8c0@homebox> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is anyone using native threads in Ocaml 3.04 intensively on Linux these days ? I'm playing with a Gnutella servent, and I'm experimenting crashes (bytecode and native). I'm using the unix library heavily. So far, I'm aware that the DNS calls are not reentrant, but the rest of the library calls should be okay. My "crashes" are weird... There is no core (ulimit -c unlimited, before you ask). The program "hangs", ps looks like this. Looks like a thread is stuck. 18964 pts/3 S 0:00 ./camella.opt 18965 pts/3 Z 0:00 [camella.opt ] 18967 pts/3 S 0:00 ./camella.opt $strace -p 18964 Hangs $strace -p 18967 select(0, NULL, NULL, NULL, {0, 50000}) =3D 0 (Timeout) My log output on stderr ends abruptly, with no obvious trace of error (and I log a lot, and I catch stray exceptions everywhere..) Any hint or suggestion on how to track the problem would be appreciated... --f Fran=E7ois Rouaix _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ------------------- 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