Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-20355

couchstore: Memory leaks in ep-engine_kvstore_test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • 4.5.1
    • 4.5.0
    • couchbase-bucket
    • None
    • Untriaged
    • Unknown
    • KV: 1st Aug - 12th Aug

    Description

      As identified when verifying MB-18201, there are two memory leaks when couchstore is used as the storage engine:

      http://cv.jenkins.couchbase.com/view/Commit%20Validation/view/ep-engine/job/ep-engine-gerrit-watson/967/label=ubuntu-1204/valgrindResult/pid=74657/

      home/couchbase/jenkins/workspace/ep-engine-gerrit-watson/label/ubuntu-1204/couchstore/src/couch_db.cc:453
      Code	
      0443 }
      0444 
      0445 DocInfo* couchstore_alloc_docinfo(const sized_buf *id, const sized_buf *rev_meta) {
      0446     size_t size = sizeof(DocInfo);
      0447     if (id) {
      0448         size += id->size;
      0449     }
      0450     if (rev_meta) {
      0451         size += rev_meta->size;
      0452     }
      0453     DocInfo* docInfo = static_cast<DocInfo*>(malloc(size));  // XXX HERE
      0454     if (!docInfo) {
      0455         return NULL;
      0456     }
      0457     memset(docInfo, 0, sizeof(DocInfo));
      0458     char *extra = (char *)docInfo + sizeof(DocInfo);
      

      Attachments

        Issue Links

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

          Activity

            People

              will.gardner Will Gardner (Inactive)
              drigby Dave Rigby (Inactive)
              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