Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: RAJESH DASARI <raajeshdasari@gmail.com>
Cc: Yao Qi <qiyaoltc@gmail.com>,  GDB <gdb@sourceware.org>
Subject: Re: Reg : gdb crash is seen while attaching a process to gdb.
Date: Thu, 27 Apr 2017 09:16:00 -0000	[thread overview]
Message-ID: <8737cugqhp.fsf@linux-m68k.org> (raw)
In-Reply-To: <CAPXMrf_+cHn9sjFY-yXy==cNoGS98cSmcV+R9TVLbeExru+NWQ@mail.gmail.com>	(RAJESH DASARI's message of "Thu, 27 Apr 2017 11:42:59 +0530")

On Apr 27 2017, RAJESH DASARI <raajeshdasari@gmail.com> wrote:

> +     /* sleep for a while to eliminate race condition on  update to kernel
> +      * task structure with the process state (STOP state of thread).
> +      */
> +     usleep(10000);

A sleep can never eliminate a race, only make it less likely.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


      reply	other threads:[~2017-04-27  9:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-24  6:27 RAJESH DASARI
2017-03-24 11:32 ` Yao Qi
2017-03-25 12:49   ` RAJESH DASARI
2017-03-27  8:54     ` Yao Qi
     [not found]       ` <CAPXMrf9sjaQ4DUF+2guOYNE2FGRsM7RCcnRxZZ6VT28xLu40ZA@mail.gmail.com>
2017-04-27  6:13         ` RAJESH DASARI
2017-04-27  9:16           ` Andreas Schwab [this message]

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=8737cugqhp.fsf@linux-m68k.org \
    --to=schwab@linux-m68k.org \
    --cc=gdb@sourceware.org \
    --cc=qiyaoltc@gmail.com \
    --cc=raajeshdasari@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