From owner-freebsd-stable Thu May 9 10:33: 2 2002 Delivered-To: freebsd-stable@freebsd.org Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by hub.freebsd.org (Postfix) with ESMTP id 7B08637B404; Thu, 9 May 2002 10:32:56 -0700 (PDT) Received: from horsey.gshapiro.net (gshapiro@localhost [IPv6:::1]) by horsey.gshapiro.net (8.12.3/8.12.3) with ESMTP id g49HVLSd052056 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 9 May 2002 10:31:21 -0700 (PDT) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.3/8.12.3/Submit) id g49HVL4k052055; Thu, 9 May 2002 10:31:21 -0700 (PDT) Date: Thu, 9 May 2002 10:31:21 -0700 From: Gregory Neil Shapiro To: marius@alchemy.franken.de Cc: Gregory Neil Shapiro , Mike Tancsa , stable@FreeBSD.ORG, sendmail-questions@sendmail.org Subject: Re: milter memory leak ? Message-ID: <20020509173121.GB51395@horsey.gshapiro.net> References: <5.1.0.14.0.20020507024124.02f0e4d0@192.168.0.12> <15576.63.850937.404110@horsey.gshapiro.net> <20020509192517.C24010@newtrinity.default-network.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020509192517.C24010@newtrinity.default-network.net> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 09, 2002 at 07:25:17PM +0200, marius@alchemy.franken.de wrote: > On Tue, May 07, 2002 at 09:26:39AM -0700, Gregory Neil Shapiro wrote: > > mike> Am I safe in assuming the sample milter in the documentation is free of > > mike> error ? This is from > > > > No, I just found one. By the way, you should probably mail > > sendmail-questions@sendmail.org for sendmail related questions, not > > freebsd-stable. > > > > could you please tell us the bug ? Note that above I said to mail to sendmail-questions and not freebsd-stable. That also implies not both of them. :) I ended up cleaning up a lot of code there. You can use the sample code in libmilter/README instead. > is there a known problem in the thread related stuff of libmilter or the > pthread implementation of freebsd ? Not as of yet. > when i assemble a linked list of the recipients and finally try to put > the list into a single string malloc()/realloc() fails at a certain > point and the next function-call (regardless which funtion, also e.g. > printf()) triggers a segfault. this happens when there are ~8-10 > recipients, for less it works. Sounds like a bug in your code. Perhaps you aren't allocating enough memory and are overflowing. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message