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 JAA16719; Sat, 31 Jan 2004 09:46:42 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 JAA16736 for ; Sat, 31 Jan 2004 09:46:41 +0100 (MET) Received: from mz3.forethought.net (mzpi5.forethought.net [216.241.36.14]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id i0V8keP09161 for ; Sat, 31 Jan 2004 09:46:40 +0100 (MET) Received: from [216.241.35.41] (helo=swordfish) by mz3.forethought.net with esmtp (Exim 4.14) id 1Amqly-0003I3-VM for caml-list@pauillac.inria.fr; Sat, 31 Jan 2004 01:46:39 -0700 Received: from matt by swordfish with local (Exim 3.35 #1 (Debian)) id 1Amqm0-0003n4-00 for ; Sat, 31 Jan 2004 01:46:40 -0700 Date: Sat, 31 Jan 2004 01:46:40 -0700 From: Matt Gushee To: caml-list@pauillac.inria.fr Subject: [Caml-list] Apparent I/O bug Message-ID: <20040131084640.GA12067@swordfish> Reply-To: Matt Gushee Mail-Followup-To: caml-list@pauillac.inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; gushee:01 mgushee:01 havenrock:01 bug:01 bug:01 pervasives:01 bash-:01 2.05:01 3.07:01 creat:01 foo:01 val:01 abstr:01 baz:01 descriptor:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have encountered what appears to be a bug in out_channels created with Pervasives.open_out_gen: bash-2.05a$ ocaml Objective Caml version 3.07+2 # let oc = open_out_gen [Open_creat; Open_text] 0o644 "/var/tmp/foo";; val oc : out_channel = # output_string oc "Fubar Baz\n";; - : unit = () # close_out oc;; Exception: Sys_error "Bad file descriptor". Well, that's disturbing. Or is there something I don't understand about the proper usage of open_out_gen (documentation problem?)? BTW, I'm running OCaml on Debian GNU/Linux 3.0 (Woody), with glibc 2.2.5. I installed OCaml 3.07pl2 from source, with no apparent compilation errors. I am seeing the same problem on two similarly configured systems. -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.) ------------------- 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