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

Memory leak on get_more using 3.2 commands

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-rc0
    • Affects Version/s: 1.3.0-beta0
    • Component/s: None
    • Labels:
      None

      ==21099== 1,416 bytes in 1 blocks are indirectly lost in loss record 98 of 119
      ==21099==    at 0x4C2BBCF: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==21099==    by 0x80F581: _emalloc (zend_alloc.c:2423)
      ==21099==    by 0x80F8DF: _safe_emalloc (zend_alloc.c:2539)
      ==21099==    by 0x80FA2B: _ecalloc (zend_alloc.c:2566)
      ==21099==    by 0x9337CC3: php_phongo_calloc (php_phongo.c:2030)
      ==21099==    by 0x92DF45F: bson_malloc0 (bson-memory.c:103)
      ==21099==    by 0x9312053: mongoc_server_description_new_copy (mongoc-server-description.c:438)
      ==21099==    by 0x9319169: mongoc_topology_server_by_id (mongoc-topology.c:570)
      ==21099==    by 0x92F1019: mongoc_cluster_stream_for_server (mongoc-cluster.c:1407)
      ==21099==    by 0x92F9EE1: _mongoc_cursor_fetch_stream (mongoc-cursor.c:306)
      ==21099==    by 0x92FE12D: _mongoc_cursor_cursorid_get_more (mongoc-cursor-cursorid.c:189)
      ==21099==    by 0x92FE44E: _mongoc_cursor_cursorid_next (mongoc-cursor-cursorid.c:249)
      ==21099== 
      ==21099== 1,696 (24 direct, 1,672 indirect) bytes in 1 blocks are definitely lost in loss record 103 of 119
      ==21099==    at 0x4C2BBCF: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==21099==    by 0x80F581: _emalloc (zend_alloc.c:2423)
      ==21099==    by 0x9337C5F: php_phongo_malloc (php_phongo.c:2025)
      ==21099==    by 0x92DF410: bson_malloc (bson-memory.c:67)
      ==21099==    by 0x93125AF: mongoc_server_stream_new (mongoc-server-stream.c:36)
      ==21099==    by 0x92F1413: mongoc_cluster_fetch_stream_single (mongoc-cluster.c:1488)
      ==21099==    by 0x92F0EA1: _mongoc_cluster_stream_for_server_description (mongoc-cluster.c:1348)
      ==21099==    by 0x92F106D: mongoc_cluster_stream_for_server (mongoc-cluster.c:1411)
      ==21099==    by 0x92F9EE1: _mongoc_cursor_fetch_stream (mongoc-cursor.c:306)
      ==21099==    by 0x92FE12D: _mongoc_cursor_cursorid_get_more (mongoc-cursor-cursorid.c:189)
      ==21099==    by 0x92FE44E: _mongoc_cursor_cursorid_next (mongoc-cursor-cursorid.c:249)
      ==21099==    by 0x92FBF0B: mongoc_cursor_next (mongoc-cursor.c:980)
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: