Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4FA582E01D5 for ; Tue, 11 Dec 2007 11:17:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 14336-04 for ; Tue, 11 Dec 2007 11:17:20 -0400 (AST) Received: from mail.emolecules.com (66-226-76-106.dedicated.abac.net [66.226.76.106]) by postgresql.org (Postfix) with ESMTP id 000012E019F for ; Tue, 11 Dec 2007 11:17:19 -0400 (AST) Received: (qmail 736 invoked by uid 2020); 11 Dec 2007 07:32:57 -0800 Received: from wsip-68-224-174-233.sd.sd.cox.net (HELO lisa-james-computer.local) (68.224.174.233) by 192.168.0.4 with SMTP; 11 Dec 2007 07:32:57 -0800 Message-ID: <475EA9FD.9000706@emolecules.com> Date: Tue, 11 Dec 2007 07:17:17 -0800 From: Craig James User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Alvaro Herrera CC: pgsql-performance@postgresql.org Subject: Re: libgcc double-free, backend won't die References: <7EB0D6C0-48E2-4155-8559-9113D3BD2785@ketema.net> <4728CF7B.7040306@gmail.com> <4728FB3E.3070709@shaw.ca> <472978BE.9@hagander.net> <4729B1E9.2080306@gmail.com> <475E4133.5080009@emolecules.com> <20071211112128.GB4708@alvh.no-ip.org> <475EA754.1090307@emolecules.com> <20071211151416.GD10710@alvh.no-ip.org> In-Reply-To: <20071211151416.GD10710@alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/135 X-Sequence-Number: 27951 Alvaro Herrera wrote: > Craig James wrote: > >> Here is my guess -- and this is just a guess. My functions use a >> third-party library which, of necessity, uses malloc/free in the >> ordinary way. I suspect that there's a bug in the Postgres palloc() >> code that's walking over memory that regular malloc() allocates. The >> third-party library (OpenBabel) has been tested pretty thoroughly by >> me an others and has no memory corruption problems. All malloc's are >> freed properly. Does that seem like a possibility? > > Not really. palloc uses malloc underneath. But some Postgres code could be walking off the end of a malloc'ed block, even if palloc() is allocating and deallocating correctly. Which is why I was hoping to use valgrind to see what's going on. Thanks, Craig