X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id CCF0CD1C91C for ; Mon, 4 Aug 2003 22:41:16 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 53565-06 for ; Mon, 4 Aug 2003 19:40:02 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id CA102D1CA01 for ; Mon, 4 Aug 2003 19:41:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h74Mf2Sa013532; Mon, 4 Aug 2003 18:41:02 -0400 (EDT) To: Frank van Vugt Cc: pgsql-interfaces@postgresql.org Subject: Re: Multi-threaded user app segfaults when using libpq with separate connections In-reply-to: <200308050034.20405.ftm.van.vugt@foxi.nl> References: <200308041729.13212.ftm.van.vugt@foxi.nl> <2778.1060012055@sss.pgh.pa.us> <200308050034.20405.ftm.van.vugt@foxi.nl> Comments: In-reply-to Frank van Vugt message dated "Tue, 05 Aug 2003 00:34:20 +0200" Date: Mon, 04 Aug 2003 18:41:02 -0400 Message-ID: <13531.1060036862@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/12 X-Sequence-Number: 4366 Frank van Vugt writes: >> You may care to try your test with CVS tip and see if it works better. > I've retried this with a cvs-version of this afternoon (local > time). The build stranded in plpgsql (I seem to need a more recent > bison), but at that point libpq was already finished. This still > resulted in more or less the same kind of errors. Are you sure that each thread is accessing only its own PGconn object? Other than that, not sure what to suggest. I get the impression that something is clobbering memory with abandon. Do you have any Purify-like tools to look for memory stomp problems? regards, tom lane