Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2001 14:32:27 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        current@FreeBSD.org
Subject:   RE: random as module needs work
Message-ID:  <XFMail.010313143227.jhb@FreeBSD.org>
In-Reply-To: <15022.32661.564910.735073@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@FreeBSD.org> -- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010313143227.jhb>