Subject: Re: "panic malloc: out of space in kmem_map" on mac68k
To: None <current-users@NetBSD.ORG, port-mac68k@NetBSD.ORG, port-m68k@NetBSD.ORG>
From: Chuck Cranor <chuck@maria.wustl.edu>
List: current-users
Date: 05/14/1998 09:52:20
hi-

> I've built a mac68k kernel with the newly integrated UVM code (kudos
> to those who worked hard to get it working!).  It booted fine but when
> I tried to run Mew (an Emacs-based mail user agent), I got a panic:
> panic malloc: out of space in kmem_map

>It turns out that I still get the same panic even though I increased
>NKMEMCLUSTERS to 2048...  It's pretty reproducible.  It seems to occur
>whenever Emacs 20.2 tries to exec something.

Ken Nakata and I tracked this down to a wrapping-pointer problem in 
amap_copy (uvm_amap.c) that only occurs on systems that have a stack
that starts near the top of the virtual address space (e.g. within
about 64K of 0xffffffff).  i just checked in a fix for it (fixed in
uvm_amap.c 1.9)


chuck