Version française
Home     About     Download     Resources     Contact us    
Browse thread
caml_oldify_local_roots crashes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: haiku.issa <haiku.issa@l...>
Subject: caml_oldify_local_roots crashes
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)