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

Caught unhandled std::exception-derived exception. what(): snapshot_range_t(5262,5260) requires start <= end

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • 6.6.2
    • couchbase-bucket
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Spin off of for a different crash seen while investigating MB-53281.

      Backtrace:

      (gdb) bt
      #0  0x00007f2cdab73337 in ssignal () from /usr/lib64/libc-2.17.so
      #1  0x00007f2cdab74a28 in abort () from /usr/lib64/libc-2.17.so
      #2  0x00007f2cdb6d1195 in __gnu_cxx::__verbose_terminate_handler () at /tmp/deploy/gcc-7.3.0/libstdc++-v3/libsupc++/vterminate.cc:95
      #3  0x000000000054a8a2 in backtrace_terminate_handler () at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/utilities/terminate_handler.cc:86
      #4  0x00007f2cdb6cef86 in __cxxabiv1::__terminate (handler=<optimized out>) at /tmp/deploy/gcc-7.3.0/libstdc++-v3/libsupc++/eh_terminate.cc:47
      #5  0x00007f2cdb6cefd1 in std::terminate () at /tmp/deploy/gcc-7.3.0/libstdc++-v3/libsupc++/eh_terminate.cc:57
      #6  0x00007f2cdb6cf213 in __cxxabiv1::__cxa_throw (obj=obj@entry=0x7f2c70000940, tinfo=0x7fbdd0 <typeinfo for std::runtime_error>, dest=0x418950 <_ZNSt13runtime_errorD1Ev@plt>)
          at /tmp/deploy/gcc-7.3.0/libstdc++-v3/libsupc++/eh_throw.cc:93
      #7  0x00007f2cd60fb102 in snapshot_range_t::checkInvariant (this=this@entry=0x7f2ca67fa100) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/ep_types.h:109
      #8  0x00007f2cd60f9cbe in snapshot_range_t (end=<optimized out>, start=<optimized out>, this=0x7f2ca67fa100) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/ep_types.h:83
      #9  CheckpointManager::getItemsForCursor (this=this@entry=0x7f2c838b3080, cursorPtr=0x7f2c4f777010, items=..., approxLimit=approxLimit@entry=18446744073709551615)
          at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint_manager.cc:1018
      #10 0x00007f2cd60fa460 in CheckpointManager::getNextItemsForCursor (this=this@entry=0x7f2c838b3080, cursor=<optimized out>, items=...)
          at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint_manager.cc:981
      #11 0x00007f2cd6109404 in ActiveStream::getOutstandingItems (this=0x7f2c82a02910, vb=...) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/dcp/active_stream.cc:946
      #12 0x00007f2cd610e805 in ActiveStream::nextCheckpointItemTask (this=this@entry=0x7f2c82a02910, streamMutex=...)
          at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/dcp/active_stream.cc:926
      #13 0x00007f2cd610e8f4 in ActiveStream::nextCheckpointItemTask (this=0x7f2c82a02910) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/dcp/active_stream.cc:917
      #14 0x00007f2cd6117b49 in ActiveStreamCheckpointProcessorTask::run (this=0x7f2c77d87310)
          at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/dcp/active_stream_checkpoint_processor_task.cc:56
      #15 0x00007f2cd61c9b84 in ExecutorThread::run (this=0x7f2cd95d40a0) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/executorthread.cc:190
      #16 0x00007f2cdd6f7f17 in run (this=0x7f2cd96c61a0) at /home/couchbase/jenkins/workspace/couchbase-server-unix/platform/src/cb_pthreads.cc:58
      #17 platform_thread_wrap (arg=0x7f2cd96c61a0) at /home/couchbase/jenkins/workspace/couchbase-server-unix/platform/src/cb_pthreads.cc:71
      #18 0x00007f2cdaf12e65 in start_thread () from /usr/lib64/libpthread-2.17.so
      #19 0x00007f2cdac3b88d in __libc_ifunc_impl_list () from /usr/lib64/libc-2.17.so
      #20 0x0000000000000000 in ?? ()
      

      From node 172.23.100.17. Logs on other ticket here.

      Attachments

        Issue Links

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

          Activity

            People

              ben.huddleston Ben Huddleston
              ben.huddleston Ben Huddleston
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty