<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:04:44 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-44010] heap_profiler.cpp has a few bugs</title>
                <link>https://jira.mongodb.org/browse/SERVER-44010</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In file&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blame/fd3a1af42439bce510688051e0c820de13c7166f/src/mongo/util/heap_profiler.cpp#L486&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;heap_profiler.cpp&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;member functions like size(), hash(), operator==, need const.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Consider replacing private HashTable implementation with standard one.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blame/fd3a1af42439bce510688051e0c820de13c7166f/src/mongo/util/heap_profiler.cpp#L479&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;L479&lt;/a&gt;&#160;bounds on j are infinite if numFrames &amp;lt; skipEndFrames.  (This was fixed as a side-effect of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45357&quot; title=&quot;Builtin heap profiler should use the new stack tracing API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45357&quot;&gt;&lt;del&gt;SERVER-45357&lt;/del&gt;&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blame/fd3a1af42439bce510688051e0c820de13c7166f/src/mongo/util/heap_profiler.cpp#L486&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;L486&lt;/a&gt;&#160;first paren isn&apos;t necessarily start of function params.&lt;br/&gt;
for example, &quot;_Z1gIEPFviEv&quot; demangles to &quot;void (*g&amp;lt;&amp;gt;())(int)&quot;, a function returning a function pointer. Maybe just don&apos;t demangle.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blame/fd3a1af42439bce510688051e0c820de13c7166f/src/mongo/util/heap_profiler.cpp#L502&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;L502&lt;/a&gt;&#160;StringData receives a dangling reference.&lt;br/&gt;
(This was fixed as a side-effect of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45357&quot; title=&quot;Builtin heap profiler should use the new stack tracing API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45357&quot;&gt;&lt;del&gt;SERVER-45357&lt;/del&gt;&lt;/a&gt;)&lt;br/&gt;
&#160;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;sortByActiveBytes&lt;/tt&gt; comparator is not a stable order as the elements can shift position during the sort. Fix this comparator (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-41787&quot; title=&quot;heapprofile may crash&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-41787&quot;&gt;&lt;del&gt;SERVER-41787&lt;/del&gt;&lt;/a&gt;).&#160;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="970079">SERVER-44010</key>
            <summary>heap_profiler.cpp has a few bugs</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-servicearch">Backlog - Service Architecture</assignee>
                                    <reporter username="billy.donahue@mongodb.com">Billy Donahue</reporter>
                        <labels>
                            <label>sa-remove-fv-backlog-22</label>
                    </labels>
                <created>Tue, 15 Oct 2019 09:41:32 +0000</created>
                <updated>Mon, 30 Oct 2023 14:29:20 +0000</updated>
                                                                            <component>Internal Code</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="5831128" author="JIRAUSER1270969" created="Mon, 30 Oct 2023 14:29:20 +0000"  >&lt;p&gt;Also, I was not able to find jstests they use heap profiler. If we are going to support this, we need to add some.&lt;/p&gt;</comment>
                            <comment id="3954022" author="billy.donahue" created="Wed, 21 Jul 2021 03:40:10 +0000"  >&lt;p&gt;in light of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-41787&quot; title=&quot;heapprofile may crash&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-41787&quot;&gt;&lt;del&gt;SERVER-41787&lt;/del&gt;&lt;/a&gt;, it looks like heap_profiler.cpp still runs, so we have to handle its bugs.&lt;/p&gt;</comment>
                            <comment id="3338270" author="milkie" created="Thu, 13 Aug 2020 20:00:37 +0000"  >&lt;p&gt;It isn&apos;t supported and isn&apos;t used often enough to warrant fixing the bugs, so we have no long-term plans to fix them.&lt;/p&gt;</comment>
                            <comment id="3338253" author="billy.donahue" created="Thu, 13 Aug 2020 19:54:53 +0000"  >&lt;p&gt;Some of these are really really real bugs.&lt;/p&gt;

&lt;p&gt;Why is it being closed? Is heap_profiler.cpp being removed?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="804697">SERVER-41787</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2117654">SERVER-68978</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25132"><![CDATA[Service Arch]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 21 Oct 2019 15:52:14 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 weeks, 2 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>ivan.fefer@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-servicearch</customfieldvalue>
            <customfieldvalue>billy.donahue@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>ivan.fefer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvxkon:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </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|hvx6xz:</customfieldvalue>

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