From owner-freebsd-current Sun Sep 27 04:14:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA17679 for freebsd-current-outgoing; Sun, 27 Sep 1998 04:14:02 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA17645; Sun, 27 Sep 1998 04:13:29 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.1/8.9.1/Spinner) with ESMTP id TAA12489; Sun, 27 Sep 1998 19:12:26 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199809271112.TAA12489@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: John Hay cc: Tor.Egge@fast.no, freebsd-current@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG Subject: Re: Weired top display at smp current kernel from today In-reply-to: Your message of "Sat, 26 Sep 1998 09:26:30 +0200." <199809260726.JAA06562@zibbi.mikom.csir.co.za> Date: Sun, 27 Sep 1998 19:12:25 +0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Hay wrote: > > > Sounds like a bug in the ELF image activator. It's possible that > > > something got bent when the corefile writing code went in (waves dead > > > poultry speculatively). > > > > It is a bug in cpu_fork(). > > > > pcb_mpnest should be initialized to 1. > > > > Index: vm_machdep.c [..] > > This fix it for me. ... This fix seems to be binary format neutral, so > why didn't it happen with an aout /sbin/init? Just luck of the draw. Sometimes it worked, sometimes not - depending on timing, the nested state of the kernel at the point of the fork, etc. Oh well, one thing at least.. While tracking this down, I optimized the imgact_elf.c code to use the newer streamlined VM interfaces to get a faster and more deterministic ELF exec() - the same style as the aout exec code. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message