Re: Reg : gdb crash is seen while attaching a process to gdb.

Andreas Schwab <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On Apr 27 2017, RAJESH DASARI <[email protected]> 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, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.