Re: Looking for someone with MinGW

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>, PostgreSQL Hacker <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Looking for someone with MinGW
Date: 2008-12-14 16:36:21
Message-ID: 49453605.2040009@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Meskes wrote:
> Hello,
>
>
>>> Could anyone with a MinGW system please run the ecpg regression suite including
>>> tcp checks for the current CVS HEAD for me?
>>>
>> I ran the test but got a segfault.
>> I hope it can help you.
>>
>
> Not really I'm afraid.
>
> Is there any way you could send me a backtrace? I guess this has to be debugged
> so we find out what's going wrong.
>
>
>

See below

cheers

andrew

test1.exe caused an Access Violation at location 76becb8b in module
msvcrt.dll Reading from location 00000000.

Registers:
eax=0022fd14 ebx=00000000 ecx=00000000 edx=00000000 esi=00000000
edi=0085c64c
eip=76becb8b esp=0022f4ac ebp=0022f898 iopl=0 nv up ei pl zr na
po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00010246

Call stack:
76BECB8B msvcrt.dll:76BECB8B strlen
6D0CAF60 libecpg.dll:6D0CAF60 pg_vfprintf snprintf.c:224
int pg_vfprintf(
FILE * stream = &{
char * _ptr = 0x00852f70,
int _cnt = 0,
char * _base = 0x00852f70,
int _flag = 10,
int _file = 2,
int _charbuf = 0,
int _bufsiz = 4096,
char * _tmpfname = 0x00000000
},
const char * fmt = &'[',
va_list args = ""
)
...
target.stream = stream;
target.nchars = 0;
> if (dopr(&target, fmt, args))
{
errno = EINVAL;/* bad format */
...

6D0C8FA2 libecpg.dll:6D0C8FA2 ecpg_log misc.c:275
void ecpg_log(
const char * format = &'e'
)
...

/* dump out internal sqlca variables */
> if (ecpg_internal_regression_mode)
fprintf(debugstream, "[NO_PID]: sqlca: code: %ld, state: %s\n",
sqlca->sqlcode, sqlca->sqlstate);
...

6D0C7B3E libecpg.dll:6D0C7B3E ecpg_finish connect.c:149
static void ecpg_finish(
struct connection * act =
)
...
ecpg_log("ecpg_finish: connection %s closed\n", act->name);

> for (cache = act->cache_head; cache; ptr = cache, cache =
cache->next, ecpg_free(ptr));
ecpg_free(act->name);
ecpg_free(act);
...

6D0C89D1 libecpg.dll:6D0C89D1 ECPGdisconnect connect.c:582
char ECPGdisconnect(
int lineno = 39,
const char * connection_name = &'C'
)
...
}
else
> ecpg_finish(con);
}

...

00401495 test1.exe:00401495 main test1.pgc:42
int main(

)
...

strcpy(pw, "connectpw");
> strcpy(db, "tcp:postgresql://localhost/connectdb");
exec sql connect to :db user connectuser using :pw;
exec sql disconnect;
...

004011E7 test1.exe:004011E7
00401238 test1.exe:00401238
76CD4911 kernel32.dll:76CD4911 BaseThreadInitThunk
777DE4B6 ntdll.dll:777DE4B6 RtlInitializeExceptionChain
777DE489 ntdll.dll:777DE489 RtlInitializeExceptionChain

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message ohp 2008-12-14 16:43:20 Re: cvs head initdb hangs on unixware
Previous Message Simon Riggs 2008-12-14 15:48:07 Re: Sync Rep: First Thoughts on Code