From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA15858; Wed, 28 May 2003 21:46:35 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA15849 for ; Wed, 28 May 2003 21:46:34 +0200 (MET DST) Received: from mailman.research.att.com (H-135-207-24-32.research.att.com [135.207.24.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h4SJkXH18303 for ; Wed, 28 May 2003 21:46:33 +0200 (MET DST) Received: from bigmail.research.att.com (bigmail.research.att.com [135.207.30.101]) by mailman.research.att.com (8.12.8/8.12.8) with ESMTP id h4SJg73j011218; Wed, 28 May 2003 15:42:07 -0400 Received: from research.att.com (squeak.research.att.com [135.207.26.39]) by bigmail.research.att.com (8.11.6+Sun/8.11.6) with ESMTP id h4SJkUV00474; Wed, 28 May 2003 15:46:30 -0400 (EDT) Message-ID: <3ED511E5.8060401@research.att.com> Date: Wed, 28 May 2003 15:45:41 -0400 From: "Mary F. Fernandez" Organization: AT&T Labs Research User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 X-Accept-Language: en, es MIME-Version: 1.0 To: caml-list@inria.fr, Jerome Simeon Subject: [Caml-list] Question about register_global_root Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; mff:99 973:99 fernandez:01 caml:01 referenced:02 heap:03 variable:03 addresses:96 somewhat:06 core:06 mary:93 root:07 registers:07 comment:08 www:91 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi Caml experts, We are using register_global_root to register addresses in the malloc'd C heap that contain Caml values. We noticed that register_global_root (comment below) expects a global C variable, but we assumed that it should work with malloc'd addresses as well. Is there any reason that it would not? /* [register_global_root] registers a global C variable as a memory root for the duration of the program, or until [remove_global_root] is called. */ We are getting (somewhat random) core dumps after calling the same Caml function repeatedly on the same Caml value (which is referenced from the C heap). Thanks, Mary -- Mary Fernandez, Principal Technical Staff Member AT&T Labs - Research, 180 Park Ave., Room E243, Florham Park, NJ 07932-0971 phone: 973-360-8679, fax: 973-360-8187 mff@research.att.com, http://www.research.att.com/~mff ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners