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

Panic under getOriginalCached value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Morpheus
    • Morpheus
    • query
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      e.g.

      2024-07-19T15:15:37.472 Q S panic: runtime error: invalid memory address or nil pointer dereference
      2024-07-19T15:15:37.472 Q S request text: <ud>SELECT DISTINCT RAW name FROM system:keyspaces WHERE `namespace` = 'default' AND `bucket` IS NOT VALUED  ORDER BY name</ud>
      2024-07-19T15:15:37.472 Q S query context: <ud>default:default</ud>
      2024-07-19T15:15:37.472 Q S stack: goroutine 4786 [running]:
      github.com/couchbase/query/execution.(*Context).Recover(0xc0015bc700, 0xc0015acc00)
              /home/dhaggart/code/src/github.com/couchbase/query/execution/context.go:1731 +0x85
      panic({0x2d92280?, 0x4fe4410?})
              /usr/lib/go-1.21.1/src/runtime/panic.go:914 +0x21f
      github.com/couchbase/query/execution.(*Order).RunOnce.(*base).runConsumer.func1.2()
              /home/dhaggart/code/src/github.com/couchbase/query/execution/base.go:986 +0x150
      panic({0x2d92280?, 0x4fe4410?})
              /usr/lib/go-1.21.1/src/runtime/panic.go:914 +0x21f
      github.com/couchbase/query/value.(*annotatedValue).Field(0x1174aa5?, {0xc000cf8954?, 0x9?})
              <autogenerated>:1 +0x23
      github.com/couchbase/query/value.(*ScopeValue).Field(0xc000daddd0, {0xc000cf8954, 0x9})
              /home/dhaggart/code/src/github.com/couchbase/query/value/scope.go:227 +0x53
      github.com/couchbase/query/expression.(*Identifier).Evaluate(0xc001995b88?, {0x3aab438?, 0xc001bfb800?}, {0x300a920?, 0x54c0601?})
              /home/dhaggart/code/src/github.com/couchbase/query/expression/identifier.go:87 +0xc2
      github.com/couchbase/query/expression.(*Field).Evaluate(0xc000d31980, {0x3aab438, 0xc001bfb800}, {0x3ad0f20, 0xc0015ace00})
              /home/dhaggart/code/src/github.com/couchbase/query/expression/nav_field.go:57 +0x83
      github.com/couchbase/query/execution.getOriginalCachedValue({0x3b2b3d0, 0xc001bfb500}, {0x3ab3cc8, 0xc000d31980}, {0xc001b8c1f8?, 0xc001995cc0?}, 0xc0015ace00)
              /home/dhaggart/code/src/github.com/couchbase/query/execution/util.go:102 +0xd9
      github.com/couchbase/query/execution.(*Order).makeMinimal(0xc0015acc00, {0x3b2b3d0, 0xc001bfb500}, 0xc0015bc700)
              /home/dhaggart/code/src/github.com/couchbase/query/execution/order.go:215 +0x19b
      github.com/couchbase/query/execution.(*Order).processItem(0xc0015acc00, {0x3b2b3d0, 0xc001bfb500}, 0xc0015bc700?)
              /home/dhaggart/code/src/github.com/couchbase/query/execution/order.go:145 +0x45
      github.com/couchbase/query/execution.(*Order).RunOnce.(*base).runConsumer.func1()
              /home/dhaggart/code/src/github.com/couchbase/query/execution/base.go:1028 +0x3ed

      Attachments

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

        Activity

          People

            Donald.haggart Donald Haggart
            Donald.haggart Donald Haggart
            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