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 JAA04218; Thu, 3 Oct 2002 09:58:24 +0200 (MET DST) 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 JAA04184 for caml-list@pauillac.inria.fr; Thu, 3 Oct 2002 09:58:23 +0200 (MET DST) 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 RAA10793 for ; Wed, 2 Oct 2002 17:08:27 +0200 (MET DST) Received: from smtp.comcast.net (smtp.comcast.net [24.153.64.2]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g92F8P502423 for ; Wed, 2 Oct 2002 17:08:26 +0200 (MET DST) Received: from laptop (mwhlaptopvm.cs.umd.edu [128.8.126.60]) by mtaout05.icomcast.net (iPlanet Messaging Server 5.1 HotFix 1.4 (built Aug 5 2002)) with ESMTPA id <0H3D006M70NLNE@mtaout05.icomcast.net> for caml-list@inria.fr; Wed, 02 Oct 2002 11:06:57 -0400 (EDT) Date: Wed, 02 Oct 2002 11:06:30 -0400 From: Michael Hicks Subject: RE: [Caml-list] Uncaught exceptions (or am I going crazy?) In-reply-to: <3D9B03DF.5040806@cs.cornell.edu> To: "Yaron M. Minsky" , Ocaml List Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk In Unix, if you don't create a signal handler that explicitly handles or ignores the signal SIGPIPE, this signal will be thrown to the application if its tries to write to a file descriptor that has been closed (in particular if it has received an RST from the remote TCP host). If the signal is dealt with by the application, the offending write will return the error EPIPE. I presume that the OCaml implementation has manifested the throwing of the signal by raising the exception you are seeing. Hope this helps. Mike -----Original Message----- From: owner-caml-list@pauillac.inria.fr [mailto:owner-caml-list@pauillac.inria.fr]On Behalf Of Yaron M. Minsky Sent: Wednesday, October 02, 2002 10:34 AM To: Ocaml List Subject: [Caml-list] Uncaught exceptions (or am I going crazy?) I'm getting some very weird behavior with respect to exception handling in ocaml 3.06. I'm probably missing something obvious, but here's my situation. I have a networking application which for some reason, occasionally prints out the following message: Uncaught exception: Sys_error("Broken pipe") What's so strange about this is that as far as I can tell, there is no place in my code where I actually print out such errors. In particular, the text "Uncaught exception" doesn't appear anywhere in my code, and I don't see any printfs that could be the cause either. And weirdly, this only seems to come up with byte-code compiled code. So has anyone else seen something like this? y ------------------- 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 ------------------- 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