caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Adrien Nader <adrien@notk.org>
To: "Markus Weißmann" <markus.weissmann@in.tum.de>
Cc: caml-list@inria.fr, Gerd Stolpmann <info@gerd-stolpmann.de>,
	Mark Shinwell <mshinwell@janestreet.com>
Subject: Re: [Caml-list] Obj.out_of_heap_tag, out of minor heap or memory corruption?
Date: Fri, 29 Apr 2016 18:41:08 +0200	[thread overview]
Message-ID: <20160429164108.GA23973@notk.org> (raw)
In-Reply-To: <a2b256a93395b0237cb2288593e9cd84@in.tum.de>

On Fri, Apr 29, 2016, Markus Weißmann wrote:
> Thanks a lot Gerd and Mark: It was in the C code: A missing
> CAMLlocal(). =)
> 
> The funny thing was: It had _nothing_ to do with the piece of code
> the bug surfaced around.

This is why calling Gc.collect can help trigger such issues: it can act
as a checker for the ocaml memory.

> So for anyone reading this thread in the future, tearing your hair
> out in frustration:
> Check your C code.
> 
> I hereby confirm the Stolpmann-Theorem: "Its always the C code."

Well, not always. The runtime is very good but not perfect. Still the
most likely culprit however.

-- 
Adrien Nader

      reply	other threads:[~2016-04-29 16:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29 11:04 Markus Weißmann
2016-04-29 13:17 ` Gerd Stolpmann
2016-04-29 14:14   ` Markus Weißmann
2016-04-29 14:25     ` Gerd Stolpmann
2016-05-02  8:27       ` Sébastien Hinderer
2016-05-02 14:30         ` Gabriel Scherer
2016-05-03 15:59           ` Boris Yakobowski
2016-04-29 14:57     ` Mark Shinwell
2016-04-29 15:41       ` Markus Weißmann
2016-04-29 16:41         ` Adrien Nader [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=20160429164108.GA23973@notk.org \
    --to=adrien@notk.org \
    --cc=caml-list@inria.fr \
    --cc=info@gerd-stolpmann.de \
    --cc=markus.weissmann@in.tum.de \
    --cc=mshinwell@janestreet.com \
    /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).