From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: Alexey Egorov <alex.only.d@gmail.com>, caml-list@inria.fr
Subject: Re: [Caml-list] memory corruption using C stub
Date: Sat, 10 Jun 2017 16:50:26 +0100 [thread overview]
Message-ID: <etPan.593c1542.75e71f5b.542@erratique.ch> (raw)
In-Reply-To: <etPan.593c13ef.55939a4.542@erratique.ch>
On 10 June 2017 at 16:44:50, Daniel Bünzli (daniel.buenzli@erratique.ch) wrote:
> My C FFI may be a bit rusty and I only had a quick look but I think that on line 75 you need to
> put that caml_copy_double into a CAMLLocal variable since you are allocating afterwards
> on line 77.
(Or rearrange your code so that caml_copy_double is the last allocation you perform in the fun.)
D
next prev parent reply other threads:[~2017-06-10 15:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-10 15:33 Alexey Egorov
2017-06-10 15:40 ` Viet Le
2017-06-10 17:00 ` Alexey Egorov
2017-06-10 15:44 ` Daniel Bünzli
2017-06-10 15:50 ` Daniel Bünzli [this message]
2017-06-10 16:01 ` Daniel Bünzli
2017-06-11 11:37 ` Alexey Egorov
2017-06-11 11:45 ` David Allsopp
2017-06-11 11:54 ` Alexey Egorov
2017-06-11 12:07 ` David Allsopp
2017-06-11 15:26 ` Alexey Egorov
2017-06-11 18:49 ` Alexey Egorov
2017-06-11 19:20 ` David Allsopp
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=etPan.593c1542.75e71f5b.542@erratique.ch \
--to=daniel.buenzli@erratique.ch \
--cc=alex.only.d@gmail.com \
--cc=caml-list@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