[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PID-reuse races fix, introduced GCC validation brakage
From: |
Pedro Alves |
Subject: |
Re: PID-reuse races fix, introduced GCC validation brakage |
Date: |
Thu, 31 Mar 2016 15:54:33 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 |
On 03/30/2016 04:03 PM, Yvan Roux wrote:
>
> I not sure what's the best way to fix this issue without
> re-introducing the pid race in GDB. I'm testing a solution which
> first gather all the childs processes of the close_wait_program pid
> input (with a recursive call of pgrep -P) and then kill them all with
> a -15, my assumption is that killing explicitly all the processes
> (maybe in the child -> parent order) will avoid the need of stdin
> closing and the pid re-use race, but I might be wrong, and all
> comments are welcome.
Since the process may ignore SIGTERM/15, seems to me you'd still need
to wait a bit and kill with SIGKILL/9 if the process doesn't die
the first time around. So I'm not seeing how, but maybe if you
showed a snippet it'd be clearer.
> It works so far on a subset of the testsuite,
> but I'm still validating this approach. Now, maybe just the reducing
> the sleeping time might workaround the issue....
Thanks,
Pedro Alves
- Re: PID-reuse races fix, introduced GCC validation brakage, (continued)
- Re: PID-reuse races fix, introduced GCC validation brakage, Pedro Alves, 2016/03/31
- Re: PID-reuse races fix, introduced GCC validation brakage, Yvan Roux, 2016/03/31
- Re: PID-reuse races fix, introduced GCC validation brakage, Pedro Alves, 2016/03/31
- Re: PID-reuse races fix, introduced GCC validation brakage, Yvan Roux, 2016/03/31
- Re: PID-reuse races fix, introduced GCC validation brakage, Pedro Alves, 2016/03/31
- Re: PID-reuse races fix, introduced GCC validation brakage, Yvan Roux, 2016/03/31
- Re: PID-reuse races fix, introduced GCC validation brakage, Pedro Alves, 2016/03/31
- Re: PID-reuse races fix, introduced GCC validation brakage, Yvan Roux, 2016/03/31
- Re: PID-reuse races fix, introduced GCC validation brakage, Pedro Alves, 2016/03/31
Re: PID-reuse races fix, introduced GCC validation brakage,
Pedro Alves <=