From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id B79A0BC37 for ; Wed, 10 Feb 2010 22:37:08 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoCAEK2cktV2gB5h2dsb2JhbACDCpdxAQEBCgsIBxUjrl2PVoEvgktbBIlb X-IronPort-AV: E=Sophos;i="4.49,446,1262559600"; d="scan'208";a="44538731" Received: from emailfrontal2.citycable.ch ([85.218.0.121]) by mail3-smtp-sop.national.inria.fr with SMTP; 10 Feb 2010 22:36:53 +0100 Received: from [192.168.0.12] (unknown [85.218.92.99]) (Authenticated sender: guillaume.yziquel@citycable.ch) by emailfrontal2.citycable.ch (Postfix) with ESMTPA id 35EA0B106B7; Wed, 10 Feb 2010 22:36:39 +0100 (CET) Message-ID: <4B732704.8090809@citycable.ch> Date: Wed, 10 Feb 2010 22:37:08 +0100 From: Guillaume Yziquel Reply-To: guillaume.yziquel@citycable.ch User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: OCaml List Cc: Yoann Padioleau Subject: debugging in toplevel Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; guillaume:01 guillaume:01 toplevel:01 bindings:01 ocaml:01 topfind:01 findlib:01 camlp:01 camlp:01 syntax:01 syntax:01 topfind:01 usr:01 lib:01 ocaml:01 Hi. I've been working on Yoann Padioleau's version of ocaml-python bindings. I unfortunately get the following error: > yziquel@seldon:~$ ocaml > Objective Caml version 3.11.1 > > # #use "topfind";; > - : unit = () > Findlib has been successfully loaded. Additional directives: > #require "package";; to load a package > #list;; to list the available packages > #camlp4o;; to load camlp4 (standard syntax) > #camlp4r;; to load camlp4 (revised syntax) > #predicates "p,q,...";; to set these predicates > Topfind.reset();; to force that packages will be reloaded > #thread;; to enable threads > > - : unit = () > # #require "python";; > /usr/lib/ocaml/unix.cma: loaded > /usr/lib/ocaml/str.cma: loaded > /usr/lib/ocaml/python: added to search path > /usr/lib/ocaml/python/pycaml.cma: loaded > Exception: Invalid_argument "index out of bounds". > # How do you debug something like this? ocamldebug and #trace do not seem to be very useful. What would you recommend doing to debug this toplevel error? -- Guillaume Yziquel http://yziquel.homelinux.org/