Re: CVS HEAD busted on Windows?

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CVS HEAD busted on Windows?
Date: 2006-06-21 16:09:22
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E401388AD9@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: 21 June 2006 16:32
> To: Dave Page
> Cc: Peter Eisentraut; pgsql-hackers(at)postgresql(dot)org
> Subject: Re: [HACKERS] CVS HEAD busted on Windows?
>
> "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> writes:
> >> Well, that's pretty clearly a null pointer dereference.
> Any chance of
> >> mapping the instruction address back to something useful?
>
> > Not sure how I would do that. Any hints?
>
> gdb might produce something useful, with something like
>
> x/32i 0xNNNN - 16

Not useful - it's all in ntdll.dll.

> Failing that, see if you can get the linker to spit out a
> link map when
> it builds psql.

Attached. With a little poking in the VS debugger, it would appear that
the address shown is in fact in ntdll.dll. It shows the following call
stack:

> ntdll.dll!7c8396d0()
[Frames below may be incorrect and/or missing, no symbols loaded
for ntdll.dll]
psql.exe!0040a269()
ntdll.dll!7c839620()
psql.exe!00404532()
psql.exe!00404983()
ntdll.dll!7c82fb23()
psql.exe!0040a269()
psql.exe!0040a32b()
psql.exe!004099d2()
ntdll.dll!7c82f9dd()
msvcrt.dll!77bbcef6()
msvcrt.dll!77bcc077()
psql.exe!004011e7()
psql.exe!00401238()
kernel32.dll!77e523cd()

If I'm reading it (and understanding) correctly, that suggests the
caller might be GetVariable().

Regards, Dave.

Attachment Content-Type Size
psql.zip application/x-zip-compressed 18.8 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-06-21 16:19:57 Re: Overhead for stats_command_string et al, take 2
Previous Message Tom Lane 2006-06-21 15:31:56 Re: CVS HEAD busted on Windows?