Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 582D0476185 for ; Fri, 18 Oct 2002 10:23:08 -0400 (EDT) Received: from mxzilla4.xs4all.nl (mxzilla4.xs4all.nl [194.109.6.48]) by postgresql.org (Postfix) with ESMTP id 3272C476103 for ; Fri, 18 Oct 2002 10:23:07 -0400 (EDT) Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.3.11]) by mxzilla4.xs4all.nl (8.12.3/8.12.3) with ESMTP id g9IEN8Tj092984; Fri, 18 Oct 2002 16:23:08 +0200 (CEST) Received: (from jtv@localhost) by xs1.xs4all.nl (8.11.6/8.11.6) id g9IEN8p52609; Fri, 18 Oct 2002 16:23:08 +0200 (CEST) (envelope-from jtv) Date: Fri, 18 Oct 2002 16:23:08 +0200 From: "Jeroen T. Vermeulen" To: Savage Cc: pgsql-interfaces@postgresql.org Subject: Re: PgDatabase, on heap construction results in SIGSEGV. Message-ID: <20021018142308.GU11228@xs4all.nl> Mail-Followup-To: Savage , pgsql-interfaces@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/60 X-Sequence-Number: 3222 On Tue, Oct 15, 2002 at 07:26:25PM -0700, Savage wrote: > I am having a problem constructing a PgDatabase object. If I create > the object on the stack (as a var local to a function) then it > constructs and connects to the DB ok. But, if I create and construct > the object on the heap, a SIGSEGV occurs within libpq++.so.4. Are you sure that's exactly where and why it occurs? I can't think of any reason why libpq++ should care whether you use "PgDatabase Foo;" or "PgDatabase *Bar = new PgDatabase;" - so could you post some minimal code sample that produces the problem? (Gratuitous plug: you may also want to look at libpqxx, the more modern replacement for libp++: http://gborg.postgresql.org/project/libpqxx/ ) Jeroen