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 = 0xc000138008
p = 0xc000138008
base = 0xc000138000
originals = []unsafe.Pointer len: 0, cap: 0, nil

https://go.dev/play/p/RcvaWHJ8dMB
(or https://gist.github.com/ii64/d9753a03f0fad8172729e044943a35e5)

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/23432ef6-03c0-47d7-9134-50dc50adfff7n%40googlegroups.com.

Reply via email to