Re: [PATCH] Add native windows on arm64 support - Mailing list pgsql-hackers

From Andres Freund
Subject Re: [PATCH] Add native windows on arm64 support
Date
Msg-id 20240212205012.lt6ct755quznt342@awork3.anarazel.de
Whole thread Raw
In response to Re: [PATCH] Add native windows on arm64 support  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [PATCH] Add native windows on arm64 support
Re: [PATCH] Add native windows on arm64 support
List pgsql-hackers
Hi,

On 2024-02-12 13:28:40 -0500, Andrew Dunstan wrote:
> On 2024-02-12 Mo 11:44, Dave Cramer wrote:
> > OK, so I have managed to get a debugger attached to postgres.exe when it
> > faults and the fault occurs at
> >
https://github.com/postgres/postgres/blob/09eb633e1baa3b7cd7929f3cc77f9c46f63c20b1/src/backend/utils/mmgr/dsa.c#L869
> > span is pointing to 0x0
> 
> Further data point. If I select a build type of 'debug' instead of
> 'debugoptimized' the error disappears.

Oh, this is quite interesting.  Dave, could you post the backtrace?

I wonder if this indicates that we are either missing memory barriers
somewhere or that the memory barriers we end up with on msvc + arm aren't
correct?  Either could explain why the problem doesn't occur when building
with optimizations.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Fix a typo in pg_rotate_logfile
Next
From: Nathan Bossart
Date:
Subject: Re: glibc qsort() vulnerability