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.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id CD4F4BBC1 for ; Wed, 30 Apr 2008 18:52:12 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AisFAJBAGEiAKgEfYGdsb2JhbACRTBcFBwcSmx4 X-IronPort-AV: E=Sophos;i="4.25,729,1199660400"; d="scan'208";a="25709877" Received: from mail.cs.rice.edu ([128.42.1.31]) by mail4-smtp-sop.national.inria.fr with ESMTP; 30 Apr 2008 18:52:12 +0200 Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id 5EC9B2C2D54; Wed, 30 Apr 2008 11:52:10 -0500 (CDT) X-Virus-Scanned: by amavis-2.4.0 at mail.cs.rice.edu Received: from mail.cs.rice.edu ([127.0.0.1]) by mail.cs.rice.edu (mail.cs.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aFPIQQ5KIuTb; Wed, 30 Apr 2008 11:52:02 -0500 (CDT) Received: from [10.121.20.238] (nat-168-7-229-13.rice.edu [168.7.229.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.rice.edu (Postfix) with ESMTP id 9F9492C2B62; Wed, 30 Apr 2008 11:52:02 -0500 (CDT) Message-ID: <481895A4.9080407@rice.edu> Date: Wed, 30 Apr 2008 11:52:04 -0400 From: Raj Bandyopadhyay User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Indentifying OCaml exceptions from C Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 ocaml:01 callbacks:01 runtime:01 exn:01 exception:01 exception:01 exceptions:01 exceptions:01 callback:02 defined:02 seems:03 debug:05 raj:05 raj:05 Hi ocaml folks I have a C program that makes callbacks to the OCaml runtime via the callback_exn() mechanism. Unfortunately, the OCaml code is raising some exception. It seems to be one of the built-in OCaml exceptions, and not something that I have defined in my OCaml code. I would like to know what is the easiest/correct way to identify the exact OCaml exception being raised, so I can debug this program. Thank you Raj