Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Basile Starynkevitch <basile@starynkevitch.net>
To: Paul Steckler <steck@stecksoft.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] More re GC hanging
Date: Sun, 15 Aug 2010 11:16:50 +0200	[thread overview]
Message-ID: <1281863810.2115.11.camel@glinka> (raw)
In-Reply-To: <AANLkTinSCboBztaTUvQBrY-p7BT=kC=WnhYCgMxetjcW@mail.gmail.com>

On Sun, 2010-08-15 at 18:40 +1000, Paul Steckler wrote:
> > I guess this is related to the fact that recent Linux kernel have turned
> > on the randomize virtual address space feature -designed to improve
> > system security. You could disable it by
> >  echo 0 > /proc/sys/kernel/randomize_va_space
> > but first learn more about it.
> 
> For some reason, I was able to edit that file using emacs, even when
> echo wouldn't work.

To check that it did work as expected (which I doubt) do
   cat /proc/sys/kernel/randomize_va_space
it should give 0
> 
> But the hanging problem persists.

Are you sure that you don't have badly coded C routines that you call
from your Ocaml code (don't forget correct use of CAMLparam & CAMLlocal,
read again carefully
http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html and perhaps
other material about precise garbage collectors). 

Are you sure you don't have a memory leak in your Ocaml code? This could
happen when a reference value refers to a "big" value you don't need
anymore.

Cheers. 
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***


  reply	other threads:[~2010-08-15  9:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15  5:57 Paul Steckler
2010-08-15  7:03 ` [Caml-list] " Basile Starynkevitch
2010-08-15  8:34   ` Paul Steckler
2010-08-15  8:40   ` Paul Steckler
2010-08-15  9:16     ` Basile Starynkevitch [this message]
     [not found]       ` <AANLkTi=-8ZcxSy08fsh8wkTvscGLYzBsqN07OmOi5o6d@mail.gmail.com>
2010-08-15  9:55         ` Fwd: " Paul Steckler
2010-08-15 10:41           ` Fwd: " Sylvain Le Gall
2010-08-15 11:32             ` [Caml-list] " Vincent Hanquez
2010-08-15 10:45       ` [Caml-list] " Adrien
2010-08-15 11:17         ` David Allsopp
2010-08-15 12:12         ` Basile Starynkevitch
2010-09-01 15:24         ` Damien Doligez
2010-09-01 16:44           ` Adrien
2010-08-15 10:19     ` rixed
2010-08-20 15:21   ` Richard Jones
2010-08-20 23:30     ` Eray Ozkural
2010-08-22 13:02       ` Adrien
2010-08-25 15:17         ` Goswin von Brederlow
2010-08-18 12:22 ` Goswin von Brederlow

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=1281863810.2115.11.camel@glinka \
    --to=basile@starynkevitch.net \
    --cc=caml-list@yquem.inria.fr \
    --cc=steck@stecksoft.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