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

[FTS] does not work with Go 1.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • cbft
    • None
    • Untriaged
    • Unknown

    Description

      I did a quick test with Go 1.6 and it crashes repeatedly on startup. If anyone wants to try it themselves, they can cherrypick it from here:

      http://review.couchbase.org/#/c/60989/1

      fts.log contain the following repeatedly:

      016/03/05 21:12:19 http: panic serving 127.0.0.1:52056: runtime error: invalid memory address or nil pointer dereference
      goroutine 88 [running]:
      net/http.(*conn).serve.func1(0xc820091d00)
              /Users/mschoch/.cbdepscache/exploded/x86_64/go-1.6/go/src/net/http/server.go:1389 +0xc1
      panic(0x4b7ba80, 0xc8200140d0)
              /Users/mschoch/.cbdepscache/exploded/x86_64/go-1.6/go/src/runtime/panic.go:426 +0x4e9
      github.com/couchbase/cbft.(*NsStatsHandler).ServeHTTP(0xc820208910, 0x5da1380, 0xc8201b5ba0, 0xc82011c7e0)
              /Users/mschoch/Documents/research/cbsource/goproj/src/github.com/couchbase/cbft/ns_server.go:156 +0x47c
      github.com/gorilla/mux.(*Router).ServeHTTP(0xc8201f02d0, 0x5da1380, 0xc8201b5ba0, 0xc82011c7e0)
              /Users/mschoch/Documents/research/cbsource/godeps/src/github.com/gorilla/mux/mux.go:98 +0x29e
      net/http.(*ServeMux).ServeHTTP(0xc820064ab0, 0x5da1380, 0xc8201b5ba0, 0xc82011c7e0)
              /Users/mschoch/.cbdepscache/exploded/x86_64/go-1.6/go/src/net/http/server.go:1910 +0x17d
      net/http.serverHandler.ServeHTTP(0xc82035a380, 0x5da1380, 0xc8201b5ba0, 0xc82011c7e0)
              /Users/mschoch/.cbdepscache/exploded/x86_64/go-1.6/go/src/net/http/server.go:2081 +0x19e
      net/http.(*conn).serve(0xc820091d00)
              /Users/mschoch/.cbdepscache/exploded/x86_64/go-1.6/go/src/net/http/server.go:1472 +0xf2e
      created by net/http.(*Server).Serve
              /Users/mschoch/.cbdepscache/exploded/x86_64/go-1.6/go/src/net/http/server.go:2137 +0x44e
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mschoch Marty Schoch [X] (Inactive)
            mschoch Marty Schoch [X] (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