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=1.6 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL 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 4F004BC37 for ; Thu, 18 Jun 2009 16:41:03 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUCAGPuOUrRVdzemGdsb2JhbACOPYloPwEBAQEBCAkMBxOnAYEZkGsBAwIEhAQF X-IronPort-AV: E=Sophos;i="4.42,245,1243807200"; d="scan'208";a="28314939" Received: from mail-fx0-f222.google.com ([209.85.220.222]) by mail2-smtp-roc.national.inria.fr with ESMTP; 18 Jun 2009 16:41:03 +0200 Received: by fxm22 with SMTP id 22so1241330fxm.9 for ; Thu, 18 Jun 2009 07:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6UW26oqUu00GwsPyVrcors8mv4XOgs9ZYJHENuOVGTI=; b=aJyXzBsIYqmy28R9Qjs1n3qCB6TlAfrF6b2W5RsfOEa+2p69YfXstziyiSTcVntd4V VLN1Tn0k/6+/WwaW2OQ1Y0852SVAGsQ+0OIsym0fVMVVX4+IJJRB+0QdLhU+82uw+dSf 7c1E7H8WaydpXtbaBwuecX6n2NvuJ/Yw7Yn2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=AZoi0PyN4TVNSjgRcvMRZIKvPZ6t9xdphxeadeQ/UohrfTbVP2lXeqnAemY9jpuLCa bnm9uuKq5xQwXnLvtdjMovBjPX7++nubQPaOyEeIXSigJbcLJ3a2bOmEbeFeOTnxylJo /HHxpVdKk9fAIvXdWZYW0S/2cTfdS7MSFBiFg= MIME-Version: 1.0 Received: by 10.86.98.10 with SMTP id v10mr2057285fgb.76.1245336062192; Thu, 18 Jun 2009 07:41:02 -0700 (PDT) Reply-To: david.baelde@ens-lyon.org In-Reply-To: <4A3A3E58.1040300@glondu.net> References: <200906181416.39314.toots@rastageeks.org> <4A3A3E58.1040300@glondu.net> Date: Thu, 18 Jun 2009 16:41:02 +0200 Message-ID: <53c655920906180741m71893536he6ea5960c124dddf@mail.gmail.com> Subject: Re: [Caml-list] Uncaught Unix_error. From: David Baelde To: =?ISO-8859-1?Q?St=E9phane_Glondu?= Cc: Romain Beauxis , caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; uncaught:01 -threads:01 ocamlfind:01 ocamlfind:01 dynlink:01 runtime:01 statically:01 2009:98 steph:98 wrote:01 unix:01 unix:01 exception:01 exception:01 caml-list:01 On Thu, Jun 18, 2009 at 3:17 PM, St=E9phane Glondu wrote: > Such errors can also happen if you link the (same) Unix module twice: > the exceptions raised by the first instance are not catchable by > anything linked after the second instance. Both liquidsoap and ocaml-duppy are compiled with -threads, so they are using the same version of Unix. Duppy is not linked against Unix, only requires it through ocamlfind. Could it be that ocamlfind (on some versions) links Unix twice in liquidsoap? I did not know it was even possible (except with Dynlink). Also, note that the call to read that raises the error is from the same module that tries to catch the exception. I'm lost, I'd like to understand when the exception is registered: at runtime initialization? In this case, only one should ever be registered (at least it seems easy to enforce). Or is it statically registered somehow? --=20 David