caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <gerd@gerd-stolpmann.de>
To: guillaume.yziquel@citycable.ch
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] debugging in toplevel
Date: Wed, 10 Feb 2010 23:37:23 +0100	[thread overview]
Message-ID: <1265841443.9363.1.camel@flake.lan.gerd-stolpmann.de> (raw)
In-Reply-To: <4B732704.8090809@citycable.ch>


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
------------------------------------------------------------


      reply	other threads:[~2010-02-10 22:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 21:37 Guillaume Yziquel
2010-02-10 22:37 ` Gerd Stolpmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1265841443.9363.1.camel@flake.lan.gerd-stolpmann.de \
    --to=gerd@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    --cc=guillaume.yziquel@citycable.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).