<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:25:16 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-11237] auditlogging of updateUser with an empty roles array causes seg fault</title>
                <link>https://jira.mongodb.org/browse/SERVER-11237</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;So, I start mongod with audit and in the mongo shell, I do db.runCommand( { updateUser: &quot;kayRead&quot;, customData: &lt;/p&gt;
{ tmp: &quot;dyb&quot;}
&lt;p&gt; } )&lt;/p&gt;

&lt;p&gt;That causes the below seg fault.  bummer.&lt;/p&gt;

&lt;p&gt;2013-10-16T18:46:06.307-0400 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; waiting for connections on port 27017&lt;br/&gt;
2013-10-16T18:46:09.199-0400 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:63490 #1 (1 connection now open)&lt;br/&gt;
2013-10-16T18:46:09.200-0400 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt;  authenticate db: admin &lt;/p&gt;
{ authenticate: 1, nonce: &quot;5c180d2dc5f344d2&quot;, user: &quot;kayRead&quot;, key: &quot;299c33f11428f8c2df8ce9c4cbc8f3fc&quot; }
&lt;p&gt;2013-10-16T18:47:04.937-0400 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; Attempting to lock user data for: Update user&lt;br/&gt;
Invalid access at address: 0 from thread: conn1&lt;br/&gt;
Got signal: 11 (Segmentation fault: 11).&lt;br/&gt;
Backtrace:&lt;br/&gt;
0x10bac76db 0x10b483fcb 0x10b484181 0x7fff8ed3090a 0x7fff8edb05c5 0x10b76c2a5 0x10b76b99b 0x10b76cd1f 0x10b76c044 0x10b777a33 0x10b603988 0x10b634cc5 0x10b635a76 0x10b6366ac 0x10b7b9f3e 0x10b7baa2d 0x10b71eefa 0x10b48a414 0x10ba8edd1 0x10bafa095 &lt;br/&gt;
 0   mongod                              0x000000010bac76db _ZN5mongo15printStackTraceERSo + 43&lt;br/&gt;
 1   mongod                              0x000000010b483fcb _ZN5mongo10abruptQuitEi + 251&lt;br/&gt;
 2   mongod                              0x000000010b484181 &lt;em&gt;ZN5mongo24abruptQuitWithAddrSignalEiP9&lt;/em&gt;_siginfoPv + 257&lt;br/&gt;
 3   libsystem_c.dylib                   0x00007fff8ed3090a _sigtramp + 26&lt;br/&gt;
 4   libsystem_c.dylib                   0x00007fff8edb05c5 vasprintf_l + 246&lt;br/&gt;
 5   mongod                              0x000000010b76c2a5 &lt;em&gt;ZN5mongo5audit12_GLOBAL&lt;/em&gt;_N_114encodeTextBodyERKNS0_10AuditEventERSo + 309&lt;br/&gt;
 6   mongod                              0x000000010b76b99b &lt;em&gt;ZN5mongo5audit12_GLOBAL&lt;/em&gt;_N_121AuditEventTextEncoder6encodeERKNS0_10AuditEventERSo + 81&lt;br/&gt;
 7   mongod                              0x000000010b76cd1f &lt;em&gt;ZN5mongo6logger21RotatableFileAppenderINS_5audit10AuditEventEE6appendERKS3&lt;/em&gt; + 177&lt;br/&gt;
 8   mongod                              0x000000010b76c044 &lt;em&gt;ZN5mongo6logger9LogDomainINS_5audit10AuditEventEE6appendERKS3&lt;/em&gt; + 62&lt;br/&gt;
 9   mongod                              0x000000010b777a33 _ZN5mongo5audit13logUpdateUserEPNS_11ClientBasicERKNS_8UserNameEbPKNS_7BSONObjEPKSt6vectorINS_4User8RoleDataESaISB_EE + 643&lt;br/&gt;
 10  mongod                              0x000000010b603988 _ZN5mongo13CmdUpdateUser3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 1954&lt;br/&gt;
 11  mongod                              0x000000010b634cc5 _ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 37&lt;br/&gt;
 12  mongod                              0x000000010b635a76 _ZN5mongo7Command11execCommandEPS0_RNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 1920&lt;br/&gt;
 13  mongod                              0x000000010b6366ac _ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 1388&lt;br/&gt;
 14  mongod                              0x000000010b7b9f3e _ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 46&lt;br/&gt;
 15  mongod                              0x000000010b7baa2d &lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt; + 2301&lt;br/&gt;
 16  mongod                              0x000000010b71eefa _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1818&lt;br/&gt;
 17  mongod                              0x000000010b48a414 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 308&lt;br/&gt;
 18  mongod                              0x000000010ba8edd1 _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 1681&lt;br/&gt;
 19  mongod                              0x000000010bafa095 thread_proxy + 229&lt;/p&gt;





&lt;p&gt;If I pass in the  command w/o the roles: [ &#8230; ]&lt;/p&gt;

&lt;p&gt;      db.runCommand( { updateUser: &quot;kayRead&quot;, customData: &lt;/p&gt;
{ tmp: &quot;dyb&quot;}
&lt;p&gt; } ) &lt;/p&gt;

&lt;p&gt;with audit turned on, it  segfaults  (w/o audit, just updates the user with my customData)&lt;/p&gt;

&lt;p&gt;When I pass in the command with the roles array, we&apos;re good.&lt;/p&gt;

&lt;p&gt;16&amp;gt; db.runCommand( { updateUser: &quot;kayAdmin&quot;, roles: [ &lt;/p&gt;
{ role: &apos;read&apos;, db: &apos;test&apos; }
&lt;p&gt; ] } )&lt;/p&gt;
{ &quot;ok&quot; : 1 }

&lt;p&gt;2013-10-16T20:30:03.184-0400 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; Attempting to lock user data for: Update user&lt;br/&gt;
2013-10-16T20:30:03.185-0400 kay@admin 127.0.0.1:63961/127.0.0.1:27017 000000000000000000000000.0 Updated user kayAdmin@auditDB with the following roles: read@test.&lt;/p&gt;</description>
                <environment></environment>
        <key id="94614">SERVER-11237</key>
            <summary>auditlogging of updateUser with an empty roles array causes seg fault</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="matt.dannenberg">Matt Dannenberg</assignee>
                                    <reporter username="matt.dannenberg">Matt Dannenberg</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Oct 2013 14:41:21 +0000</created>
                <updated>Mon, 11 Jul 2016 17:39:27 +0000</updated>
                            <resolved>Wed, 23 Oct 2013 21:34:12 +0000</resolved>
                                    <version>2.5.3</version>
                                    <fixVersion>2.5.4</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="445671" author="auto" created="Wed, 23 Oct 2013 21:26:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dannenberg&apos;, u&apos;name&apos;: u&apos;matt dannenberg&apos;, u&apos;email&apos;: u&apos;matt.dannenberg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11237&quot; title=&quot;auditlogging of updateUser with an empty roles array causes seg fault&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11237&quot;&gt;&lt;del&gt;SERVER-11237&lt;/del&gt;&lt;/a&gt; avoid segfault when auditlogging an updateUser with no roles array&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/ca914467a5e7ccc69e5ce0d4ed93ac8083faaf22&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/ca914467a5e7ccc69e5ce0d4ed93ac8083faaf22&lt;/a&gt;&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>Wed, 23 Oct 2013 21:26:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 17 weeks 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 17 weeks 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_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>auto</customfieldvalue>
            <customfieldvalue>matt.dannenberg</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmb1r:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>86612</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;updateUser with no role array&lt;/p&gt;</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|hsnk1z:</customfieldvalue>

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