Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E76B92E010F for ; Tue, 11 Dec 2007 11:07:20 -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 11646-02 for ; Tue, 11 Dec 2007 11:07:17 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 62A382E005A for ; Tue, 11 Dec 2007 11:07:16 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id lBBF7DxQ007892; Tue, 11 Dec 2007 10:07:14 -0500 (EST) To: Craig James cc: pgsql-performance@postgresql.org Subject: Re: libgcc double-free, backend won't die In-reply-to: <475E4133.5080009@emolecules.com> 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> Comments: In-reply-to Craig James message dated "Mon, 10 Dec 2007 23:50:11 -0800" Date: Tue, 11 Dec 2007 10:07:13 -0500 Message-ID: <7891.1197385633@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/132 X-Sequence-Number: 27948 Craig James writes: > This is driving me crazy. I have some Postgres C function extensions in a shared library. They've been working fine. I upgraded to Fedora Core 6 and gcc4, and now every time psql(1) disconnects from the server, the serverlog gets this message: > *** glibc detected *** postgres: mydb mydb [local] idle: double free or corruption! (!prev): 0x08bfcde8 Have you tried attaching to one of these processes with gdb to see where it ends up? Have you checked to see if the processes are becoming multi-threaded? regards, tom lane