Re: [go-nuts] Alignment requirements for 64-bit atomics on 386

2020-11-20 Thread Ian Lance Taylor
On Fri, Nov 20, 2020 at 1:03 PM 'Kevin Chowski' via golang-nuts wrote: > > Thanks Ian for the very quick reply! > > I see you're referencing this: > > > On ARM, x86-32, and 32-bit MIPS, it is the caller's responsibility to > > arrange for 64-bit alignment of 64-bit words accessed atomically. The

Re: [go-nuts] Alignment requirements for 64-bit atomics on 386

2020-11-20 Thread 'Kevin Chowski' via golang-nuts
Thanks Ian for the very quick reply! I see you're referencing this: > On ARM, x86-32, and 32-bit MIPS, it is the caller's responsibility to arrange for 64-bit alignment of 64-bit words accessed atomically. The first word in a variable or in an allocated struct, array, or slice can be relied up

Re: [go-nuts] Alignment requirements for 64-bit atomics on 386

2020-11-20 Thread Ian Lance Taylor
On Fri, Nov 20, 2020 at 12:48 PM 'Kevin Chowski' via golang-nuts wrote: > > I am debugging an issue in which we are seeing a crash on an atomic access; > on go 1.14.7 and 1.15.2 this reproduces with the following error: > > > panic: runtime error: invalid memory address or nil pointer dereference

[go-nuts] Alignment requirements for 64-bit atomics on 386

2020-11-20 Thread 'Kevin Chowski' via golang-nuts
I am debugging an issue in which we are seeing a crash on an atomic access; on go 1.14.7 and 1.15.2 this reproduces with the following error: > panic: runtime error: invalid memory address or nil pointer dereference > [signal S