X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C9FE352F16; Fri, 12 Aug 2005 23:44:22 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24666-04; Sat, 13 Aug 2005 02:44:20 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 4169952A4B; Fri, 12 Aug 2005 23:44:19 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j7D2iJE03191; Fri, 12 Aug 2005 22:44:19 -0400 (EDT) From: Bruce Momjian Message-Id: <200508130244.j7D2iJE03191@candle.pha.pa.us> Subject: Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP In-Reply-To: To: William ZHANG Date: Fri, 12 Aug 2005 22:44:19 -0400 (EDT) Cc: PostgreSQL-patches , PostgreSQL-interfaces X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=[AWL=0.010] X-Spam-Level: X-Archive-Number: 200508/25 X-Sequence-Number: 5696 William ZHANG wrote: > Make sure the lib directory is in the PATH. > I tested it in MinGW. > > $ ecpg main.pgc > $ gcc main.c -I../include -L../lib -lecpg > $ export PATH=$PATH:"/c/Program Files/PostgreSQL/8.0/lib" > $ ./a.exe > [1772]: ECPGdebug: set to 1 Ah, interesting. Why would it crash if the lib directory is not in the path? Because it can't load the library? --------------------------------------------------------------------------- > > > ""joshua masiko"" wrote > news:20050809194027.A1C76F0B08@svr2.postgresql.org... > > > > The following bug has been logged online: > > > > Bug reference: 1815 > > Logged by: joshua masiko > > Email address: joshua_masiko@yahoo.com > > PostgreSQL version: 8.0.3 > > Operating system: Windows XP SP2 > > Description: ECPGdebug causes crash on Windows XP > > Details: > > > > /* Processed by ecpg (4.0.1) */ > > /* These include files are added by the preprocessor */ > > #include > > #include > > #include > > #include > > /* End of automatic include section */ > > #line 1 "main.pgc" > > #include > > > > int main(int argc,char **argv) > > { > > ECPGdebug(1,stderr); > > return 0; > > } > > > > Running the above program results in a reproducible crash on Windows XP > > > > Environment > > Windows XP SP2 > > Visual Studio SP5 > > Postgresql 8.0.3 > > > > Any ideas?? > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 9: In versions below 8.0, the planner will ignore your desire to > > choose an index scan if your joining column's datatypes do not > > match > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073