From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p28Ea8O6018019 for ; Tue, 8 Mar 2011 15:36:08 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqMFACbNdU3U4xEIkGdsb2JhbACELKIHDRUBAQEBCQkMBxEDIq1kkToCgSWDRnYEiAeHcoIj X-IronPort-AV: E=Sophos;i="4.62,284,1297033200"; d="scan'208";a="101544004" Received: from moutng.kundenserver.de ([212.227.17.8]) by mail1-smtp-roc.national.inria.fr with ESMTP; 08 Mar 2011 15:36:03 +0100 Received: from office1.lan.sumadev.de (dslb-188-107-222-170.pools.arcor-ip.net [188.107.222.170]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MJVXP-1Pyskv3q9b-002XC7; Tue, 08 Mar 2011 15:35:59 +0100 Received: from [192.168.5.106] (dslb-188-107-222-170.pools.arcor-ip.net [188.107.222.170]) by office1.lan.sumadev.de (Postfix) with ESMTPA id 8BBFE5F701; Tue, 8 Mar 2011 15:35:58 +0100 (CET) From: Gerd Stolpmann To: Arlen Cuss Cc: caml-list In-Reply-To: <1299550636.21350.49.camel@azayaka> References: <1299550636.21350.49.camel@azayaka> Content-Type: text/plain; charset="UTF-8" Date: Tue, 08 Mar 2011 15:35:58 +0100 Message-ID: <1299594958.30035.104.camel@thinkpad> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:MmCRhSDXEV+77EqYT+wqR85K7zJMVZCYa3civ99gqbA oGblpW5Kg8C1KYHVSNI64ZH8+ReHAJcABG/MQ33WgAsqQThEi7 fgG7PYGWdPTB7IsBlbwYlV32UuE/gUexO3hezrWKC8Bgm3pcTm 65zIEcaPX017dl86rrzaGcrYdaOiVJy8fzpMS42qDPktdUPhrN ME2pebo0v50Ld5BESC9EA== Subject: Re: [Caml-list] Unix.Unix_error(31, "write", "") raised from format.ml!? This is not right. Am Dienstag, den 08.03.2011, 13:17 +1100 schrieb Arlen Cuss: > Exception Unix.Unix_error(31, "write", "") occurred > Exception Unix.Unix_error(56, "write", "") occurred > > Both are occurring with the same reported backtrace; the former is Unix > error EMLINK (too many links), the latter EISCONN (socket is connected); > the strange thing is that *neither* of these errors should be throwable > on a write() call! That's not quite correct. Error 31 is EPIPE. Error 56 is ECONNRESET. You can easily find out by typing in the toploop: # (Obj.magic 31: Unix.error);; - : Unix.error = Unix.EPIPE # (Obj.magic 56: Unix.error);; - : Unix.error = Unix.ECONNRESET The error numbers are not the official Unix ones, but something that ocaml uses internally. Gerd > > I've ensured I'm correctly compiling with debug info, so I'm a bit lost. > I can only assume a sprintf or similar call somewhere is going haywire. > > Anyone seen anything like this before? > > Best, > Arlen > > -- ------------------------------------------------------------ Gerd Stolpmann, Bad Nauheimer Str.3, 64289 Darmstadt,Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------