From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 246DDBB81 for ; Sun, 11 Dec 2005 15:33:22 +0100 (CET) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jBBEXLRc002385 for ; Sun, 11 Dec 2005 15:33:21 +0100 Received: by zproxy.gmail.com with SMTP id z3so1213135nzf for ; Sun, 11 Dec 2005 06:33:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=i3tsy5dp9WLYEWDczxk85p3ZMinTM5LoJ1SQvW1RQk3cVEBsQ3HGI+JguZ5D3Ec1CWgFvxAQLBhXxwtLW+s5zy63QOI/3Ey6znelqGkJCA7e5Iei5bkI0LRDhysvhA0YI9+A+cYJpGHCaAWxae7Wa9vGMXnErHFJUtNAwsN0K6Q= Received: by 10.65.137.10 with SMTP id p10mr5147870qbn; Sun, 11 Dec 2005 06:33:20 -0800 (PST) Received: by 10.65.81.5 with HTTP; Sun, 11 Dec 2005 06:33:20 -0800 (PST) Message-ID: Date: Sun, 11 Dec 2005 09:33:20 -0500 From: Joshua Smith To: caml-list@yquem.inria.fr, jtbryant@valdosta.edu Subject: Re: Mysterious bug MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Miltered: at nez-perce with ID 439C38B1.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; bug:01 ulimit:01 segfault:01 ocaml:01 compiler:01 exception:01 exception:01 thread:02 thread:02 parameters:02 let:03 mutex:03 locks:04 raises:05 problem:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 The "nothing works like it should" sounds like you've got a thread raising an exception without reporting it or its getting caught in a way that makes it silent. I looked at your code little bit but didn't see anything obvious like this, however. I also would say that the EventBroker may be the problem for situation 1). if you have a thread that locks a mutex and then raises an exception you could get a race condition in there which would create situation 1). Situation 2) ENOMEM can also be raised when a program is exceeding ulimit parameters. And situation 3) I dunno. Your program shouldn't segfault at any time, let alone a random one. What version of the ocaml compiler are you using? HTH. -jbs