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

stack overflow:goroutine stack exceeds 1000000000-byte limit while running some queries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 4.0.0
    • query
    • Security Level: Public
    • 350-1335-rel
      3 node,
      Bucket default
      1 primary index
      2 indexes on predicates
      idx_amount
      idx_direction
    • Untriaged
    • Unknown

    Description

      1. Load 550K documents
      2. Issue a query like below

      Query
      cbq> select * from system:indexes where indexes.state="online";
      2015/02/26 14:23:00 ERROR: Post http://localhost:8093/query: EOF – main.HandleInteractiveMode() at interactive.go:77

      Some information from the query.log below

      runtime: goroutine stack exceeds 1000000000-byte limit
      fatal error: stack overflow

      runtime stack:
      runtime.throw(0x14d662e)
      /usr/local/go/src/pkg/runtime/panic.c:520 +0x69
      runtime.newstack()
      /usr/local/go/src/pkg/runtime/stack.c:770 +0x486
      runtime.morestack()
      /usr/local/go/src/pkg/runtime/asm_amd64.s:228 +0x61

      goroutine 365 [stack growth]:
      github.com/couchbase/query/datastore/system.(*indexIndex).RangeKey(0xc208154160, 0x0, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/datastore/system/system_keyspace_indexes.go:239 fp=0xc3b5e54108 sp=0xc3b5e54100
      github.com/couchbase/query/datastore/system.(*indexIndex).RangeKey(0xc208154160, 0x0, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/datastore/system/system_keyspace_indexes.go:240 +0x42 fp=0xc3b5e54130 sp=0xc3b5e54108
      github.com/couchbase/query/datastore/system.(*indexIndex).RangeKey(0xc208154160, 0x0, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/datastore/system/system_keyspace_indexes.go:240 +0x42 fp=0xc3b5e54158 sp=0xc3b5e54130
      github.com/couchbase/query/datastore/system.(*indexIndex).RangeKey(0xc208154160, 0x0, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/datastore/system/system_keyspace_indexes.go:240 +0x42 fp=0xc3b5e54180 sp=0xc3b5e54158
      githu
      ...
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/datastore/system/system_keyspace_indexes.go:240 +0x42 fp=0xc3b5e55080 sp=0xc3b5e55058
      ...additional frames elided...
      created by github.com/couchbase/query/server.func·002
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/server/server.go:114 +0x4a

      goroutine 16 [chan receive, 132 minutes]:
      main.signalCatcher(0xc20807c090, 0xc208059220)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/server/cbq-engine/main.go:213 +0x144
      main.main()
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/server/cbq-engine/main.go:203 +0x11d6

      goroutine 19 [finalizer wait]:
      runtime.park(0x415f00, 0x14db6c8, 0x14d8509)
      /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
      runtime.parkunlock(0x14db6c8, 0x14d8509)
      /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
      runfinq()
      /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
      runtime.goexit()
      /usr/local/go/src/pkg/runtime/proc.c:1445

      goroutine 22 [IO wait, 114 minutes]:
      net.runtime_pollWait(0x7f501833ae48, 0x72, 0x0)
      /usr/local/go/src/pkg/runtime/netpoll.goc:146 +0x66
      net.(*pollDesc).Wait(0xc20802c3e0, 0x72, 0x0, 0x0)
      /usr/local/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
      net.(*pollDesc).WaitRead(0xc20802c3e0, 0x0, 0x0)
      /usr/local/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
      net.(*netFD).Read(0xc20802c380, 0xc208051000, 0x1000, 0x1000, 0x0, 0x7f501832f3f0, 0xb)
      /usr/local/go/src/pkg/net/fd_unix.go:242 +0x34c
      net.(*conn).Read(0xc2080360e8, 0xc208051000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
      /usr/local/go/src/pkg/net/net.go:122 +0xe7
      bufio.(*Reader).fill(0xc208004d20)
      /usr/local/go/src/pkg/bufio/bufio.go:97 +0x1b3
      bufio.(*Reader).Read(0xc208004d20, 0xc2080fa001, 0x5ff, 0x5ff, 0x5ff, 0x0, 0x0)
      ...

      Attachments

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

        Activity

          People

            colm Colm Mchugh (Inactive)
            ketaki Ketaki Gangal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty