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 1B180BC37 for ; Wed, 10 Feb 2010 23:31:12 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhYBAATCckvU4xEIkGdsb2JhbACabRUBAQEBCQkMBxMDIL5lAoRTBA X-IronPort-AV: E=Sophos;i="4.49,447,1262559600"; d="scan'208";a="44545580" Received: from moutng.kundenserver.de ([212.227.17.8]) by mail3-smtp-sop.national.inria.fr with ESMTP; 10 Feb 2010 23:31:11 +0100 Received: from office1.lan.sumadev.de (dslb-188-097-015-215.pools.arcor-ip.net [188.97.15.215]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0M1iIs-1Nyng72N6A-00tZVy; Wed, 10 Feb 2010 23:31:09 +0100 Received: from [192.168.5.104] (dslb-188-097-015-215.pools.arcor-ip.net [188.97.15.215]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 403935F702; Wed, 10 Feb 2010 23:31:09 +0100 (CET) Subject: Re: [Caml-list] debugging in toplevel From: Gerd Stolpmann To: guillaume.yziquel@citycable.ch Cc: OCaml List In-Reply-To: <4B732704.8090809@citycable.ch> References: <4B732704.8090809@citycable.ch> Content-Type: text/plain Date: Wed, 10 Feb 2010 23:37:23 +0100 Message-Id: <1265841443.9363.1.camel@flake.lan.gerd-stolpmann.de> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19fgbkEV/0qmOEUpIBERxRW590WeCRoDkGhQ8E yaR2dKqf33JqDyysRJktAfV8H8fSAr4/FzLEtlXeqj2LqSqp73 bgcyd+Szqztfw2f6THr7g== X-Spam: no; 0.00; toplevel:01 gerd:01 stolpmann:01 gerd:01 guillaume:01 bindings:01 ocaml:01 topfind:01 findlib:01 camlp:01 camlp:01 syntax:01 syntax:01 topfind:01 usr:01 Am Mittwoch, den 10.02.2010, 22:37 +0100 schrieb Guillaume Yziquel: > 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". > > # Looks like this happens in the initialization code for pycaml.cma. > 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? The toplevel is hard to debug. Try to reproduce without the toplevel. Gerd -- ------------------------------------------------------------ Gerd Stolpmann, Bad Nauheimer Str.3, 64289 Darmstadt,Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------