mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Hubert Tonneau <hubert.tonneau@fullpliant.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.12-rc3 mmap lack of consistency among runs
Date: Fri, 29 Apr 2005 05:47:26 -0700	[thread overview]
Message-ID: <20050429054726.093a88cc.akpm@osdl.org> (raw)
In-Reply-To: <0561FRW12@server5.heliogroup.fr>

Hubert Tonneau <hubert.tonneau@fullpliant.org> wrote:
>
> As a way to freeze then restart processes,
> the first shot of the process calls 'mmap' with NULL as 'start',
> then restarts of the process will call 'mmap' with the value received at the
> first shot, and expect to be assigned the requested area.
> 
> This used to work perfectly with 2.6.11 and all previous kernels (unless some
> shared libraries have been upgraded in the mean time),
> but with 2.6.12-rc3 (I have not tested rc1 and rc2) it fails half time.
> 
> I can solve the problem through specifying a 'start' value at the first shot,
> but then I will get a more serious problem on the long run because the
> application would then have to be awared of the general layout of the address
> space enforced by the kernel and so could be disturbed by any change.

Maybe you're being bitten by the address space randomisation.

Try
	echo 0 > /proc/sys/kernel/randomize_va_space

  reply	other threads:[~2005-04-29 12:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-28  9:59 Hubert Tonneau
2005-04-29 12:47 ` Andrew Morton [this message]
2005-04-29 12:44 Hubert Tonneau
2005-04-29 13:20 ` Andrew Morton
2005-04-29 13:34   ` Arjan van de Ven
2005-04-29 13:29 ` Arjan van de Ven
2005-04-29 14:25 Hubert Tonneau
2005-04-29 18:36 Hubert Tonneau

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=20050429054726.093a88cc.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=hubert.tonneau@fullpliant.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®