Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "haiku.issa" <haiku.issa@laposte.net>
To: "caml-list" <caml-list@yquem.inria.fr>
Subject: caml_oldify_local_roots crashes
Date: Sat, 25 Dec 2004 14:11:19 +0100	[thread overview]
Message-ID: <I9A4MV$2E43D0D72D79CE0EEAF42771D086A320@laposte.net> (raw)

Hi,

I am currently developping a small piece of software that uses
both OCaml and C (for openGL). The main loop is in C and I use
callback to call a Caml function that processes the key that
was pressed and returns the new state of a matrix.

Everything worked fine until I added a subfunction that simply
merges two int lists. The program then hanged each time a key
was pressed, without even executing the "print_string" I had
set everywhere. After hittinh ^C, gdb tells me that it was
currently executing caml_oldify_local_roots. Replacing the
merging function with 'fun () -> ()' solves the thing but I
need it.
I tried to rewrite it in an iterative way and it works fine
until it tries to make a minor GC (forcing it with Gc.minor()
makes it also hang).

Compiling in native code changed nothing, unfortunately, and
google found no useful advices...

I can post my code if necessary.

Thanks in advance for any help/insight

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




             reply	other threads:[~2004-12-25 13:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-25 13:11 haiku.issa [this message]
2004-12-26  4:35 ` [Caml-list] " Jon Harrop
2004-12-30 22:41   ` Richard Jones

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='I9A4MV$2E43D0D72D79CE0EEAF42771D086A320@laposte.net' \
    --to=haiku.issa@laposte.net \
    --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