gccgo: alloc space keeps on increasing even with a simple go program using grpc #25103
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 gccgo (GCC) 8.0.1 20180305 (experimental) aix/ppc
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?OS: AIX 7.2
relevant go env flags:
GOARCH="ppc"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build337480888=/tmp/go-build -gno-record-gcc-switches -funwind-tables"
What did you do?
I have a simple grpc server and a client with makes request frequently. The program can be found here. Please create a dir and extract the contents of the tar file to it. Make sure that $GOPATH is exported correctly. Execute ./run.sh.
What did you expect to see?
The DATA RES section should be stable in terms of memory usage
What did you see instead?
For a program running days, this memory bloats up to 5-6 GB and then the system freezes. Surprisingly the program does not crash. For this particular example, following is the pprof output at the start of the program and hew seconds later:
At the start of the program:
A few minutes later:
The text was updated successfully, but these errors were encountered: