Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.1.0dp7
    • library
    • Security Level: Public

    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
      {}
      //---------------------------------------------------------------------------------------------------------------------------

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            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

                  PagerDuty