Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1004

CAS-observe on multi-node cluster might SEGFAULT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.10.1
    • 2.10.1
    • None
    • None
    • 1

    Description

      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x00007f6f5cb3d895 in __GI_abort () at abort.c:79
      #2  0x00007f6f5cb3d769 in __assert_fail_base (fmt=0x7f6f5cca4ea8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x6482e9 "h != ((void *)0)", 
          file=0x6481b8 "/home/avsej/code/libcouchbase/contrib/genhash/genhash.c", line=148, function=<optimized out>) at assert.c:92
      #3  0x00007f6f5cb4b9f6 in __GI___assert_fail (assertion=0x6482e9 "h != ((void *)0)", file=0x6481b8 "/home/avsej/code/libcouchbase/contrib/genhash/genhash.c", line=148, 
          function=0x648330 <__PRETTY_FUNCTION__.10347> "genhash_find_entry") at assert.c:101
      #4  0x000000000060000c in genhash_find_entry (h=0x0, k=0x1afc152, klen=12) at /home/avsej/code/libcouchbase/contrib/genhash/genhash.c:148
      #5  0x00000000006000ed in genhash_find (h=0x0, k=0x1afc152, klen=12) at /home/avsej/code/libcouchbase/contrib/genhash/genhash.c:161
      #6  0x00000000005bf303 in (anonymous namespace)::CasDurset::find (this=0x1aece30, s=0x1afc152 "key-stored-9\001\025ib\305&\261", n=12)
          at /home/avsej/code/libcouchbase/src/operations/durability-cas.cc:40
      #7  0x00000000005bf4c0 in (anonymous namespace)::CasDurset::update (this=0x1aece30, err=LCB_SUCCESS, resp=0x7ffe9f218ed0)
          at /home/avsej/code/libcouchbase/src/operations/durability-cas.cc:126
      #8  0x00000000005bf46c in lcbdur_cas_update (dset=0x1aece30, err=LCB_SUCCESS, resp=0x7ffe9f218ed0) at /home/avsej/code/libcouchbase/src/operations/durability-cas.cc:113
      #9  0x00000000005c0ff3 in handle_observe_callback (pl=0x1addae0, pkt=0x1b10290, err=LCB_SUCCESS, arg=0x7ffe9f218ed0)
          at /home/avsej/code/libcouchbase/src/operations/observe.cc:116
      #10 0x00000000005a7bbe in H_observe (pipeline=0x1addae0, request=0x1b10290, response=0x7ffe9f219030, immerr=LCB_SUCCESS) at /home/avsej/code/libcouchbase/src/handler.cc:679
      #11 0x00000000005a8c9f in mcreq_dispatch_response (pipeline=0x1addae0, req=0x1b10290, res=0x7ffe9f219030, immerr=LCB_SUCCESS) at /home/avsej/code/libcouchbase/src/handler.cc:988
      #12 0x00000000005cad9b in lcb::Server::try_read (this=0x1addae0, ctx=0x1ad5980, ior=0x1ad59c8) at /home/avsej/code/libcouchbase/src/mcserver/mcserver.cc:419
      #13 0x00000000005caf9d in on_read (ctx=0x1ad5980) at /home/avsej/code/libcouchbase/src/mcserver/mcserver.cc:460
      #14 0x000000000060b337 in invoke_read_cb (ctx=0x1ad5980, nb=199) at /home/avsej/code/libcouchbase/src/lcbio/ctx.c:274
      #15 0x000000000060b48a in E_handler (sock=7, which=2, arg=0x1ad5980) at /home/avsej/code/libcouchbase/src/lcbio/ctx.c:303
      #16 0x00007f6f5d3fb871 in event_persist_closure (ev=<optimized out>, base=0x1b1a430) at event.c:1580
      #17 event_process_active_single_queue (base=base@entry=0x1b1a430, activeq=0x1af1830, max_to_process=max_to_process@entry=2147483647, endtime=endtime@entry=0x0) at event.c:1639
      #18 0x00007f6f5d3fc007 in event_process_active (base=0x1b1a430) at event.c:1738
      #19 event_base_loop (base=0x1b1a430, flags=<optimized out>) at event.c:1961
      #20 0x00007f6f5d417b5c in lcb_io_run_event_loop (iops=0x1af1880) at /home/avsej/code/libcouchbase/plugins/io/libevent/plugin-libevent.c:202
      #21 0x00000000005db99b in lcb_wait (instance=0x1ad7ea0) at /home/avsej/code/libcouchbase/src/wait.cc:103
      #22 0x00000000004e8bf0 in DurabilityMultiOperation::run<std::vector<Item, std::allocator<Item> > > (this=0x7ffe9f219730, instance=0x1ad7ea0, opts=0x7ffe9f219790, 
          items=std::vector of length 10, capacity 16 = {...}) at /home/avsej/code/libcouchbase/tests/iotests/t_durability.cc:158
      #23 0x00000000004de5ad in DurabilityUnitTest_testMulti_Test::TestBody (this=0x1b1a2e0) at /home/avsej/code/libcouchbase/tests/iotests/t_durability.cc:599
      #24 0x00007f6f5d4ab79f in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void> (object=0x1b1a2e0, method=&virtual testing::Test::TestBody(), 
          location=0x7f6f5d4baddb "the test body") at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:2443
      #25 0x00007f6f5d4a5d59 in testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=0x1b1a2e0, method=&virtual testing::Test::TestBody(), 
          location=0x7f6f5d4baddb "the test body") at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:2479
      #26 0x00007f6f5d4860a6 in testing::Test::Run (this=0x1b1a2e0) at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:2517
      #27 0x00007f6f5d486945 in testing::TestInfo::Run (this=0x1ab80f0) at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:2693
      #28 0x00007f6f5d486f97 in testing::TestCase::Run (this=0x1ab7500) at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:2811
      #29 0x00007f6f5d491977 in testing::internal::UnitTestImpl::RunAllTests (this=0x1ab5690) at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:5178
      #30 0x00007f6f5d4ac774 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x1ab5690, 
          method=(bool (testing::internal::UnitTestImpl::*)(class testing::internal::UnitTestImpl * const)) 0x7f6f5d4916ce <testing::internal::UnitTestImpl::RunAllTests()>, 
          location=0x7f6f5d4bb710 "auxiliary test code (environments or event listeners)") at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:2443
      #31 0x00007f6f5d4a6b23 in testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x1ab5690, 
          method=(bool (testing::internal::UnitTestImpl::*)(class testing::internal::UnitTestImpl * const)) 0x7f6f5d4916ce <testing::internal::UnitTestImpl::RunAllTests()>, 
          location=0x7f6f5d4bb710 "auxiliary test code (environments or event listeners)") at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:2479
      #32 0x00007f6f5d490508 in testing::UnitTest::Run (this=0x7f6f5d4df8c0 <testing::UnitTest::GetInstance()::instance>)
          at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/src/gtest.cc:4787
      #33 0x000000000057af76 in RUN_ALL_TESTS () at /home/avsej/code/libcouchbase/contrib/gtest-1.8.1/include/gtest/gtest.h:2341
      #34 0x000000000057aeea in main (argc=1, argv=0x7ffe9f219de8) at /home/avsej/code/libcouchbase/tests/unit_tests.cc:42
      

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty