NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/54687 (ATF tests time out since kern_lwp.c 1.206)



The following reply was made to PR kern/54687; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/54687 (ATF tests time out since kern_lwp.c 1.206)
Date: Sun, 10 Nov 2019 09:21:24 -0000 (UTC)

 gson%NetBSD.org@localhost writes:
 
 >Synopsis: ATF tests time out since kern_lwp.c 1.206
 
 p2 isn't locked when checking p_nlwps. This might not be
 a problem as p2->p_nlwps == 0 should only exist while
 forking, but I'm not sure.
 
 lids are expected to be unique, but this is guaranteed only by a
 counter that can conflict with such an assigned lid. You could
 avoid this by setting the LID_SCAN flag in the counter.
 
 This is also only necessary if the original lid isn't from the main
 LWP and the expensive search can be limited to the more rare case.
 
 Of course, the linker could be fixed, instead of adjusting the kernel
 to its expectations.
 
 -- 
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index