Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-334

reconciliation memory leak

    • Type: Icon: Task Task
    • Resolution: Done
    • WT1.3.1
    • Affects Version/s: None
    • Component/s: None

      Memory leak in reconciliation:

      ==13521== 16 bytes in 2 blocks are definitely lost in loss record 11 of 646
      ==13521==    at 0x259A8A: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so)
      ==13521==    by 0x2DDA249: __wt_calloc (os_alloc.c:38)
      ==13521==    by 0x2DDA6CC: __wt_strndup (os_alloc.c:178)
      ==13521==    by 0x2DB515B: __rec_split_write (rec_write.c:1247)
      ==13521==    by 0x2DB4D5F: __rec_split_finish (rec_write.c:1115)
      ==13521==    by 0x2DB9A44: __rec_row_leaf (rec_write.c:3137)
      ==13521==    by 0x2DB3AB2: __wt_rec_write (rec_write.c:453)
      ==13521==    by 0x2D9D154: __evict_file_request (bt_evict.c:551)
      ==13521==    by 0x2D9CF63: __evict_file_request_walk (bt_evict.c:515)
      ==13521==    by 0x2D9CA13: __evict_worker (bt_evict.c:344)
      ==13521==    by 0x2D9C7AE: __wt_cache_evict_server (bt_evict.c:288)
      ==13521==    by 0x10B24F0: ??? (in /lib/libthr.so.3)
      

      Script that generates it:

      import wiredtiger, wttest
      from helper import key_populate, value_populate
      
      class test_f(wttest.WiredTigerTestCase):
          def test_f(self):
              self.session.create(
                  'file:x', 'key_format=S,value_format=S')
              cursor = self.session.open_cursor('file:x', None)
              for i in range(1, 10):
                  cursor.set_key(key_populate(cursor, i))
                  cursor.set_value("======== VALUE =======")
                  cursor.insert()
              cursor.close()
              self.session.checkpoint()
      
      
      if __name__ == '__main__':
          wttest.run()
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: