Re: [go-nuts] checkptr/race pointer arithmetic result to invalid allocation

2022-07-08 Thread Ian Lance Taylor
On Fri, Jul 8, 2022 at 9:19 AM Richiise Nugraha wrote: > > Hi, i was testing this code on Go playground and it works just fine, however > if i run with `-race` it throws `pointer arithmetic result points to invalid > allocation` although it has the same address. What really causes this?, like >

[go-nuts] checkptr/race pointer arithmetic result to invalid allocation

2022-07-08 Thread Richiise Nugraha
Hi, i was testing this code on Go playground and it works just fine, however if i run with `-race` it throws `pointer arithmetic result points to invalid allocation` although it has the same address. What really causes this?, like the address (untouched) still a valid allocation ptr = 0xc000138