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 3ECE5BB9A for ; Sat, 8 Oct 2005 20:47:02 +0200 (CEST) Received: from mail.eecs.harvard.edu (bowser.eecs.harvard.edu [140.247.60.24]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j98Il1YA022113 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 8 Oct 2005 20:47:02 +0200 Received: from localhost (localhost.eecs.harvard.edu [127.0.0.1]) by mail.eecs.harvard.edu (Postfix) with ESMTP id CE7D2364AD; Sat, 8 Oct 2005 14:47:00 -0400 (EDT) Received: from mail.eecs.harvard.edu ([127.0.0.1]) by localhost (bowser.eecs.harvard.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70155-08; Sat, 8 Oct 2005 14:47:00 -0400 (EDT) Received: from labrador.eecs.harvard.edu (labrador.eecs.harvard.edu [140.247.60.247]) by mail.eecs.harvard.edu (Postfix) with ESMTP id 6AF9B3649A; Sat, 8 Oct 2005 14:47:00 -0400 (EDT) Received: by labrador.eecs.harvard.edu (Postfix, from userid 32074) id 5CD712B2A62; Sat, 8 Oct 2005 14:47:00 -0400 (EDT) To: Anil Madhavapeddy Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] trouble with Marshal.to_string In-reply-to: <710BDF7D-A164-4655-975E-553017F62321@recoil.org> References: <20051008153429.A2314289004@toller> <1456CFD1-55B7-4A3B-B121-6B27529F94BE@recoil.org> <20051008163518.B1B262B2A62@labrador.eecs.harvard.edu> <710BDF7D-A164-4655-975E-553017F62321@recoil.org> Comments: In-reply-to Anil Madhavapeddy message dated "Sat, 08 Oct 2005 17:57:40 +0100." Date: Sat, 08 Oct 2005 14:47:00 -0400 From: Norman Ramsey Message-Id: <20051008184700.5CD712B2A62@labrador.eecs.harvard.edu> X-Virus-Scanned: by EECS Amavis at eecs.harvard.edu X-Miltered: at concorde with ID 43481425.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 serialize:01 def:01 byterun:01 serialize:01 byterun:01 ...:98 ...:98 marshal:01 define:01 grep:01 grep:01 eecs:01 closure:02 seems:03 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 > > Any ideas how I might track down the source of a custom block? > > The old-fashioned way, with grep :-) I'm sure there are fancier > ways, but... > > shock:~/src/ocaml-3.08.4 avsm$ grep -r custom_serialize_def * > byterun/custom.c: ops->serialize = custom_serialize_default; > byterun/custom.h:#define custom_serialize_default NULL > byterun/io.c: custom_serialize_default, Aha! It seems possible that a closure has captured an open file handle... Norman