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

[cbq] panic: runtime error: invalid memory address or nil pointer dereference when '@' and ':' is in end of URL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.6.0, 5.0.0
    • 4.6.0, 5.0.0
    • query
    • 4.6.0-3400
    • Untriaged
    • Unknown

    Description

      *[root@localhost bin]# ./cbq -u=Administrator http://127.0.0.1:8093@*

      panic: runtime error: invalid memory address or nil pointer dereference
      [signal 0xb code=0x1 addr=0x20 pc=0x47bc3e]
       
      goroutine 1 [running]:
      github.com/couchbase/query/shell/cbq/command.ParseURL(0x7fff6f5777b2, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0)
      	/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/query/shell/cbq/command/common.go:695 +0x4ae
      main.main()
      	/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/query/shell/cbq/shell.go:366 +0x2b7
       
      goroutine 5 [syscall]:
      os/signal.loop()
      	/usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
      created by os/signal.init·1
      	/usr/local/go/src/os/signal/signal_unix.go:27 +0x35
       
      goroutine 6 [runnable]:
      text/template/parse.lexText(0xc2080a6000, 0x9bdac8)
      	/usr/local/go/src/text/template/parse/lex.go:228 +0x37b
      text/template/parse.(*lexer).run(0xc2080a6000)
      	/usr/local/go/src/text/template/parse/lex.go:198 +0x5d
      created by text/template/parse.lex
      	/usr/local/go/src/text/template/parse/lex.go:191 +0x1ac
       
       
      Same is true for:
      *[root@localhost bin]# ./cbq -u=Administrator http://127.0.0.1:8091@*
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal 0xb code=0x1 addr=0x20 pc=0x47bc3e]
       
      goroutine 1 [running]:
      github.com/couchbase/query/shell/cbq/command.ParseURL(0x7fff5cb7c7b2, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0)
      	/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/query/shell/cbq/command/common.go:695 +0x4ae
      main.main()
      	/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/query/shell/cbq/shell.go:366 +0x2b7
       
      goroutine 5 [syscall]:
      os/signal.loop()
      	/usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
      created by os/signal.init·1
      	/usr/local/go/src/os/signal/signal_unix.go:27 +0x35
       
      goroutine 6 [runnable]:
      text/template/parse.lexText(0xc2080a6000, 0x9bdac8)
      	/usr/local/go/src/text/template/parse/lex.go:228 +0x37b
      text/template/parse.(*lexer).run(0xc2080a6000)
      	/usr/local/go/src/text/template/parse/lex.go:198 +0x5d
      created by text/template/parse.lex
      	/usr/local/go/src/text/template/parse/lex.go:191 +0x1ac
       
      Same is true for:
      cbq> [root@localhost bin]# ./cbq -u=Administrator http://127.0.0.1:8091:
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal 0xb code=0x1 addr=0x20 pc=0x47bc3e]
       
      goroutine 1 [running]:
      github.com/couchbase/query/shell/cbq/command.ParseURL(0x7fff097db7b2, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0)
      	/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/query/shell/cbq/command/common.go:695 +0x4ae
      main.main()
      	/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/query/shell/cbq/shell.go:366 +0x2b7
       
      goroutine 5 [syscall]:
      os/signal.loop()
      	/usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
      created by os/signal.init·1
      	/usr/local/go/src/os/signal/signal_unix.go:27 +0x35
       
      goroutine 6 [runnable]:
      text/template/parse.lexText(0xc2080b6000, 0x9bdac8)
      	/usr/local/go/src/text/template/parse/lex.go:228 +0x37b
      text/template/parse.(*lexer).run(0xc2080b6000)
      	/usr/local/go/src/text/template/parse/lex.go:198 +0x5d
      created by text/template/parse.lex
      	/usr/local/go/src/text/template/parse/lex.go:191 +0x1ac
      

      Attachments

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

        Activity

          People

            Prerna.Manaktala Prerna Manaktala (Inactive)
            Prerna.Manaktala Prerna Manaktala (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