Subject: nightly "panic: ptdi %x"
To: None <netbsd-bugs@NetBSD.ORG, netbsd-help@NetBSD.ORG, port-i386@NetBSD.ORG,>
From: Bob Sutterfield <Bob@XC.Org>
List: netbsd-help
Date: 03/26/1997 11:17:21
Running NetBSD-1.2 on a Hexium-200, we're still seeing nightly panics.

Because for a while many of the panics said "vm_map_entry_create: out
of map entries", I replaced vm/vm_map.c with "1.26 1997/02/25
23:27:08" from the NetBSD-current source tree on March 12.  I also
increased MAX_KMAP from 10 to 100 and MAX_KMAPENT from 500 to 5000.
That flavor of panic seems to have subsided.

Now we've started seeing "panic: ptdi %x".  I'm not familiar enough
with the changes of -1.2.1 and -current in arch/i386/i386/* to know
whether I'm safe to just replace pmap.c, or whether I need to worry
about its routines' external interfaces' compatibility with other
modules in that area.  Or even whether it's confined to pmap.c.

Or is now the time to schedule the 1.2.1 upgrade?  Has the pmap
mechanism been fixed in 1.2.1?  Any insight, advice, and suggestions
would be most welcome.


In case it's helpful, here are some tidbits from the most informative
core (last night's) we've caught so far:

abraham# gdb --kernel /sys/arch/i*/comp*/A*/*.gdb netbsd.47.core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (i386-netbsd), Copyright 1993 Free Software Foundation, Inc...
panic: ptdi %x
#0  0xf819f697 in vm_fork (p1=0xf8897700, p2=0xf8d12b00)
    at ../../../../vm/vm_glue.c:223
223             p2->p_vmspace = vmspace_fork(p1->p_vmspace);
(kgdb) info line
Line 223 of "../../../../vm/vm_glue.c"
   starts at address 0xf819f68c <vm_fork+32>
   and ends at 0xf819f69d <vm_fork+49>.
(kgdb) info frame
Stack level 0, frame at 0xfa880f0c:
 eip = 0xf819f697 in vm_fork (../../../../vm/vm_glue.c:223); 
    saved eip 0xf81196d0
 called by frame at 0xfa880f2c
 source language c.
 Arglist at 0xfa880f0c, args: p1=0xf8897700, p2=0xf8d12b00
 Locals at 0xfa880f0c, Previous frame's sp is 0x0
 Saved registers:
  ebx at 0xfa880efc, ebp at 0xfa880f0c, esi at 0xfa880f00, edi at 0xfa880f04,
  eip at 0xfa880f10
(kgdb) info stack
#0  0xf819f697 in vm_fork (p1=0xf8897700, p2=0xf8d12b00)
    at ../../../../vm/vm_glue.c:223
#1  0xf81196d0 in fork1 (p1=0xf8897700, isvfork=0, retval=0xfa880f80)
    at ../../../../kern/kern_fork.c:269
#2  0xf8119338 in sys_fork (p=0xf8897700, v=0xfa880f88, retval=0xfa880f80)
    at ../../../../kern/kern_fork.c:73
#3  0xf81acb74 in syscall (frame={tf_es = -138477537, tf_ds = -138477537, 
      tf_edi = 0, tf_esi = 98368, tf_ebp = -138420856, tf_ebx = 87296, 
      tf_edx = 0, tf_ecx = 1, tf_eax = 2, tf_trapno = 3, tf_err = 2, 
      tf_eip = 268695091, tf_cs = 23, tf_eflags = 582, tf_esp = -138420868, 
      tf_ss = 31, tf_vm86_es = 0, tf_vm86_ds = 0, tf_vm86_fs = 0, 
      tf_vm86_gs = 0}) at ../../../../arch/i386/i386/trap.c:634
(kgdb) info args
p1 = (struct proc *) 0xf8897700
p2 = (struct proc *) 0xf8d12b00
(kgdb) info locals
addr = 4203220748
(kgdb) 

--
Bob Sutterfield                         +1 909 794 1151
Mission Aviation Fellowship / MAFlink Technical Manager
mailto:Bob@XC.Org                 http://www.XC.Org/bob
             Pray Globally - Serve Locally