From: Alain Frisch <Alain.Frisch@inria.fr>
To: Jeremy Yallop <jeremy.yallop@ed.ac.uk>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] non-recursive recursive module segfault
Date: Wed, 09 Aug 2006 16:30:35 +0200 [thread overview]
Message-ID: <44D9F18B.8070906@inria.fr> (raw)
In-Reply-To: <44D9E864.4000303@ed.ac.uk>
Jeremy Yallop wrote:
> What behaviour should I expect for the following code? :
>
> module rec M :
> sig
> val m : unit -> unit
> end
> =
> struct
> let h _ _ = ()
> let m = h ()
> end
>
> let _ = M.m ()
>
> According to the documentation this could trigger the exception
> "Undefined_recursive_module", but instead it segfaults.
That's probably the bug 4008:
http://caml.inria.fr/mantis/view.php?id=4008
which is fixed in the 3.09 CVS branch (but not in the 3.10 branch, in
case you tried).
To get rid of the problem, you can either:
- use the CVS version (release309 branch);
- download, compile and link with the following files:
http://camlcvs.inria.fr/cgi-bin/cvsweb.cgi/~checkout~/ocaml/stdlib/camlinternalMod.mli?rev=1.1.8.2
http://camlcvs.inria.fr/cgi-bin/cvsweb.cgi/~checkout~/ocaml/stdlib/camlinternalMod.ml?rev=1.4.2.1
- use ocamlopt
-- Alain
next prev parent reply other threads:[~2006-08-09 14:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-09 13:51 Jeremy Yallop
2006-08-09 14:30 ` Alain Frisch [this message]
2006-08-09 14:56 ` [Caml-list] " Jeremy Yallop
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=44D9F18B.8070906@inria.fr \
--to=alain.frisch@inria.fr \
--cc=caml-list@inria.fr \
--cc=jeremy.yallop@ed.ac.uk \
/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).