Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 1998 08:20:33 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>, Mike Smith <mike@smith.net.au>
Cc:        FreeBSD current users <FreeBSD-current@FreeBSD.ORG>
Subject:   Re: Memory leak in inetd in last week's -current?
Message-ID:  <19980319082033.12206@freebie.lemis.com>
In-Reply-To: <587.890257623@critter.freebsd.dk>; from Poul-Henning Kamp on Wed, Mar 18, 1998 at 10:47:03PM %2B0100
References:  <199803182125.NAA23054@dingo.cdrom.com> <587.890257623@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 March 1998 at 22:47:03 +0100, Poul-Henning Kamp wrote:
> In message <199803182125.NAA23054@dingo.cdrom.com>, Mike Smith writes:
>>> I've just discovered that my inetd has been rejecting connections with
>>> the following message:
>>>
>>> $ ftp ftp.lemis.com
>>> Connected to freebie.lemis.com.
>>> inetd in realloc(): warning: junk pointer, too high to make sense.
>>> ftp>
>>>
>>> I took a ktrace of it happening, if that's of any use, and restarted
>>> inetd, which made the problem go away.  Any ideas?
>>
>> Bug in inetd, normally associated with malloc failure (system out of
>> memory).
>>
>> Possibly bad use of a low (nonzero) magic pointer value, or possibly
>> attempting to use a pointer to a static item as a substitute.
>
> Wrong.
>
> It says "too >high< to make sense".
>
> Likely causes:
>
> 	pointer to a stack item
> 	pointer to a previously free'ed piece of memory.
> 	pointer to mmaped memory, for instance shlib data
> 	uninitialized pointer.
>
> Technically it means that the pointer is higher than sbrk(0).

Now *that*'s the kind of information which makes sense to me.

OK, that looks like a program logic bug, not the results of loss of
swap space (of which I should have always had at least 80 MB over).
Any ideas about how to look for this particular needle in a haystack?

Greg


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?19980319082033.12206>