Date: Fri, 4 Jan 2008 15:21:50 +0300 From: Andrey Chernov <ache@nagual.pp.ru> To: Jason Evans <jasone@FreeBSD.ORG> Cc: freebsd-current@FreeBSD.ORG, Poul-Henning Kamp <phk@FreeBSD.ORG> Subject: Re: sbrk(2) broken Message-ID: <20080104122149.GA17103@nagual.pp.ru> In-Reply-To: <477C82F0.5060809@freebsd.org> References: <477C82F0.5060809@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 02, 2008 at 10:38:40PM -0800, Jason Evans wrote: > Poul-Henning noticed today that xchat fails to start if malloc uses sbrk > internally. Malloc() itself knows about memory amount _really_ in use by a program and could check it don't go beyond the limits, but for this it needs run-time check via getrlimit() call for each malloc() call (a program can use setrlimit() by itself). Traking direct mmap()s and sbrk()s outside of malloc() is also needed. -- http://ache.pp.ru/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080104122149.GA17103>