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

Andreas Schwab schwab@linux-m68k.org
Thu Apr 27 09:16:00 GMT 2017


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."



More information about the Gdb mailing list