Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 1998 08:24:25 -0800
From:      David Greenman <dg@root.com>
To:        Chris Toshok <toshok@netscape.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: user limits, login.conf, etc. 
Message-ID:  <199801181624.IAA25235@implode.root.com>
In-Reply-To: Your message of "Sat, 17 Jan 1998 18:35:38 PST." <34C16A7A.9E950A3@netscape.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>I've been using freebsd for my work (on the navigator) for some time,
>and am having a problem with 2.2.5.
>
>I've upped every conceivable limit that I run across, and I still get 
>
>gdb: virtual memory exhausted: can't allocate 4072 bytes.
>
>when I try to debug netscape.  The gdb process never gets above 32 megs,
>and the netscape executable doesn't grow to more than 16 megs.
>
>The machine has way more than enough to handle this -- 128 megs
>physical, and 400 megs of swap.
>
>Here's my login.conf entry:
>
>default:\
>        :cputime=infinity:\
>        :datasize=256M:\
>        :stacksize=256M:\
>        :memorylocked=256M:\
>        :memoryuse=256M:\
>        :filesize=infinity:\
>        :coredumpsize=infinity:\
>        :maxproc=infinity:\
>        :openfiles=infinity:\
>        :priority=0:\
>        :requirehome@:\
>        :umask=022:\
>        :tc=auth-defaults:
>
>The kernel was compiled with:
>
>options         "MAXDSIZ=(512*1024*1024)"
>options         "DFLDSIZ=(512*1024*1024)"
>
>Anyone have a clue?  It's getting extremely frustrating debugging with
>printfs.

   What does the shell report that about the limits? Which shell are you
using? It sounds like there is another login.conf entry that is matching
your login. Have you tried manually setting the limits to infinity prior
to starting gdb?

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801181624.IAA25235>