Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dan@codesourcery.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: GDB <gdb@sourceware.org>
Subject: Re: Is CLONE_VM really needed in gdbserver?
Date: Wed, 27 Jan 2010 00:08:00 -0000	[thread overview]
Message-ID: <20100127000821.GA29862@caradoc.them.org> (raw)
In-Reply-To: <6dc9ffc81001261551j6221db6v88e96713d6dd9497@mail.gmail.com>

On Tue, Jan 26, 2010 at 03:51:38PM -0800, H.J. Lu wrote:
> Hi,
> 
> There is a race condition between gdbserver and ld.so on Linux/x86-64:
> 
> http://www.sourceware.org/bugzilla/show_bug.cgi?id=11214
> 
> Is CLONE_VM really needed? In general, CLONE_VM is a very bad
> idea if there is any symbol lookup in both parent and child processes.

It is necessary because gdbserver supports uClinux.  However, on Linux
we might be able to get away with fork (see linux_tracefork_child in
gdb/linux-nat.c).

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2010-01-27  0:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 23:51 H.J. Lu
2010-01-27  0:08 ` Daniel Jacobowitz [this message]
2010-01-27 22:12   ` [patch] Fix CLONE_VM vs. TLS [Re: Is CLONE_VM really needed in gdbserver?] Jan Kratochvil
2010-01-28 16:22     ` H.J. Lu
2010-01-28 17:01     ` Daniel Jacobowitz
2010-01-29  1:26       ` Jan Kratochvil
2010-01-29  2:30         ` Daniel Jacobowitz
2010-01-29 12:41           ` Jan Kratochvil
2010-02-01 20:20             ` Jan Kratochvil

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=20100127000821.GA29862@caradoc.them.org \
    --to=dan@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=hjl.tools@gmail.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