Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-13619

Running cbindex causes SEGV

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 4.0.0
    • secondary-index
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      (a) Running cbindex without any parameters causes segfault. Expected: help message
      (b) Presumably connecting to a server that doesn't respond will cause segfault too. Expect: error message

      $ ./cbindex
      17:04:12.317327 [Fatal] Get http://127.0.0.1:9000/pools: dial tcp 127.0.0.1:9000: connection refused
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal 0xb code=0x1 addr=0x0 pc=0x627c3]

      goroutine 16 [running]:
      runtime.panic(0x714f20, 0xc8c024)
      /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
      github.com/couchbase/indexing/secondary/queryport/client.(*GsiClient).Refresh(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
      /Users/siri/Couch/goproj/src/github.com/couchbase/indexing/secondary/queryport/client/client.go:219 +0xa3
      github.com/couchbase/indexing/secondary/querycmd.HandleCommand(0x0, 0xc20813c160, 0xc208083f00, 0xe52d28, 0xc208064008, 0x0, 0x0)
      /Users/siri/Couch/goproj/src/github.com/couchbase/indexing/secondary/querycmd/docmd.go:144 +0x1aa
      main.main()
      /Users/siri/Couch/goproj/src/github.com/couchbase/indexing/secondary/cmd/cbindex/main.go:34 +0x2d7

      Attachments

        For Gerrit Dashboard: MB-13619
        # Subject Branch Project Status CR V

        Activity

          People

            sarath Sarath Lakshman
            siri Sriram Melkote (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty