Subject: Still panicing after all these weeks
To: MacBSD List <port-mac68k@NetBSD.ORG>
From: Paul Goyette <paul@pgoyette.bdt.com>
List: port-mac68k
Date: 03/22/1997 07:07:25
On a Mac68k kernel built from sources current as last Saturday (Mar 15),
I've gotten the following panic.  This panic has been happening for many
weeks now, at least since the last big batch of vm changes.  And it is
totally repeatable - it happens every time I boot up in multi-user mode.

    panic: pmap_alloc_pv: pgi_nfree inconsistent

The panic happens right in the middle of running `fsck -p' in /etc/rc, and
always happens at the same place.  If I boot the system up into single-
user mode, and then issue the same `fsck -p' command, everything goes
normally, and after I mount the various filesystems with `mount -a' I can
type Control-D and proceed into multi-user mode without further problems.  

A stack trace provides the following:

  _pmap_alloc_pv(7e47000, 1, 7e47000, 30000, ffffffff) + d6
  _pmap_enter(be21c, 7e47000, 66f000, 3, 1) + 150
  _vmapbuf(7f9830, 2000, 30000, 2000, 6b88c00) + b4
  _physio(95958, 0, d0e, 100000, 95c7e) + 174
  _sdread(d0e, 812f24, 0) + 1c
  _spec_read(812ed4, 812ee8, 2edc8, 812ed4, f1) + a6
  _ufsspec_read(812ed4) + 28
  _vn_read(6b9f340, 812f24, 6b88c00) + b8
  _sys_read(6ba2400, 812f88, 812f80) + a0
  _syscall(3) + 10e
  _trap0() + e

(Note:  the above was copied down by hand, and although I'm pretty sure I
got it right, you never know...)

I'm gonna sup the very latest and greatest sources right now, and I'll see
if the problem has been cleared.  But I don't remember seeing anything
this last week or two regarding the vm system.

------------------------------------------------------------------------------
| Paul Goyette       | PGP Public Key fingerprint:  | E-mail addresses:      |
| Network Consultant |     0E 40 D2 FC 2A 13 74 A0  |  paul@pgoyette.bdt.com |
| and kernel hacker  |     E4 69 D5 BE 65 E4 56 C6  |  paul_goyette@ins.com  |
------------------------------------------------------------------------------