Re: stress-ng process termination issue

Michael Kelly <[email protected]>
Newsgroups gmane.linux.debian.ports.hurd
Message-ID <[email protected]>
Thanks for the quick feedback. I will continue to satisfy myself that it 
doesn't obviously introduce any new issues. My test case has just hit 
problems with the default pager (the stack trace suggested it had issues 
writing so perhaps it had run out of swap space). I'll start it running 
again over night with a slightly lower memory load. I'll also do some 
alternative testing, perhaps some large builds and if all is well offer 
the change as a patch for consideration.

Regards,

Mike.

On 29/07/2025 21:11, Samuel Thibault wrote:
> Hello,
>
> Michael Kelly, le mar. 29 juil. 2025 20:46:24 +0100, a ecrit:
>> I think that I have an understanding of how this problem arises. Apologies
>> for the long explanation especially if much of this is already apparent to
>> you.
> Thanks for the investigation and the details!
>
>> I've attached my proposal for review. The solution appears clumsy but I
>> could not see a more trivial method of traversing the list safely with the
>> locks necessarily released for the call to thread_force_terminate().
> It looks alright to me, just pre-acquiring a reference for the next
> thread.
>
> Samuel
>
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.