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 SAA15795; Sun, 1 Jun 2003 18:00:08 +0200 (MET DST) 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 SAA15780 for ; Sun, 1 Jun 2003 18:00:06 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h51G05H08809; Sun, 1 Jun 2003 18:00:05 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA15772; Sun, 1 Jun 2003 18:00:04 +0200 (MET DST) Date: Sun, 1 Jun 2003 18:00:04 +0200 From: Xavier Leroy To: Lex Stein Cc: caml-list@inria.fr Subject: Re: [Caml-list] perplexing marshaling exception Message-ID: <20030601180004.B15604@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from stein@eecs.harvard.edu on Thu, May 29, 2003 at 11:53:29PM -0400 X-Spam: no; 0.00; caml-list:01 marshaling:01 unboxed:01 bug:01 ocamlc:01 -output-obj:01 byterun:01 floats:01 ifdef:01 debug:01 behaviour:01 trivial:01 patch:02 exception:02 string:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > Hello, I've replicated this mysterious behaviour in a small, simple > example. Interestingly, the problem pops up for values with Custom_tag, > but not for unboxed, String_tag, or whatever bools are: You found a bug in the "ocamlc -output-obj" machinery. The trivial patch below (for file byterun/startup.c) fixes it. - Xavier Leroy --- startup.c 2002/09/03 13:56:36 1.55 +++ startup.c 2003/06/01 15:57:34 @@ -420,6 +420,7 @@ value res; init_ieee_floats(); + init_custom_operations(); #ifdef DEBUG verb_gc = 63; #endif ------------------- 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