From owner-freebsd-current Tue Mar 13 14:33:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 88A0337B718 for ; Tue, 13 Mar 2001 14:33:24 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f2DMWmG39168; Tue, 13 Mar 2001 14:32:48 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <15022.32661.564910.735073@grasshopper.cs.duke.edu> Date: Tue, 13 Mar 2001 14:32:27 -0800 (PST) From: John Baldwin To: Andrew Gallatin Subject: RE: random as module needs work Cc: current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 13-Mar-01 Andrew Gallatin wrote: > Gdb says: > > (gdb) l* 0xfffffc000042f824 > 0xfffffc000042f824 is in name2oid (../../kern/kern_sysctl.c:621). > 616 *p = '\0'; > 617 > 618 oidp = SLIST_FIRST(lsp); > 619 > 620 while (oidp && *len < CTL_MAXNAME) { > 621 if (strcmp(name, oidp->oid_name)) { > 622 oidp = SLIST_NEXT(oidp, oid_link); > 623 continue; > 624 } > 625 *oid++ = oidp->oid_number; Perhaps static sysctls in modules are broken for some reason? The sysctls were all recently changed from dynamic to static. > When I boot into single user mode and try to load the module after boot, this > happens: > Enter full pathname of shell or RETURN for /bin/sh: ># kldload random > panic: cpu_fork: curproc This is a bug. For kernel threads, we fork off of proc0, not curproc, so that check in the alpha cpu_fork() is bogus. > syncing disks... > done > Uptime: 27s -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message