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

Memory leak on mcbp connection io error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • 1.0.0-beta
    • None
    • 1

    Description

      Build with -DENABLE_SANITIZER_LEAK=ON

      Drop a bucket while still connected to it

      TEST_CASE("drop bucket while open")
      {
          test::utils::integration_test_guard integration;
          auto bucket_name = test::utils::uniq_id("bucket");
       
          {
              couchbase::operations::management::bucket_create_request req;
              req.bucket.name = bucket_name;
              auto resp = test::utils::execute(integration.cluster, req);
              REQUIRE_FALSE(resp.ctx.ec);
          }
       
          test::utils::wait_until_bucket_healthy(integration.cluster, bucket_name);
       
          test::utils::open_bucket(integration.cluster, bucket_name);
       
          {
              couchbase::operations::management::bucket_drop_request req{ bucket_name };
              auto resp = test::utils::execute(integration.cluster, req);
          }
      }
      

      ==59970==ERROR: LeakSanitizer: detected memory leaks
       
      [...]
       
      SUMMARY: LeakSanitizer: 37666 byte(s) leaked in 295 allocation(s).
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jake.rawsthorne Jake Rawsthorne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes