<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:34:01 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-14155] Segmentation fault</title>
                <link>https://jira.mongodb.org/browse/SERVER-14155</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;An error occurred in running after a period of time in a secondary.&lt;/p&gt;</description>
                <environment>Centos 6.3</environment>
        <key id="139950">SERVER-14155</key>
            <summary>Segmentation 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="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="caoqing">qing cao</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Jun 2014 02:35:14 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:59 +0000</updated>
                            <resolved>Tue, 17 Jun 2014 19:43:09 +0000</resolved>
                                    <version>2.4.10</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="625047" author="ramon.fernandez" created="Tue, 17 Jun 2014 19:42:55 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=caoqing&quot; class=&quot;user-hover&quot; rel=&quot;caoqing&quot;&gt;caoqing&lt;/a&gt; we&apos;re going to mark this issue as resolved. Feel free to reopen if it happens again after removing the &lt;tt&gt;nproc&lt;/tt&gt; limitation.&lt;/p&gt;</comment>
                            <comment id="623989" author="caoqing" created="Tue, 17 Jun 2014 03:25:57 +0000"  >&lt;p&gt;I found i had set a wrong parameter by mistake.&lt;br/&gt;
This is my original limits file  &quot;/etc/security/limit.d/90-nproc.conf&quot;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;soft noproc 32000&lt;/li&gt;
	&lt;li&gt;hard noproc 32000&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;After i fixed it the error had never occurred.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;soft nproc 32000&lt;/li&gt;
	&lt;li&gt;hard nproc 32000&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;But I don&apos;t know why I have came across this issue.&lt;br/&gt;
I checked that the max process put in place limitation of 32000 all the time.&lt;/p&gt;

&lt;p&gt;cat /proc/`pidof mongod`/limits|grep -i &quot;max processes&quot; &lt;br/&gt;
Max processes             32000                32000                processes&lt;/p&gt;</comment>
                            <comment id="609918" author="ramon.fernandez" created="Thu, 5 Jun 2014 18:03:11 +0000"  >&lt;p&gt;Looking at the logs I get the impression that there are too many connection attempts to the secondary, and some OS limit is being hit (e.g.: number of file descriptors, memory allocation). It would be useful to see the &lt;tt&gt;mongod.log&lt;/tt&gt; file for the last few hours/days leading up to this error. If the error happens soon after restarting MongoDB on the secondary, then please proceed as follows:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;stop MongoDB on the secondary&lt;/li&gt;
	&lt;li&gt;remove &lt;tt&gt;mongod.log&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;re-start MongoDB&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;and send us the resulting &lt;tt&gt;mongod.log&lt;/tt&gt; file when the error happens. The output of &lt;tt&gt;ulimit -a&lt;/tt&gt; could be useful as well.&lt;/p&gt;

&lt;p&gt;Note that your logs also contain the following:&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;   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;possible SYN flooding on port 27017. Sending cookies.&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;The &lt;tt&gt;SYN flooding&lt;/tt&gt; message might be legitimate, but could also indicate a DOS attack. Is it possible for you to post the output of &lt;tt&gt;netstat -a&lt;/tt&gt;?&lt;/p&gt;</comment>
                            <comment id="609028" author="caoqing" created="Thu, 5 Jun 2014 03:23:25 +0000"  >&lt;p&gt;Hi, &lt;br/&gt;
This issue has brought a lot of trouble to me now. &lt;br/&gt;
I&apos;ve uploaded the log information onto the attachments.&lt;br/&gt;
It occurs frequently, but simply on a secondary.&lt;br/&gt;
Here is a live configuration on one of my replica sets:&lt;br/&gt;
rs_main:PRIMARY&amp;gt; rs.conf()&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : &quot;rs_main&quot;,&lt;br/&gt;
        &quot;version&quot; : 18,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 2,
                        &quot;host&quot; : &quot;dal05mgo05.sl.dx:27017&quot;,
                        &quot;priority&quot; : 60
                }
&lt;p&gt;,&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 3,
                        &quot;host&quot; : &quot;dal07mgo02.sl.dx:27017&quot;
                }
&lt;p&gt;,&lt;/p&gt;
                {
                        &quot;_id&quot; : 6,
                        &quot;host&quot; : &quot;dal05mgo08.sl.dx:27017&quot;
                }
&lt;p&gt;        ]&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="607496" author="rassi@10gen.com" created="Wed, 4 Jun 2014 10:30:40 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I notice the following from the log except you posted:&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;   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;src/third_party/gperftools-2.0/src/central_freelist.cc:322] tcmalloc: allocation failed 32768 &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;
&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;   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;Sat May 31 04:39:17.109 [conn1888120] Assertion: 16070:out of memory BufBuilder::grow_reallocate&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;I conclude that the the mongod process failed to allocate memory, likely due to an OOM condition in the OS.  The next step would be to attempt to determine whether the cause of the issue is a novel memory leak in the server.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Is this issue reproducible?  If so, have you encountered it on any other replica set member before?&lt;/li&gt;
	&lt;li&gt;Can you post the output of running the following on both this replica set member and the primary member?
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;dmesg | tail -100&lt;/li&gt;
		&lt;li&gt;top -b -n 1&lt;/li&gt;
		&lt;li&gt;free&lt;/li&gt;
		&lt;li&gt;mongostat -n 10&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;~ Jason Rassi&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="44808" name="log.tar.gz" size="40991" author="caoqing" created="Thu, 5 Jun 2014 03:23:25 +0000"/>
                            <attachment id="44678" name="mongod.log" size="18442" author="caoqing" created="Wed, 4 Jun 2014 02:35:14 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 4 Jun 2014 10:30:40 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 35 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>caoqing</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlttr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>120661</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|hs5wlj:</customfieldvalue>

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