From: Ian Kent Subject: Re: problems in daemon/lookup.c Date: Fri, 23 Jan 2009 18:05:34 +0900 Message-ID: <1232701534.3011.35.camel@zeus.themaw.net> References: <408431290901192148idf9499xe12e58fb2b36a975@mail.gmail.com> <1232509747.3931.5.camel@zeus.themaw.net> <408431290901202115i1709c46s5bf1252f0a72b2c4@mail.gmail.com> <1232515783.3931.28.camel@zeus.themaw.net> <408431290901211721q162fb146vf071bff40727aa7b@mail.gmail.com> <1232590002.3069.14.camel@zeus.themaw.net> <408431290901211946p1b6b6236n249cffada9534b7a@mail.gmail.com> <1232604004.3239.15.camel@zeus.themaw.net> <408431290901220028h3fd5cbd1y317b1142ac6b043a@mail.gmail.com> <1232617153.3239.36.camel@zeus.themaw.net> <408431290901222242y5a254e84i91db363d934b2382@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <408431290901222242y5a254e84i91db363d934b2382@mail.gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Paul Wankadia Cc: autofs@linux.kernel.org On Fri, 2009-01-23 at 17:42 +1100, Paul Wankadia wrote: > On Thu, Jan 22, 2009 at 8:39 PM, Ian Kent wrote: > > > I wanted to understand your position... > > > > Oh, and I've just noticed that there's a `fatal' macro that > calls > > abort(3). It seems to be used widely, but solely for > unexpected > > Pthreads errors? > > So, now it looks like I'm contradicting myself, well > called, ;) > > The fatal() function was added much later than the times we > got > complains about autofs exiting upon errors, which lead to the > common > approach of continue if at all possible. The call is used > almost > exclusively for checking pthreads call returns that should > "never" fail. > The idea is that, rather than not bother checking them, abort > so we can > see where the fail occurred and get a backtrace from the core. > > Does dmalloc provide similar functionality in the event of memory > exhaustion? No. Dmalloc is more like valgrind but is linked in as a library. I found Dmalloc much better in pointing to trouble spots than valgrind. Unfortunately, I have not been able to get it to work for some time now and I never got the 64 bit library to function. Ian