• Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.5, 3.6.0-rc0
    • Affects Version/s: None
    • Component/s: mongostat
    • None
    • Platforms 2017-04-17, Platforms 2017-05-08

      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.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            norberto.leite Norberto Fernando Rocha Leite (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: