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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 92F8DBB81 for ; Sun, 11 Dec 2005 15:26:50 +0100 (CET) Received: from conn.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jBBEQnel013641 for ; Sun, 11 Dec 2005 15:26:50 +0100 Received: from [192.168.42.2] (bhurt.dsl.visi.com [208.42.141.66]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id 242F885D8; Sun, 11 Dec 2005 08:26:49 -0600 (CST) Date: Sun, 11 Dec 2005 08:33:31 -0600 (CST) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Christophe TROESTLER Cc: jtbryant@valdosta.edu, caml-list@yquem.inria.fr Subject: Re: [Caml-list] Mysterious bug In-Reply-To: <20051211.121613.45234151.Christophe.Troestler@umh.ac.be> Message-ID: References: <1134271835.1763.8.camel@localhost.localdomain> <20051211.121613.45234151.Christophe.Troestler@umh.ac.be> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at concorde with ID 439C3729.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 bug:01 christophe:01 troestler:01 errno:01 einval:01 einval:01 ocaml:01 usr:01 unix:01 unix:01 wrote:01 wrote:01 kernel:01 define:01 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=none autolearn=disabled version=3.0.3 On Sun, 11 Dec 2005, Christophe TROESTLER wrote: > On Sat, 10 Dec 2005, Brian Hurt wrote: >> >> On Sat, 10 Dec 2005, Jonathan Bryant wrote: >> >>> 2. Unix.accept raises an Unix.Unix_error(12, "accept", "") at some >>> random time (sometimes, I believe, after all of the connections have >>> been made, but I feel very wrong in thinking this) >> >> Not sure if this helps, but errno 12 is ENOMEM, which means the kernel is >> running out of memory. I'm not sure what would cause it, however. > > # (Obj.magic 12 : Unix.error);; > - : Unix.error = Unix.EINVAL > > man accept: > > EINVAL > Socket is not listening for connections. A) This makes more sense than ENOMEM. B) Does Ocaml remap the errnos? Because I got ENOMEM by looking at /usr/include/asm-generic/errno-base.h, from which I get: #define ENOMEM 12 /* Out of memory */ Brian