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

Address heap free after issue seen in filemgr's code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • forestdb
    • None
    • Untriaged
    • Unknown

    Description

      10:59:36 WARNING: ThreadSanitizer: heap-use-after-free (pid=108627)
      10:59:36   Read of size 1 at 0x7d640001f558 by main thread (mutexes: write M14, write M7597):
      10:59:36     #0 filemgr_close /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/filemgr.cc:1451 (iterator_functional_test+0x000000504b5f)
      10:59:36     #1 _fdb_close /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/forestdb.cc:7203 (iterator_functional_test+0x0000005123bb)
      10:59:36     #2 _fdb_close_root /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/forestdb.cc:7174 (iterator_functional_test+0x000000511854)
      10:59:36     #3 fdb_close /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/forestdb.cc:7135 (iterator_functional_test+0x00000051ee5a)
      10:59:36     #4 iterator_concurrent_compaction() crtstuff.c (iterator_functional_test+0x0000004e2078)
      10:59:36     #5 main crtstuff.c (iterator_functional_test+0x0000004e4e1d)
      10:59:36
      10:59:36   Previous write of size 8 at 0x7d640001f558 by main thread:
      10:59:36     #0 free <null> (iterator_functional_test+0x00000046136b)
      10:59:36     #1 filemgr_free_func /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/filemgr.cc:1657 (iterator_functional_test+0x000000502a9f)
      10:59:36     #2 filemgr_close /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/filemgr.cc:1479 (iterator_functional_test+0x000000504ea4)
      10:59:36     #3 _fdb_close /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/forestdb.cc:7203 (iterator_functional_test+0x0000005123bb)
      10:59:36     #4 fdb_kvs_close_all /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/kv_instance.cc:1789 (iterator_functional_test+0x000000537922)
      10:59:36     #5 _fdb_close_root /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/forestdb.cc:7157 (iterator_functional_test+0x0000005117d3)
      10:59:36     #6 fdb_close /home/couchbase/jenkins/workspace/forestdb-threadsanitizer-master/forestdb/src/forestdb.cc:7135 (iterator_functional_test+0x00000051ee5a)
      10:59:36     #7 iterator_concurrent_compaction() crtstuff.c (iterator_functional_test+0x0000004e2078)
      10:59:36     #8 main crtstuff.c (iterator_functional_test+0x0000004e4e1d)
      

      Attachments

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

        Activity

          People

            abhinav Abhi Dangeti
            abhinav Abhi Dangeti
            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