https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64999
--- Comment #20 from Dominik Vogt <vogt at linux dot vnet.ibm.com> --- runtime_MProf_Malloc() calls runtime_callers() without going through runtime.Callers(): #0 runtime_callers (skip=skip@entry=1, locbuf=locbuf@entry=0xc2094734b8, m=m@entry=32, keep_thunks=keep_thunks@entry=0 '\000') at ../../../libgo/runtime/go-callers.c:186 #1 0x0000000080023150 in runtime_MProf_Malloc (p=p@entry=0xc20957ac00, size=size@entry=1024) at ../../../libgo/runtime/mprof.goc:189 #2 0x0000000080021722 in profilealloc (size=1024, v=0xc20957ac00) at ../../../libgo/runtime/malloc.goc:315 #3 runtime_mallocgc (size=size@entry=1024, typ=typ@entry=2148440120, flag=flag@entry=0) at ../../../libgo/runtime/malloc.goc:253 #4 0x000000008000e30e in __go_new ( td=td@entry=0x800e9838 <__go_td_S1_xAN5_uint81024ee>, size=size@entry=1024) at ../../../libgo/runtime/go-new.c:15 #5 0x000000008000c174 in pprof_test.allocateTransient1M () at mprof_test.go:21 #6 0x000000008000c3d2 in runtime_pprof_test.TestMemoryProfiler ( t=0xc2088502d0) at mprof_test.go:64