<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:26:53 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-74240] Add gdb CodeFragment pretty printing of stackSize and fixups</title>
                <link>https://jira.mongodb.org/browse/SERVER-74240</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This is split out of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72752&quot; title=&quot;Add C++ CodeFragment pretty printing of stackSize and fixups&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72752&quot;&gt;&lt;del&gt;SERVER-72752&lt;/del&gt;&lt;/a&gt; for the Python pretty printer used by gdb to print CodeFragments.&lt;/p&gt;

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

&lt;p&gt;Q: Where is the Python pretty printer?&lt;/p&gt;

&lt;p&gt;A: Irina Yatsenko: buildscripts/gdb/mongo_printers.py &lt;b&gt;SbeCodeFragmentPrinter&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;[Originally added by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62049&quot; title=&quot;Add debugging aids for some of the new SBE types&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62049&quot;&gt;&lt;del&gt;SERVER-62049&lt;/del&gt;&lt;/a&gt; via commit&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/207e7d16e4a24d4a16c2ab594bf5122e50aa8c4e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/207e7d16e4a24d4a16c2ab594bf5122e50aa8c4e&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;It is a plugin for the GDB debugger.&amp;#93;&lt;/span&gt; the pretty printers should be loaded automatically if you are running GDB from the toolchain. however, after the recent toolchain updates there have been issues with pretty printers (not sure exactly about the extent of problems)&lt;/p&gt;

&lt;p&gt;you&apos;d need to attach GDB to mongod and get it to breakpoint in code that has a CodeFragment object sitting around. Then you do either &quot;p obj_name&quot; or &quot;p *obj_name&quot; depending on whether &apos;obj_name&apos; is a value or a pointer&lt;/p&gt;

&lt;p&gt;it should printout a nicely formatted sequence of opcodes&lt;/p&gt;

&lt;p&gt;from the recent communications flying around, you might need to compile with &lt;b&gt;GDB_INDEX=1&lt;/b&gt; (add it to the scone&apos;s command line) to get any decent debugging experience in GDB. it does make the compile/link time longer, though, so you might not want to keep the setting permanently...&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2271203">SERVER-74240</key>
            <summary>Add gdb CodeFragment pretty printing of stackSize and fixups</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="kevin.cherkauer@mongodb.com">Kevin Cherkauer</assignee>
                                    <reporter username="kevin.cherkauer@mongodb.com">Kevin Cherkauer</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Feb 2023 20:47:16 +0000</created>
                <updated>Wed, 1 Mar 2023 16:40:59 +0000</updated>
                            <resolved>Wed, 1 Mar 2023 00:13:05 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="5238710" author="JIRAUSER1270811" created="Wed, 1 Mar 2023 00:13:05 +0000"  >&lt;p&gt;The external Python pretty printer has not been maintained and is broken in current master, so &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=irina.yatsenko%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;irina.yatsenko@mongodb.com&quot;&gt;irina.yatsenko@mongodb.com&lt;/a&gt;, its creator, who moved to QI, was probably its only user. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=anna.wawrzyniak%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;anna.wawrzyniak@mongodb.com&quot;&gt;anna.wawrzyniak@mongodb.com&lt;/a&gt;, who opened the original ticket this was added to and then split off from later (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72752&quot; title=&quot;Add C++ CodeFragment pretty printing of stackSize and fixups&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72752&quot;&gt;&lt;del&gt;SERVER-72752&lt;/del&gt;&lt;/a&gt; Add C++ CodeFragment pretty printing of stackSize and fixups ), is fine not continuing the Python one. I also posted to the #sbe Slack channel asking if anyone is using the Python one and got no replies so far.&lt;/p&gt;

&lt;p&gt;The C++ pretty printer I already enhanced in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72752&quot; title=&quot;Add C++ CodeFragment pretty printing of stackSize and fixups&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72752&quot;&gt;&lt;del&gt;SERVER-72752&lt;/del&gt;&lt;/a&gt; can be called from the llvm debugger:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;?/nat code2.toString()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;[0x7fffbfa42ab0-0x7fffbfa42ac9] stackSize: 5, maxStackSize: 5\n0x7fffbfa42ab0: pushLocalVal(arg: -11);\n0x7fffbfa42ab1:   fixup: frameId: 10\n0x7fffbfa42ab5: pushLocalVal(arg: -20);\n0x7fffbfa42ab6:   fixup: frameId: 10\n0x7fffbfa42aba: pushLocalVal(arg: 1);\n0x7fffbfa42abb:   fixup: frameId: 10\n0x7fffbfa42abf: pushLocalVal(arg: 2);\n0x7fffbfa42ac0:   fixup: frameId: 10\n0x7fffbfa42ac4: pushLocalVal(arg: -97);\n0x7fffbfa42ac5:   fixup: frameId: 10\n&quot;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;and is also used by tests, so it is kept in sync.&lt;/p&gt;

&lt;p&gt;There is no business case for maintaining a second external pretty printer, so I am closing this as &quot;Won&apos;t Do.&quot;&lt;/p&gt;</comment>
                            <comment id="5225767" author="JIRAUSER1270811" created="Thu, 23 Feb 2023 17:05:46 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.storch%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;david.storch@mongodb.com&quot;&gt;david.storch@mongodb.com&lt;/a&gt;&#160;I split this out of existing already scheduled ticket &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72752&quot; title=&quot;Add C++ CodeFragment pretty printing of stackSize and fixups&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72752&quot;&gt;&lt;del&gt;SERVER-72752&lt;/del&gt;&lt;/a&gt;. It is in the state Jira put it into. I do not believe I have the authority to make scheduling decisions and have found some of my prior attempts were frowned upon, so I just left it in the state Jira put it into. If you can confirm I should just schedule this then I will click the &quot;Schedule&quot; button &amp;#8211; or you can do it.&lt;/p&gt;

&lt;p&gt;The original ticket seemed to add the gdb pretty pritner as an afterthought, and it is a Python tool external to the server codebase, so I thought it is better to do it as a separate ticket rather than hold the original ticket open after the C++ pretty printer is delivered.&lt;/p&gt;</comment>
                            <comment id="5225550" author="david.storch" created="Thu, 23 Feb 2023 16:27:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kevin.cherkauer%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kevin.cherkauer@mongodb.com&quot;&gt;kevin.cherkauer@mongodb.com&lt;/a&gt; is it incorrect that this ticket is in &quot;Needs Scheduling&quot; state? It looks like it&apos;s assigned to you and slotted into the current QE sprint.&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25125"><![CDATA[Query Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 23 Feb 2023 16:27:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        49 weeks, 1 day 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>kevin.cherkauer@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            49 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>kevin.cherkauer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1x5f3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1fkkw:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="6990">QE 2023-03-06</customfieldvalue>

                        </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|i1wrkf:</customfieldvalue>

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