NetBSD-Bugs archive

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

Re: pkg/54192: lang/rust build error



On Tue, Oct 15, 2019 at 07:15:01PM +0000, coypu%sdf.org@localhost wrote:
>  Here's a backtrace of the problem.
>  (Rust 1.36, netbsd-current as of ~october 2019)

Try the attached patch. It's the only constellation that makes sense to
me.

Joerg
diff -r 7e46460ebf1d sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c	Tue Oct 15 06:58:12 2019 +0000
+++ b/sys/kern/kern_lwp.c	Wed Oct 16 00:35:25 2019 +0200
@@ -902,6 +902,8 @@
 	if ((flags & LWP_PIDLID) != 0) {
 		lid = proc_alloc_pid(p2);
 		l2->l_pflag |= LP_PIDLID;
+	} else if (p2->p_nlwps == 0) {
+		lid = l1->l_lid;
 	} else {
 		lid = 0;
 	}


Home | Main Index | Thread Index | Old Index