[CDRIVER-1026] Memory leak on get_more using 3.2 commands Created: 01/Dec/15  Updated: 08/Dec/15  Resolved: 01/Dec/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.3.0-beta0
Fix Version/s: 1.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

==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)



 Comments   
Comment by Githook User [ 01/Dec/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1026: Memory leak on get_more using 3.2 commands
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/60f55699cbbcf34acfb0a092340fa04cb72d54d1

Comment by Hannes Magnusson [ 01/Dec/15 ]

https://mongodbcr.appspot.com/36850001/

Generated at Wed Feb 07 21:11:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.