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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 22D107EEAF for ; Thu, 24 Jan 2013 14:49:54 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of syshen@nudt.edu.cn) identity=pra; client-ip=61.187.54.11; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="syshen@nudt.edu.cn"; x-sender="syshen@nudt.edu.cn"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of syshen@nudt.edu.cn) identity=mailfrom; client-ip=61.187.54.11; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="syshen@nudt.edu.cn"; x-sender="syshen@nudt.edu.cn"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@nudt.edu.cn) identity=helo; client-ip=61.187.54.11; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="syshen@nudt.edu.cn"; x-sender="postmaster@nudt.edu.cn"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au0HAHg7AVE9uzYL/2dsb2JhbABEhkW2U4FGc4IfAQUjVhAFBAIODAImAgIhNgYTEYd3Aw4NkAmafokGDUyJCYEjimmDXIETA4hfi1eBVoEcihqFEoMFghc X-IPAS-Result: Au0HAHg7AVE9uzYL/2dsb2JhbABEhkW2U4FGc4IfAQUjVhAFBAIODAImAgIhNgYTEYd3Aw4NkAmafokGDUyJCYEjimmDXIETA4hfi1eBVoEcihqFEoMFghc X-IronPort-AV: E=Sophos;i="4.84,529,1355094000"; d="scan'208";a="74628" Received: from mail.nudt.edu.cn (HELO nudt.edu.cn) ([61.187.54.11]) by mail3-smtp-sop.national.inria.fr with ESMTP; 24 Jan 2013 14:50:16 +0100 Received: by ajax-webmail-coremail.nudt.edu.cn (Coremail) ; Thu, 24 Jan 2013 21:48:29 +0800 (GMT+08:00) Date: Thu, 24 Jan 2013 21:48:29 +0800 (GMT+08:00) From: =?utf-8?B?5rKI6IOc5a6H?= To: "Malcolm Matalka" Cc: caml-list@inria.fr Message-ID: <420433c6.3f5.13c6cd11d8d.Coremail.syshen@nudt.edu.cn> In-Reply-To: <87boce7md8.fsf@li195-236.members.linode.com> References: <24b397e9.3d7.13c6c7b5296.Coremail.syshen@nudt.edu.cn> <87boce7md8.fsf@li195-236.members.linode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [113.246.243.149] X-Priority: 3 X-Mailer: Coremail Webmail Server Version 4.0.5a build 20121109(20529.5019.5013) Copyright (c) 2002-2013 www.mailtech.cn nudt-out X-SendMailWithSms: false X-CM-TRANSID:AQAAf0D590KuOwFR+vsAAA--.418W X-CM-SenderInfo: xv1vxvnq6q3vvwohv3gofq/1tbiAQAJE1C8Ui4U8AAGsp X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW5Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= Subject: Re: Re: [Caml-list] :: how to locate the source of exception Dear Matalka: I got the trace by following you method, thank you for your help Shen > -----=E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: "Malcolm Matalka" > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013-01-24 21:15:47 (=E6=98=9F=E6= =9C=9F=E5=9B=9B) > =E6=94=B6=E4=BB=B6=E4=BA=BA: "=E6=B2=88=E8=83=9C=E5=AE=87" > =E6=8A=84=E9=80=81: caml-list@inria.fr > =E4=B8=BB=E9=A2=98: Re: [Caml-list] :: how to locate the source of except= ion >=20 > Run with backtraces on. I think this requires bytecode but I can't > remember: >=20 > http://stackoverflow.com/questions/145880/how-do-i-get-a-stack-trace-in-o= caml >=20 > =E6=B2=88=E8=83=9C=E5=AE=87 writes: >=20 > > 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 ex= ception? > > > > > > Shen