You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the encoder sometimes gives the found bad pointer in Go heap or found pointer to free object error.
It may be related to garbage collection.
Reproduce:
GCGC=1 is required. apply GC pressure to the test
-gcflags='all=-N -l' is not required. If omitted, that error happens about once in 10 times
Currently, the encoder sometimes gives the
found bad pointer in Go heap
orfound pointer to free object
error.It may be related to garbage collection.
Reproduce:
GCGC=1
is required. apply GC pressure to the test-gcflags='all=-N -l'
is not required. If omitted, that error happens about once in 10 times$ GOGC=1 go1.15.5 test -v -count 1 -run=. -gcflags='all=-N -l' .
$ GOGC=1 go1.15.5 test -v -race -count 1 -run=. -gcflags='all=-N -l' .
There are two workarounds, but both will increase allocation.
Run
$ cd benchmarks && go1.15.5 mod vendor && go1.15.5 test -v -run='^$' -count 1 -benchmem -bench='Benchmark_Encode_MediumStruct_GoJson' .
in 73ba041:
patched 1:
patched 2:
The text was updated successfully, but these errors were encountered: