Subject: Re: GDB keeps running out of VM trying read kernel core
To: Craig Metz <cmetz@inner.net>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 05/30/1996 11:04:19
On Thu, 30 May 1996 09:53:22 -0400 
 Craig Metz <cmetz@inner.net> wrote:

 > 	I have a system with 16MB physical memory and 35MB of paging.
 > With debug symbols turned on, my full debug symbols image (netbsd.gdb)
 > is just over 10MB. Every time I try to get gdb to read the kernel core
 > (gdb -k netbsd.gdb netbsd.x.core), gdb complains with:

I get this when debugging lesstif apps on my sparc, too :-)  Try doing 
the following:

unlimit memoryuse
unlimit datasize

On my NetBSD/sparc system, tcsh defaults to:

lestat (thorpej) ~ 423% limit
cputime         unlimited
filesize        unlimited
datasize        16384 kbytes
stacksize       65536 kbytes
coredumpsize    unlimited
memoryuse       28936 kbytes
descriptors     64 
memorylocked    9645 kbytes
maxproc         532 
lestat (thorpej) ~ 424%

 > gdb: virtual memory exhausted: can't allocate 2414048 bytes.
 > 
 > 	I've tried this on another box with 32MB RAM and 60MB of paging
 > space, but I get the exact same error message (and number).
 > 
 > 	Are there known problems with the current GDB shipped with NetBSD
 > (-current or 1.1, they seem to be identical?) reading big kernel symbol
 > tables or core dumps that might be causing this?
 > 
 > 								-Craig

----save the ancient forests - http://www.bayarea.net/~thorpej/forest/----
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939