pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #1815: ECPGdebug causes crash on Windows XP
5+ messages / 3 participants
[nested] [flat]
* BUG #1815: ECPGdebug causes crash on Windows XP
@ 2005-08-09 19:40 joshua masiko <joshua_masiko@yahoo.com>
0 siblings, 2 replies; 5+ messages in thread
From: joshua masiko @ 2005-08-09 19:40 UTC (permalink / raw)
To: pgsql-bugs@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 <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??
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #1815: ECPGdebug causes crash on Windows XP
@ 2005-08-10 06:15 William ZHANG <uniware@zedware.org>
parent: joshua masiko <joshua_masiko@yahoo.com>
1 sibling, 1 reply; 5+ messages in thread
From: William ZHANG @ 2005-08-10 06:15 UTC (permalink / raw)
To: pgsql-bugs@postgresql.org
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
""joshua masiko"" <joshua_masiko@yahoo.com> 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 <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
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP
@ 2005-08-13 02:43 Bruce Momjian <pgman@candle.pha.pa.us>
parent: joshua masiko <joshua_masiko@yahoo.com>
1 sibling, 0 replies; 5+ messages in thread
From: Bruce Momjian @ 2005-08-13 02:43 UTC (permalink / raw)
To: joshua masiko <joshua_masiko@yahoo.com>; +Cc: pgsql-interfaces; PostgreSQL-patches <pgsql-patches@postgresql.org>
Can someone on the interfaces list comment on this? Thanks.
---------------------------------------------------------------------------
joshua masiko wrote:
>
> 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 <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
>
--
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP
@ 2005-08-13 02:44 Bruce Momjian <pgman@candle.pha.pa.us>
parent: William ZHANG <uniware@zedware.org>
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Momjian @ 2005-08-13 02:44 UTC (permalink / raw)
To: William ZHANG <uniware@zedware.org>; +Cc: PostgreSQL-patches <pgsql-patches@postgresql.org>; pgsql-interfaces
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@yahoo.com> 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 <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@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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP
@ 2005-08-13 13:10 William ZHANG <uniware@zedware.org>
parent: Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: William ZHANG @ 2005-08-13 13:10 UTC (permalink / raw)
To: pgsql-patches@postgresql.org
"Bruce Momjian" <pgman@candle.pha.pa.us>
wrote:200508130244.j7D2iJE03191@candle.pha.pa.us...
> 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?
Maybe I misunderstood the word 'crash'. If I forgot to put the lib
directory,
it will make Windows popup a GUI warning window.
joshua masiko: Can you give more information?
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2005-08-13 13:10 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09 19:40 BUG #1815: ECPGdebug causes crash on Windows XP joshua masiko <joshua_masiko@yahoo.com>
2005-08-10 06:15 ` William ZHANG <uniware@zedware.org>
2005-08-13 02:44 ` Bruce Momjian <pgman@candle.pha.pa.us>
2005-08-13 13:10 ` William ZHANG <uniware@zedware.org>
2005-08-13 02:43 ` Bruce Momjian <pgman@candle.pha.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox