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 <[EMAIL PROTECTED]> -- 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to