From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 6C814BBAF for ; Tue, 16 Sep 2008 23:31:43 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AikBAAbCz0hKfSwdlGdsb2JhbACSTT4BAQEBCQMKBxEDoB+HFAECgyBlBg X-IronPort-AV: E=Sophos;i="4.32,410,1217800800"; d="scan'208";a="15017729" Received: from yx-out-2324.google.com ([74.125.44.29]) by mail2-smtp-roc.national.inria.fr with ESMTP; 16 Sep 2008 23:31:42 +0200 Received: by yx-out-2324.google.com with SMTP id 3so941681yxj.3 for ; Tue, 16 Sep 2008 14:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:content-type:content-transfer-encoding :content-disposition:message-id; bh=ipogLNo1IM7O43KXaDpqGLVsQeXQVwxThpgTP5efvZ8=; b=t50zbeghQjihjPsGwh3ox2d5tlRTHh6z/6W9odci5Ajv7kP18ECPN/pHhxko1Pr8Tl YpYNOfsBfCZRX/INkI05v+YBY2wfFugCurEDjXH79C/DhaB/14JM7swwthVOvbV9M+UR k1yRBtarwk7oPP9R0JqTdBEOVXAeY56Ya7nZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:content-type :content-transfer-encoding:content-disposition:message-id; b=jVEJme56QL0SaHFVYFV1GZRBo6MsEtZ2rCSViccr+4VlO49oVTVEIr9XcKPEhLZpH+ OF1H7/MsnSVNmFphEOsmY4B2kpEw3K3WZuW+lmfFnw3Dba61PjTXhSZs28QJzj4T4Xyq FpArSELAlcM6mB8fK36pLYwzeD+Hq0rFY5w5k= Received: by 10.100.168.18 with SMTP id q18mr2364414ane.103.1221600702327; Tue, 16 Sep 2008 14:31:42 -0700 (PDT) Received: from lawn-143-215-204-204.lawn.gatech.edu ( [143.215.204.204]) by mx.google.com with ESMTPS id c15sm29969493anc.1.2008.09.16.14.31.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Sep 2008 14:31:41 -0700 (PDT) From: Peng Zang Reply-To: peng.zang@gmail.com To: caml-list@yquem.inria.fr Subject: strange behavior with camlp4 and #use Date: Tue, 16 Sep 2008 17:31:37 -0400 User-Agent: KMail/1.9.7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809161731.40062.peng.zang@gmail.com> X-Spam: no; 0.00; camlp:01 hash:01 findlib:01 camlp:01 topfind:01 foo:01 foo:01 bug:01 peng:98 peng:98 int:01 int:01 caml:02 descriptor:02 descriptor:02 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am running 3.10.2 installed from GODI. Findlib is similarly installed. I run into the following error "I/O error: Bad file descriptor" when I try to '#use somefile' several times (when camlp4 is turned on). I can reproduce this weird behavior as follows: Objective Caml version 3.10.2 # #use "topfind";; # #camlp4o;; # #use "foo.ml";; - : int = 1 # #use "foo.ml";; - : int = 1 # #use "foo.ml";; I/O error: Bad file descriptor Does anyone else get this weird behavior? Why would it fail on the later times? Was a file descriptor left unclosed? Is this a bug? Peng -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFI0CW8fIRcEFL/JewRAnD+AKDJo65H/y8oeT+ByCrQg8S2ZBHrhQCff+DD wF9xbAA90UTcMjW/vJvAy/U= =+e8p -----END PGP SIGNATURE-----