From owner-freebsd-stable@FreeBSD.ORG Thu Jul 24 13:43:40 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14C8437B401 for ; Thu, 24 Jul 2003 13:43:40 -0700 (PDT) Received: from mailgate.sri.com (mailgate.SRI.COM [128.18.243.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 4B0E943FB1 for ; Thu, 24 Jul 2003 13:43:39 -0700 (PDT) (envelope-from gilham@csl.sri.com) Received: (qmail 11208 invoked from network); 24 Jul 2003 20:43:38 -0000 Received: from localhost (HELO mailgate.SRI.COM) (127.0.0.1) by mailgate.sri.com with SMTP; 24 Jul 2003 20:43:38 -0000 Received: from quarter.csl.sri.com ([130.107.1.30]) by mailgate.SRI.COM (SAVSMTP 3.1.0.29) with SMTP id M2003072413433831666 for ; Thu, 24 Jul 2003 13:43:38 -0700 Received: from snapdragon.csl.sri.com (snapdragon.csl.sri.com [130.107.19.20]) by quarter.csl.sri.com (8.12.9/8.12.9) with ESMTP id h6OKhcdW006094 for ; Thu, 24 Jul 2003 13:43:38 -0700 Message-Id: <200307242043.h6OKhcdW006094@quarter.csl.sri.com> To: freebsd-stable@freebsd.org In-Reply-To: Message from Gabor of "Thu, 24 Jul 2003 15:09:27 EDT." <20030724190927.GA87428@vmunix.com> Date: Thu, 24 Jul 2003 13:43:38 -0700 From: Fred Gilham Subject: Re: malloc does not return null when out of memory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 20:43:40 -0000 Gabor, Did you try the following? ln -s 'J' /etc/malloc.conf This will make malloc touch the bytes as it allocates them, and should cause it to realize it can't get the memory sooner. It will cause a slowdown for every program on the system that uses malloc, but perhaps it could at least solve the problem you are having. -- Fred Gilham gilham@csl.sri.com The spam folder --- you will never find a more wretched hive of scum and villainy. We must be cautious.