Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.0dp7
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:
    • Environment:

      Description

      When trying to observe a document a Segmentation Fault breaks the library.

      //---------------------------------------------------------------------------------------------------------------------------
      bool MyClass::observe(char *str)
      {
      char *keysList[1] =

      {0}; // Keys list.
      size_t keysSizes[1] = {0}

      ; // Keys sizes list.
      libcouchbase_error_t oprc = LIBCOUCHBASE_SUCCESS; // Return control.

      // Observe.
      keysList[0] = str;
      keysSizes[0] = strlen(str);
      oprc = libcouchbase_observe(lcb, this, 1, (const void*const*)keysList,
      keysSizes);
      if(oprc != LIBCOUCHBASE_SUCCESS)

      { return false; }

      // Force wait.
      lcbIO->run_event_loop(lcbIO);

      ..........
      }
      //---------------------------------------------------------------------------------------------------------------------------

      //---------------------------------------------------------------------------------------------------------------------------
      Command:
      ./cbc observe -h192.168.0.101 -bvp_transactions -uwarp -Ptesttest 0001

      Result:
      Segmentation fault (core dumped)

      GDB LOG ATTACHED.
      //---------------------------------------------------------------------------------------------------------------------------

      //---------------------------------------------------------------------------------------------------------------------------
      $ ./cbc cat -h192.168.0.101 -bvp_transactions -uwarp -Ptesttest 0001
      "0001" Size:2 Flags:0 CAS:57eb22b63bfcae12
      {}
      //---------------------------------------------------------------------------------------------------------------------------

      1. cbc_gdb_log.txt
        4 kB
        Federico Casares
      2. cbc_gdb_log2.txt
        3 kB
        Federico Casares
      3. cbc_gdb_log3.txt
        4 kB
        Federico Casares
      4. cbc_stats.txt
        13 kB
        Federico Casares
      5. command_ids.h
        8 kB
        Federico Casares
      6. curl_bucket_info.txt
        4 kB
        Federico Casares
      7. server_info.txt
        5 kB
        Federico Casares
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        warptrosse Federico Casares added a comment -

        Cluster:
        NODES: 1
        PROCESSOR: Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz
        MEMORY: 8094184 Mb RAM
        DISK: 2 Tb disk
        HOST OS: Fedora 16
        VIRT: KVM Virtualization
        GUEST OS: Red Hat Enterprise Linux Server release 6.2 (Santiago)
        GUEST INFO: attached

        Show
        warptrosse Federico Casares added a comment - Cluster: NODES: 1 PROCESSOR: Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz MEMORY: 8094184 Mb RAM DISK: 2 Tb disk HOST OS: Fedora 16 VIRT: KVM Virtualization GUEST OS: Red Hat Enterprise Linux Server release 6.2 (Santiago) GUEST INFO: attached
        Hide
        warptrosse Federico Casares added a comment - - edited

        cbc stats attached

        Show
        warptrosse Federico Casares added a comment - - edited cbc stats attached
        Hide
        warptrosse Federico Casares added a comment - - edited

        curl bucket info attached

        Show
        warptrosse Federico Casares added a comment - - edited curl bucket info attached
        Hide
        warptrosse Federico Casares added a comment -

        more gdb info

        Show
        warptrosse Federico Casares added a comment - more gdb info
        Hide
        warptrosse Federico Casares added a comment -

        res dump attached

        Show
        warptrosse Federico Casares added a comment - res dump attached
        Hide
        warptrosse Federico Casares added a comment -

        couchbase server commands_ids.h attached

        Show
        warptrosse Federico Casares added a comment - couchbase server commands_ids.h attached
        Hide
        avsej Sergey Avseyev added a comment -

        Couchbase Server DP4 doesn't have OBSERVE implementation, and the code 0x83 bound to another command, as you can see in command_id.h attached

        Show
        avsej Sergey Avseyev added a comment - Couchbase Server DP4 doesn't have OBSERVE implementation, and the code 0x83 bound to another command, as you can see in command_id.h attached

          People

          • Assignee:
            avsej Sergey Avseyev
            Reporter:
            warptrosse Federico Casares
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 8h
              8h
              Remaining:
              Remaining Estimate - 8h
              8h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Gerrit Reviews

                There are no open Gerrit changes