<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:18 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-4211] Why is Valgrind complaining at every single connection?</title>
                <link>https://jira.mongodb.org/browse/SERVER-4211</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;    DBClientConnection c;&lt;br/&gt;
    c.connect(&quot;localhost&quot;);&lt;/p&gt;

&lt;p&gt;Valgrind output:&lt;/p&gt;

&lt;p&gt;37 bytes in 1 blocks are possibly lost in loss record 6 of 27&lt;br/&gt;
  in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  1: operator new(unsigned long) in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so&lt;br/&gt;
  2: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  3: char* std::string::_S_construct&amp;lt;char const*&amp;gt;(char const*, char const*, std::allocator&amp;lt;char&amp;gt; const&amp;amp;, std::forward_iterator_tag) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  4: std::basic_string&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;, std::allocator&amp;lt;char&amp;gt; &amp;gt;::basic_string(char const*, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  5: mongo::Command::Command(char const*, bool, char const*) in /usr/src/packages/BUILD/mongodb-src-r1.8.3/db/commands.cpp:98&lt;br/&gt;
  6: global constructors keyed to connpool.cpp in /usr/src/packages/BUILD/mongodb-src-r1.8.3/client/connpool.cpp:262&lt;br/&gt;
  7: mongocpp&lt;br/&gt;
  8: mongocpp&lt;br/&gt;
  9: /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  10: __libc_csu_init in /usr/src/packages/BUILD/glibc-2.11.3/csu/elf-init.c:120&lt;br/&gt;
  11: (below main) in /lib64/libc-2.11.3.so&lt;/p&gt;


&lt;p&gt;37 bytes in 1 blocks are possibly lost in loss record 7 of 27&lt;br/&gt;
  in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  1: operator new(unsigned long) in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so&lt;br/&gt;
  2: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  3: char* std::string::_S_construct&amp;lt;char const*&amp;gt;(char const*, char const*, std::allocator&amp;lt;char&amp;gt; const&amp;amp;, std::forward_iterator_tag) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  4: std::basic_string&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;, std::allocator&amp;lt;char&amp;gt; &amp;gt;::basic_string(char const*, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  5: mongo::Command::Command(char const*, bool, char const*) in /usr/src/packages/BUILD/mongodb-src-r1.8.3/db/commands.cpp:117&lt;br/&gt;
  6: global constructors keyed to connpool.cpp in /usr/src/packages/BUILD/mongodb-src-r1.8.3/client/connpool.cpp:262&lt;br/&gt;
  7: mongocpp&lt;br/&gt;
  8: mongocpp&lt;br/&gt;
  9: /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  10: __libc_csu_init in /usr/src/packages/BUILD/glibc-2.11.3/csu/elf-init.c:120&lt;br/&gt;
  11: (below main) in /lib64/libc-2.11.3.so&lt;/p&gt;


&lt;p&gt;38 bytes in 1 blocks are possibly lost in loss record 8 of 27&lt;br/&gt;
  in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  1: operator new(unsigned long) in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so&lt;br/&gt;
  2: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  3: char* std::string::_S_construct&amp;lt;char const*&amp;gt;(char const*, char const*, std::allocator&amp;lt;char&amp;gt; const&amp;amp;, std::forward_iterator_tag) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  4: std::basic_string&amp;lt;char, std::char_traits&amp;lt;char&amp;gt;, std::allocator&amp;lt;char&amp;gt; &amp;gt;::basic_string(char const*, std::allocator&amp;lt;char&amp;gt; const&amp;amp;) in /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  5: mongo::Command::Command(char const*, bool, char const*) in /usr/src/packages/BUILD/mongodb-src-r1.8.3/db/commands.cpp:98&lt;br/&gt;
  6: global constructors keyed to connpool.cpp in /usr/src/packages/BUILD/mongodb-src-r1.8.3/client/connpool.cpp:277&lt;br/&gt;
  7: mongocpp&lt;br/&gt;
  8: mongocpp&lt;br/&gt;
  9: /usr/lib64/libstdc++.so.6.0.14&lt;br/&gt;
  10: __libc_csu_init in /usr/src/packages/BUILD/glibc-2.11.3/csu/elf-init.c:120&lt;br/&gt;
  11: (below main) in /lib64/libc-2.11.3.so&lt;/p&gt;
</description>
                <environment></environment>
        <key id="24497">SERVER-4211</key>
            <summary>Why is Valgrind complaining at every single connection?</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="4">Incomplete</resolution>
                                        <assignee username="brandon">Brandon Diamond</assignee>
                                    <reporter username="traktor">Traktor Toni</reporter>
                        <labels>
                            <label>memory-leak</label>
                    </labels>
                <created>Fri, 4 Nov 2011 12:28:49 +0000</created>
                <updated>Tue, 29 May 2012 14:53:36 +0000</updated>
                            <resolved>Thu, 17 Nov 2011 16:09:11 +0000</resolved>
                                    <version>1.8.3</version>
                                                    <component>Internal Client</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="67399" author="brandon" created="Thu, 17 Nov 2011 16:08:22 +0000"  >&lt;p&gt;This is related to the map of command names to commands. The allocation is interleaved with the server&apos;s initial fork which makes this somewhat tricky to fix. Importantly, this leak will not grow over time &amp;#8211; though a small, constant number of blocks will not be cleanly deallocated. I am creating a more specific ticket to address the cause of this leak.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 17 Nov 2011 16:08:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 13 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 13 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>brandon</customfieldvalue>
            <customfieldvalue>traktor</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hromgf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrisyn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23345</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrhx4f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>