Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2048

Memory leak in test_server_removed_during_handshake

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.1
    • Affects Version/s: 1.6.0
    • Component/s: Testing
    • None

      [2017/01/30 10:29:32.271] ==74751== 1,169 (320 direct, 849 indirect) bytes in 1 blocks are definitely lost in loss record 341 of 350
      [2017/01/30 10:29:32.271] ==74751==    at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      [2017/01/30 10:29:32.271] ==74751==    by 0x4E57FDF: bson_malloc0 (bson-memory.c:105)
      [2017/01/30 10:29:32.271] ==74751==    by 0x4BB4EA: mongoc_uri_copy (mongoc-uri.c:1258)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47175D: _test_server_removed_during_handshake (test-mongoc-topology.c:811)
      [2017/01/30 10:29:32.271] ==74751==    by 0x471D06: test_server_removed_during_handshake_single (test-mongoc-topology.c:879)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47C114: TestSuite_AddHelper (TestSuite.c:333)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47C77F: TestSuite_RunTest (TestSuite.c:602)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47D035: TestSuite_RunSerial (TestSuite.c:868)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47D39F: TestSuite_Run (TestSuite.c:949)
      [2017/01/30 10:29:32.271] ==74751==    by 0x413270: main (test-libmongoc.c:1867)
      [2017/01/30 10:29:32.271] ==74751==
      [2017/01/30 10:29:32.271] ==74751== 1,169 (320 direct, 849 indirect) bytes in 1 blocks are definitely lost in loss record 342 of 350
      [2017/01/30 10:29:32.271] ==74751==    at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      [2017/01/30 10:29:32.271] ==74751==    by 0x4E57FDF: bson_malloc0 (bson-memory.c:105)
      [2017/01/30 10:29:32.271] ==74751==    by 0x4BB4EA: mongoc_uri_copy (mongoc-uri.c:1258)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47175D: _test_server_removed_during_handshake (test-mongoc-topology.c:811)
      [2017/01/30 10:29:32.271] ==74751==    by 0x471D16: test_server_removed_during_handshake_pooled (test-mongoc-topology.c:886)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47C114: TestSuite_AddHelper (TestSuite.c:333)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47C77F: TestSuite_RunTest (TestSuite.c:602)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47D035: TestSuite_RunSerial (TestSuite.c:868)
      [2017/01/30 10:29:32.271] ==74751==    by 0x47D39F: TestSuite_Run (TestSuite.c:949)
      [2017/01/30 10:29:32.271] ==74751==    by 0x413270: main (test-libmongoc.c:1867)
      [2017/01/30 10:29:32.271] ==74751==
      [2017/01/30 10:29:32.271] ==74751== 3,965 (640 direct, 3,325 indirect) bytes in 4 blocks are definitely lost in loss record 349 of 350
      [2017/01/30 10:29:32.271] ==74751==    at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      [2017/01/30 10:29:32.271] ==74751==    by 0x4E57FDF: bson_malloc0 (bson-memory.c:105)
      [2017/01/30 10:29:32.271] ==74751==    by 0x40EEAF: request_new (request.c:53)
      [2017/01/30 10:29:32.271] ==74751==    by 0x40D827: worker_thread (mock-server.c:1632)
      [2017/01/30 10:29:32.271] ==74751==    by 0x5288183: start_thread (pthread_create.c:312)
      [2017/01/30 10:29:32.271] ==74751==    by 0x559837C: clone (clone.S:111)
      [2017/01/30 10:29:32.271] ==74751==
      

      See: https://evergreen.mongodb.com/task/mongo_c_driver_release_releng_debug_compile_valgrind_af8a0dcc025648df0fc961ca8c9381c5aa7dcd36_17_01_30_15_02_20

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: