Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 1998 11:13:01 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>, rotel@indigo.ie
Cc:        Bill Paul <wpaul@skynet.ctr.columbia.edu>, Kris Kennaway <kkennawa@physics.adelaide.edu.au>, current@FreeBSD.ORG
Subject:   Re: inetd problems
Message-ID:  <19980706111301.V18970@freebie.lemis.com>
In-Reply-To: <10403.899676678@critter.freebsd.dk>; from Poul-Henning Kamp on Mon, Jul 06, 1998 at 12:11:18AM %2B0200
References:  <199807052032.VAA04596@indigo.ie> <10403.899676678@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday,  6 July 1998 at  0:11:18 +0200, Poul-Henning Kamp wrote:
> In message <199807052032.VAA04596@indigo.ie>, Niall Smart writes:
>> On Jul 5, 12:56pm, Bill Paul wrote:
>>> Subject: Re: inetd problems
>>>
>>> I encounter messages like this occasionally with my own code (mostly
>>> NIS+ stuff) and without exception, the cause has always been some
>>> kind of bug on my part (double free(), free()ing static buffers by
>>> mistake, corrupting the heap by wandering past the end of a malloc()ed
>>> buffer, etc...). All the theories I've heard so far point to some
>>> kind of VM problem; nobody as yet has been willing to admit that
>>> the problem is a bug in inetd.
>>
>> Well, if you look at http://www.freebsd.org/cgi/query-pr.cgi?pr=6858
>> you'll see why, it doesn't look like it's inetd's fault since other
>> services fail at the same time.
>
> There are two problems here, at least as far as my diagnosis goes:
>
> 1: kernel/VM problem
> 	means that you run out of memory and eventually malloc(3)
> 	may fail.

Do you mean kernel/VM problem or resource problem?  I don't see a
kernel bug, just the probability that all memory gets used up.

> 2: inetd probelm
> 	inetd doesn't correctly handle some exception conditions,
> 	maybe related to malloc(3) failing for the above or other
> 	reasons.

Agreed.

Greg
--
See complete headers for address and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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