<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59: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-2203] Mongodb keep crashing/segfaulting</title>
                <link>https://jira.mongodb.org/browse/SERVER-2203</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;For the last 2-3 days I have had recurring issues with mongodb randomly cashing, the last crash the logs displayed a segfault with a backtrace. usually they just said:&lt;/p&gt;

&lt;p&gt;     Fri Dec 10 08:52:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn449&amp;#93;&lt;/span&gt;   Uncaught std::exception: std::bad_alloc, terminating&lt;/p&gt;

&lt;p&gt;The site in question is in production so this is starting to look bad, I have attached the log of the last crash. If I could get some help fixing this issues that would be grate, if you need any more information let me know.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Matt&lt;/p&gt;</description>
                <environment>EC2 large instance (ubuntu)</environment>
        <key id="13923">SERVER-2203</key>
            <summary>Mongodb keep crashing/segfaulting</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="bitzesty">Matthew Ford</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Dec 2010 09:38:47 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:19 +0000</updated>
                            <resolved>Thu, 6 Jan 2011 13:56:24 +0000</resolved>
                                    <version>1.6.5</version>
                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="22138" author="bitzesty" created="Thu, 6 Jan 2011 12:59:02 +0000"  >&lt;p&gt;1.7.3 along with some query optimisations seems to have solved the problem, can close this for now - haven&apos;t seen the issue for a long time.&lt;/p&gt;</comment>
                            <comment id="21579" author="bitzesty" created="Sun, 19 Dec 2010 12:18:25 +0000"  >&lt;p&gt;running on 1.7.3 for 6 days now - not had any crashes since but will keep this ticket updated if it occurs again&lt;/p&gt;</comment>
                            <comment id="21398" author="bitzesty" created="Mon, 13 Dec 2010 21:07:32 +0000"  >&lt;p&gt;every few days - sometimes twice a day (depending on load). I&apos;ll try 1.7.3&lt;/p&gt;</comment>
                            <comment id="21394" author="eliot" created="Mon, 13 Dec 2010 20:36:26 +0000"  >&lt;p&gt;How often is this happening?&lt;br/&gt;
Can you try 1.7.3?&lt;/p&gt;</comment>
                            <comment id="21392" author="bitzesty" created="Mon, 13 Dec 2010 20:04:06 +0000"  >&lt;p&gt;Ok, sorry haven&apos;t replied sooner (was waiting for it to crash again). Attaching the new logs with vvvv on.&lt;/p&gt;</comment>
                            <comment id="21307" author="scotthernandez" created="Fri, 10 Dec 2010 16:32:56 +0000"  >&lt;p&gt;Yes, in the config file just add &quot;vvv=true&quot;&lt;/p&gt;</comment>
                            <comment id="21305" author="bitzesty" created="Fri, 10 Dec 2010 15:50:44 +0000"  >&lt;p&gt;Yes, although we did add monit at some point so there might have been some crashes when we didn&apos;t. &lt;/p&gt;

&lt;p&gt;updates, well we do a few types:&lt;br/&gt;
addtoset&lt;br/&gt;
creating new records&lt;br/&gt;
upserts&lt;/p&gt;

&lt;p&gt;The main reason I suspect that the culprit is massive or query is that it tends to be the last thing in the log before the crashes. &lt;/p&gt;

&lt;p&gt;This is an example of what they look like:&lt;/p&gt;

&lt;p&gt;{ &quot;ts&quot; : &quot;Fri Dec 10 2010 13:32:34 GMT+0000 (BST)&quot;, &quot;info&quot; : &quot;query seogadget_development.keywords scanAndOrder  reslen:1824737 nscanned:10048  \nquery: { $query: { campaign_id: ObjectId(&apos;4d0117374b3e897d5a000001&apos;), $or: [ { search_index: &lt;/p&gt;
{ $all: [ \&quot;from\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;to\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;london\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;pari\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;dover\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;franc\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;disneyland\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;hotel\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;euro\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;eurostar\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;uk\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;franc\&quot; ] }
&lt;p&gt; }, { search_index: &lt;/p&gt;
{ $all: [ \&quot;tunnel\&quot; ] }
&lt;p&gt; } ], hidden: &lt;/p&gt;
{ $ne: true }
&lt;p&gt; }, $orderby: &lt;/p&gt;
{ search_volume: -1, visits: -1 }
&lt;p&gt; }  nreturned:3947 1237ms&quot;, &quot;millis&quot; : 1237 }&lt;/p&gt;

&lt;p&gt;Currently in the process of refactoring our code to avoid doing this as much as possible as it&apos;s also very slow.&lt;/p&gt;

&lt;p&gt;Is there a config option for -vvvv so I don&apos;t have to run the process in screen.&lt;/p&gt;</comment>
                            <comment id="21297" author="eliot" created="Fri, 10 Dec 2010 15:05:22 +0000"  >&lt;p&gt;Did you do a --repair after the first crash?&lt;br/&gt;
What kind of updates are you doing?&lt;br/&gt;
Can you run with -vvvv&lt;/p&gt;</comment>
                            <comment id="21288" author="bitzesty" created="Fri, 10 Dec 2010 13:02:42 +0000"  >&lt;p&gt;I have a feeling it could be that some of our queries use &apos;$or&apos; with many conjunctions&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10666" name="crash-log-13-12-2010.txt" size="17209" author="bitzesty" created="Mon, 13 Dec 2010 20:05:11 +0000"/>
                            <attachment id="10652" name="mongodb-log.txt" size="11409" author="bitzesty" created="Fri, 10 Dec 2010 09:38:47 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 10 Dec 2010 15:05:22 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 6 weeks, 6 days 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>bitzesty</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpadr:</customfieldvalue>

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

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

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