A MongoDB university student report the following mongostat crash:
vagrant@m312:~/M312/chp03$ mongostat --port 27001 -o "time,dirty,used,insert=I,qrw,arw" -i
panic: runtime error: index out of range
goroutine 10 [running]:
panic(0x7d55e0, 0xc4200100e0)
/opt/go/src/runtime/panic.go:500 +0x1a1
github.com/mongodb/mongo-tools/mongostat/stat_consumer.(*InteractiveLineFormatter).handleEvent(0xc420018b00, 0x200000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1)
/data/mci/d8ea425b76ca0fee45df366a32a7c645/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongostat/stat_consumer/interactive_line_formatter.go:110 +0x2a8
github.com/mongodb/mongo-tools/mongostat/stat_consumer.NewInteractiveLineFormatter.func1(0xc420018b00)
/data/mci/d8ea425b76ca0fee45df366a32a7c645/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongostat/stat_consumer/interactive_line_formatter.go:35 +0x79
created by github.com/mongodb/mongo-tools/mongostat/stat_consumer.NewInteractiveLineFormatter
/data/mci/d8ea425b76ca0fee45df366a32a7c645/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongostat/stat_consumer/interactive_line_formatter.go:38 +0xd4
vagrant@m312:~$ mongostat --version
mongostat version: r3.4.2
git version: 3f76e40c105fc223b3e5aac3e20dcd026b83b38b
Go version: go1.7
os: linux
arch: amd64
compiler: gc
OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
This is running on a virtual machine, centos 7, with mongodb enterprise 3.4.2 version installed.
The exercise asks students to connect to a running mongod on the same box.