From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id C37AA7EEAF for ; Thu, 24 Jan 2013 14:15:55 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of mmatalka@gmail.com) identity=pra; client-ip=209.85.220.54; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="mmatalka@gmail.com"; x-sender="mmatalka@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of mmatalka@gmail.com designates 209.85.220.54 as permitted sender) identity=mailfrom; client-ip=209.85.220.54; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="mmatalka@gmail.com"; x-sender="mmatalka@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-pa0-f54.google.com) identity=helo; client-ip=209.85.220.54; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="mmatalka@gmail.com"; x-sender="postmaster@mail-pa0-f54.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoABAOoyAVHRVdw2kWdsb2JhbABEDoJdgxNHuAIWDgEBAQEJCQ0HEimCHgEBBAEjHQEbHQEDAQsGAwIaAgUhAgIPAQQPEQEFASITiAcBAwkGAQuQCY8Zi2VPgnuEcQoZJw1ZiHYBBQyBF45FgRMDiGGOR41LP4NcXA X-IronPort-AV: E=Sophos;i="4.84,529,1355094000"; d="scan'208";a="169518120" Received: from mail-pa0-f54.google.com ([209.85.220.54]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 24 Jan 2013 14:15:54 +0100 Received: by mail-pa0-f54.google.com with SMTP id bi5so5478774pad.13 for ; Thu, 24 Jan 2013 05:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=PsCJicBQv0iSvZfuWegLnInHL8hKKA9nBtyg8TGgElo=; b=ldImmy2mlQdaGXa2TukCuzHszMCGSeQz0Zq9s/k+rKCCGuN7qEyJikoCVolIjP7pbH hcn/7J2y9ihf8ePeC4hGUFyyJwOqT7sk/aZLpJC6HwD0yYUM/oOZaogZOjq/kJSOYiHC +PndXJuT8OXTT+Oa8J8seCqjiC5rElmB40WLb/5TG0BVoG/E9N6pxv8CGHIQbbnm7srq ZXrIvbXl99/7l0I7fml07QcFKg4t/dnNkYLM1tau1TiBALFLrh0kYWi7qRrgB0j1pbXc UG8Z9h2IZMHBMWPxoV0kGR6K2O74zWs8fC9Sr8WXh9CrEG3KiHsqZRJoUyq5Nbo6BKB2 f0lg== X-Received: by 10.68.143.100 with SMTP id sd4mr4645455pbb.107.1359033352896; Thu, 24 Jan 2013 05:15:52 -0800 (PST) Received: from localhost ([2a01:7e00::f03c:91ff:fedf:4d21]) by mx.google.com with ESMTPS id jv1sm14869572pbc.36.2013.01.24.05.15.50 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 24 Jan 2013 05:15:51 -0800 (PST) From: Malcolm Matalka To: =?utf-8?B?5rKI6IOc5a6H?= Cc: caml-list@inria.fr References: <24b397e9.3d7.13c6c7b5296.Coremail.syshen@nudt.edu.cn> Date: Thu, 24 Jan 2013 08:15:47 -0500 In-Reply-To: <24b397e9.3d7.13c6c7b5296.Coremail.syshen@nudt.edu.cn> (=?utf-8?B?IuayiOiDnOWuhw==?= "'s message of "Thu, 24 Jan 2013 20:14:46 +0800 (GMT+08:00)") Message-ID: <87boce7md8.fsf@li195-236.members.linode.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] :: how to locate the source of exception Run with backtraces on. I think this requires bytecode but I can't remember: http://stackoverflow.com/questions/145880/how-do-i-get-a-stack-trace-in-oca= ml =E6=B2=88=E8=83=9C=E5=AE=87 writes: > Dear all: > > > My program written in ocaml terminate with the following output: > > > Fatal error: exception Invalid_argument("index out of bounds") > > > > > So how should I find out the lcoation in source code that raise this exce= ption? > > > Shen