From: Matthieu Dubuget <matthieu.dubuget@gmail.com>
To: Caml Mailing List <caml-list@yquem.inria.fr>
Subject: [Caml-list] Java JVM is becoming more strict
Date: Fri, 25 Mar 2011 09:21:05 +0100 [thread overview]
Message-ID: <4D8C5071.2000403@gmail.com> (raw)
Hello,
this post is just a short story for the archives of the mailing-list…
This is about a three days (successful) fight against a bug.
Since more than three year, my colleague is using one DLL of mine. This
DLL was produced with ocaml, from some caml modules and one hand written
C file. My colleague is not perfect: he is calling this DLL from one
Java application.
Last week, for some technical constraints, he had to upgrade the Java
virtual machine toward a >= 1.6 version.
Since this upgrade, he experienced one exception violation on the first
call to the DLL (ie when calling caml_startup).
It appeared that some other OCaml DLL were still working fine. We made a
test, replacing the Caml modules with a minimal .ml file, returning
static values: this worked without violation exception. After that, we
printed the dependencies (ocamldep -modules) of the modules.
The problem was that some (unused) debugging code was still there in one
of them: this module had a dependency toward Printf module. Once this
dependency was removed, we got read of the exception violation. I wonder
if this is a bug in OCaml, in the JVM, or a mis-use of the JVM?
Salutations
Matthieu
next reply other threads:[~2011-03-25 8:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 8:21 Matthieu Dubuget [this message]
2011-03-25 10:02 ` Florent Ouchet
2011-03-25 10:20 ` Matthieu Dubuget
2011-03-25 12:57 ` Florent Ouchet
2011-03-25 16:14 ` Matthieu Dubuget
2011-03-26 13:13 ` Dmitry Bely
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=4D8C5071.2000403@gmail.com \
--to=matthieu.dubuget@gmail.com \
--cc=caml-list@yquem.inria.fr \
/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