<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:21:29 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-72334] Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE</title>
                <link>https://jira.mongodb.org/browse/SERVER-72334</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently, when we receive SIGSEGV, SIGBUS, SIGILL, or SIGFPE, we only log the following information:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;whether the the signal was an invalid access or invalid operation&lt;/li&gt;
	&lt;li&gt;what address triggered the signal (i.e. the &lt;tt&gt;si_addr&lt;/tt&gt; field in &lt;tt&gt;siginfo_t&lt;/tt&gt; we receive)&lt;/li&gt;
	&lt;li&gt;the signal number&lt;/li&gt;
	&lt;li&gt;the backtrace&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;While this information is often enough, there are cases where we need more diagnostic information than what we log right now, information which is available in our signal handler, but discarded by it.&lt;/p&gt;

&lt;p&gt;Furthermore, because our signal handler ends up calling &lt;tt&gt;raise&lt;/tt&gt; to terminate the process, the contents of &lt;tt&gt;siginfo_t&lt;/tt&gt; that get written to the core dump don&apos;t correspond to the &lt;tt&gt;siginfo_t&lt;/tt&gt; we receive in our signal handler.&lt;/p&gt;

&lt;p&gt;At the very minimum we should:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;log the contents of &lt;tt&gt;si_code&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;emit an informative message that explains that the contents of &lt;tt&gt;$_siginfo&lt;/tt&gt; in GDB don&apos;t represent the information that was received in the signal handler&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Further possible improvements are to log:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;the entire contents of &lt;tt&gt;siginfo_t&lt;/tt&gt; as a hex blob&lt;/li&gt;
	&lt;li&gt;architecture-specific information accessible via &lt;tt&gt;ucontext_t&lt;/tt&gt;
	&lt;ul&gt;
		&lt;li&gt;on x86_64, for segfaults, we can emit the contents of &lt;tt&gt;uc_mcontext.gregs&lt;span class=&quot;error&quot;&gt;&amp;#91;REG_ERR&amp;#93;&lt;/span&gt;&lt;/tt&gt; to help distinguish whether the fault was caused by:
		&lt;ul&gt;
			&lt;li&gt;a read or a write access&lt;/li&gt;
			&lt;li&gt;a kernel-mode or a user-mode access&lt;/li&gt;
			&lt;li&gt;an instruction fetch or not&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2217124">SERVER-72334</key>
            <summary>Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13201">Fixed</resolution>
                                        <assignee username="vojislav.stojkovic@mongodb.com">Vojislav Stojkovic</assignee>
                                    <reporter username="vojislav.stojkovic@mongodb.com">Vojislav Stojkovic</reporter>
                        <labels>
                            <label>auto-reverted</label>
                    </labels>
                <created>Wed, 21 Dec 2022 20:29:44 +0000</created>
                <updated>Sun, 29 Oct 2023 21:28:56 +0000</updated>
                            <resolved>Tue, 5 Sep 2023 18:54:56 +0000</resolved>
                                                    <fixVersion>7.2.0-rc0</fixVersion>
                                                        <votes>1</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="5680631" author="xgen-internal-githook" created="Tue, 5 Sep 2023 17:47:36 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Vojislav Stojkovic&apos;, &apos;email&apos;: &apos;vojislav.stojkovic@mongodb.com&apos;, &apos;username&apos;: &apos;vstojkovic-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72334&quot; title=&quot;Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72334&quot;&gt;&lt;del&gt;SERVER-72334&lt;/del&gt;&lt;/a&gt; Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/67c56e96e5c1203b17b573dd2c9e7e0b9dc68aa0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/67c56e96e5c1203b17b573dd2c9e7e0b9dc68aa0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5631231" author="billy.donahue" created="Sun, 13 Aug 2023 23:01:44 +0000"  >&lt;p&gt;Oops there&apos;s no SIG_TKILL on macOS&lt;/p&gt;</comment>
                            <comment id="5630790" author="xgen-buildbaron-user" created="Sat, 12 Aug 2023 21:15:17 +0000"  >&lt;p&gt;Ticket re-opened due to revert. &lt;a href=&quot;https://evergreen.mongodb.com/task/mongodb_mongo_master_macos_debug_suggested_compile_unittests_2b7c62ee73f7bea6800cb5bc91e6de51af34df75_23_08_11_22_07_04&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;compile_unittests&lt;/a&gt; began a consistent failure of compile_unittests&lt;/p&gt;</comment>
                            <comment id="5630789" author="xgen-internal-githook" created="Sat, 12 Aug 2023 21:12:22 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;auto-revert-processor&apos;, &apos;email&apos;: &apos;dev-prod-dag@mongodb.com&apos;, &apos;username&apos;: &apos;&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72334&quot; title=&quot;Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72334&quot;&gt;&lt;del&gt;SERVER-72334&lt;/del&gt;&lt;/a&gt; Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 2b7c62ee73f7bea6800cb5bc91e6de51af34df75.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/af78b36812c3ef93a29c1c40e6197ad71e71af92&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/af78b36812c3ef93a29c1c40e6197ad71e71af92&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5630031" author="xgen-internal-githook" created="Fri, 11 Aug 2023 22:07:08 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Vojislav Stojkovic&apos;, &apos;email&apos;: &apos;vojislav.stojkovic@mongodb.com&apos;, &apos;username&apos;: &apos;vstojkovic-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72334&quot; title=&quot;Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72334&quot;&gt;&lt;del&gt;SERVER-72334&lt;/del&gt;&lt;/a&gt; Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2b7c62ee73f7bea6800cb5bc91e6de51af34df75&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2b7c62ee73f7bea6800cb5bc91e6de51af34df75&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5071275" author="JIRAUSER1262332" created="Wed, 21 Dec 2022 20:45:20 +0000"  >&lt;p&gt;More info on extracting and interpreting x86_64-specific information: &lt;a href=&quot;https://stackoverflow.com/questions/17671869/how-to-identify-read-or-write-operations-of-page-fault-when-using-sigaction-hand&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/questions/17671869/how-to-identify-read-or-write-operations-of-page-fault-when-using-sigaction-hand&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.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_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 27 Jul 2023 07:14:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        22 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            22 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>billy.donahue@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>vojislav.stojkovic@mongodb.com</customfieldvalue>
            <customfieldvalue>Xgen-BuildBaron-User</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1nv5j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i12gf8:i</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="6748">Service Arch 2023-01-23</customfieldvalue>
    <customfieldvalue id="6749">Service Arch 2023-02-06</customfieldvalue>
    <customfieldvalue id="7349">Service Arch 2023-05-15</customfieldvalue>
    <customfieldvalue id="7354">Service Arch 2023-07-24</customfieldvalue>
    <customfieldvalue id="7612">Service Arch 2023-08-07</customfieldvalue>
    <customfieldvalue id="7613">Service Arch 2023-08-21</customfieldvalue>
    <customfieldvalue id="7614">Service Arch 2023-09-04</customfieldvalue>
    <customfieldvalue id="7615">Service Arch 2023-09-18</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|i1nhav:</customfieldvalue>

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