Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-494

Double free error in range scan

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.15
    • None
    • None
    • None

    Description

      Test driver:

      EXECUTABLE="./build/test/test_integration_range_scan"
      TEST="integration: range scan cancel during streaming using pending_operation cancel"
       
      export TEST_CONNECTION_STRING="couchbase://192.168.107.128,192.168.107.129,192.168.107.130"
      export TEST_USE_WAN_DEVELOPMENT_PROFILE=yes
       
      export MallocDebugReport=stderr
      export MallocGuardEdges=1
      export MallocScribble=1
      export MallocErrorAbort=1
      export MallocCorruptionAbort=1
      export MallocZeroOnFree=1
      export MallocCheckZeroOnFreeCorruption=1
       
      while ${EXECUTABLE} "${TEST}"
      do
          :
      done
      

      After some iterations, it fails with double-free error

      test_integration_range_scan(55318,0x16d2eb000) malloc: Double free of object 0x138213d50
      test_integration_range_scan(55318,0x16d2eb000) malloc: *** set a breakpoint in malloc_error_break to debug
       
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      test_integration_range_scan is a Catch2 v3.4.0 host application.
      Run with -? for options
       
      -------------------------------------------------------------------------------
      integration: range scan cancel during streaming using pending_operation cancel
      -------------------------------------------------------------------------------
      couchbase-cxx-client/test/test_integration_range_scan.cxx:632
      ...............................................................................
       
      couchbase-cxx-client/test/test_integration_range_scan.cxx:632: FAILED:
        {Unknown expression after the reported line}
      due to a fatal error condition:
        SIGABRT - Abort (abnormal termination) signal
       
      ===============================================================================
      test cases:  1 |  0 passed | 1 failed
      assertions: 29 | 28 passed | 1 failed
       
      debug.sh: line 23: 55318 Abort trap: 6           ${EXECUTABLE} "${TEST}"
      

      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