From: Alain Frisch <alain@frisch.fr>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: caml-list List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Re: Dynlinking plugins defining the same unit name but with different implementations.
Date: Fri, 02 Jul 2010 10:07:45 +0200 [thread overview]
Message-ID: <4C2D9E51.8010500@frisch.fr> (raw)
In-Reply-To: <AANLkTimxje_P_RRRGCUkG2Z037tIuAsFruzLLMv8fDlq@mail.gmail.com>
On 07/01/2010 09:16 PM, Daniel Bünzli wrote:
> Well in fact this looks like dll bug since if the interface of M.test
> doesn't match in a/m.cmx and b/m.cmx then a segfault occurs. Something
> similar is reported here :
>
> http://caml.inria.fr/mantis/view.php?id=4839
> http://caml.inria.fr/mantis/view.php?id=4229
>
> Is there any fix expected for the final 3.12 ? As this makes plugins
> quite an unreliable feature (if you expect your plugins to come from
> different sources).
Another related bug:
http://caml.inria.fr/mantis/view.php?id=4231
This one shows that the same problem (linking modules with the same name
several times, but different implementations, thus breaking the type
system) can appear in the following situations:
- Static linking with ocamlc (no check at all that two modules with the
same name are not linked together).
- Static linking with ocamlopt (there is a check that the global symbols
corresponding to module themselves are unique; but it can be broken with
-for-pack and -pack).
So the problem is more general than dynlink.
(Note: for dynlink, I believe that loading modules in private mode
should be safe.)
Alain
next prev parent reply other threads:[~2010-07-02 8:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-01 19:01 Daniel Bünzli
2010-07-01 19:16 ` Daniel Bünzli
2010-07-02 8:07 ` Alain Frisch [this message]
2010-07-02 8:27 ` [Caml-list] " Daniel Bünzli
2010-07-02 8:40 ` Alain Frisch
2010-07-02 8:47 ` Alain Frisch
2010-07-02 9:19 ` Daniel Bünzli
2010-07-02 17:48 ` Daniel Bünzli
2010-07-05 7:27 ` Alain Frisch
2010-07-05 11:15 ` Daniel Bünzli
2010-07-05 11:41 ` Alain Frisch
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=4C2D9E51.8010500@frisch.fr \
--to=alain@frisch.fr \
--cc=caml-list@yquem.inria.fr \
--cc=daniel.buenzli@erratique.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