Unix Technical Forum

BUG #3623: initialisation probl.

This is a discussion on BUG #3623: initialisation probl. within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3623 Logged by: Guenter Abraham Email address: abraham@itbb.de PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:07 PM
Guenter Abraham
 
Posts: n/a
Default BUG #3623: initialisation probl.


The following bug has been logged online:

Bug reference: 3623
Logged by: Guenter Abraham
Email address: abraham@itbb.de
PostgreSQL version: 8.2
Operating system: winxp
Description: initialisation probl.
Details:

formerly stable programs being generated by ecpg suddenly terminates while
initialization at 0xc0000022

this small program demonstrates the effect:

///-- [
#include <stdio.h>
int main(int argc,char *argv[]) {
printf("tach\n");
return 0;
}

#ifdef ABRAUCH
#include "ecpglib.h"
void nothing(void)
{ ECPGtrans(__LINE__, NULL, "commit");}
#endif

/// -- ]

it terminates while initialization if ABRAUCH is defined. the function
"nothing" is NOT called!!

I'm using mingw:

gcc -v [:Reading specs from
d:/programme/mingw/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=c,c++,f77,ada,objc,java
--disable-win32-registry --disable-shared --enable-sjlj-exceptions
--enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
--enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)
]

I use this generating script [
#
gcc -mno-cygwin -g -c -Wall \ -Id:/Programme/PostgreSQL/8.2/include tst.cc
gcc -g -o tst1.exe tst.o \
D:/lib/libecpg.dll \
-lstdc++
#
gcc -mno-cygwin -DABRAUCH= -g -c -Wall \
-Id:/Programme/PostgreSQL/8.2/include tst.cc
gcc -g -o tst2.exe tst.o \
D:/lib/libecpg.dll \
-lstdc++
]

the effect occures also at pg vers 8.1

with kind regards guenter

---------------------------(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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:07 PM
Tom Lane
 
Posts: n/a
Default Re: BUG #3623: initialisation probl.

"Guenter Abraham" <abraham@itbb.de> writes:
> formerly stable programs being generated by ecpg suddenly terminates while
> initialization at 0xc0000022
> ...
> the effect occures also at pg vers 8.1


If it was "formerly stable", which version *did* it work with?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:08 PM
Michael Meskes
 
Posts: n/a
Default Re: BUG #3623: initialisation probl.

On Thu, Sep 20, 2007 at 07:11:55AM +0000, Guenter Abraham wrote:
> formerly stable programs being generated by ecpg suddenly terminates while
> initialization at 0xc0000022
>
> this small program demonstrates the effect:
> ...


Is there anyone with a similar setup who could debug this a little bit?
The example works like a charm on my Linux system. It seems I should
setup an XP test bed too. :-)

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

---------------------------(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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:04 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com