From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 4D97BBB91 for ; Sat, 25 Dec 2004 14:11:20 +0100 (CET) Received: from mx.laposte.net (mx.laposte.net [80.245.62.11]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBPDBJCf031691 for ; Sat, 25 Dec 2004 14:11:20 +0100 Received: from laposte.net (127.0.0.1) by mx.laposte.net (7.0.028) id 41B63FBC00C50BFE for caml-list@yquem.inria.fr; Sat, 25 Dec 2004 14:11:19 +0100 Date: Sat, 25 Dec 2004 14:11:19 +0100 Message-Id: Subject: caml_oldify_local_roots crashes MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "haiku.issa" To: "caml-list" X-XaM3-API-Version: 4.1 (B51) X-type: 0 X-SenderIP: 127.0.0.1 X-Miltered: at nez-perce with ID 41CD66F8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; oldify:01 developping:01 ocaml:01 hanged:01 gdb:01 oldify:01 replacing:01 merging:01 iterative:01 minor:01 minor:01 advices:01 ...:98 rewrite:01 int:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: 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=0A=0AAcc=E9dez au courrier =E9lect= ronique de La Poste : www.laposte.net ; =0A3615 LAPOSTENET (0,34=80/mn) ;= t=E9l : 08 92 68 13 50 (0,34=80/mn)=0A=0A