Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: William ZHANG <uniware(at)zedware(dot)org>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP
Date: 2005-08-13 02:44:19
Message-ID: 200508130244.j7D2iJE03191@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-interfaces pgsql-patches

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"" <joshua_masiko(at)yahoo(dot)com> wrote
> news:20050809194027(dot)A1C76F0B08(at)svr2(dot)postgresql(dot)org(dot)(dot)(dot)
> >
> > The following bug has been logged online:
> >
> > Bug reference: 1815
> > Logged by: joshua masiko
> > Email address: joshua_masiko(at)yahoo(dot)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 <ecpgtype.h>
> > #include <ecpglib.h>
> > #include <ecpgerrno.h>
> > #include <sqlca.h>
> > /* End of automatic include section */
> > #line 1 "main.pgc"
> > #include <stdio.h>
> >
> > 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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message William ZHANG 2005-08-13 13:10:46 Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP
Previous Message Bruce Momjian 2005-08-13 02:43:26 Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP

Browse pgsql-interfaces by date

  From Date Subject
Next Message jtv 2005-08-13 06:20:02 Re: Getting oid with libpq
Previous Message Bruce Momjian 2005-08-13 02:43:26 Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-08-13 02:49:26 Re: createuser patch
Previous Message Bruce Momjian 2005-08-13 02:43:26 Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP