<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:51 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-1724] Repair halts with segmentation fault</title>
                <link>https://jira.mongodb.org/browse/SERVER-1724</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Working with 1.5.6 version and after a data import and some data manipulation on a 40 million collection, the database its corrupt. It seems that the data can be accessed normally, but when trying to run some data processing using a java process, an error occurs and ask for a database repair.&lt;br/&gt;
When executing the db repair, the process run normally, until it reach about 8 million objects cloned, when a segmentation fault occurs. The backtrace seems to point that the error occurs on the validate method of BSONElement class.&lt;br/&gt;
I&apos;ve tried to run the same repair process with 1.6.2 version, getting similar results. The log attached was obtained as one of these tries.&lt;/p&gt;</description>
                <environment>CentOS 5.5&lt;br/&gt;
kernel 2.6.33.5-xxxx-grs-ipv4-64</environment>
        <key id="12993">SERVER-1724</key>
            <summary>Repair halts with 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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="leio10">Leonardo Diez</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Sep 2010 10:44:32 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:04 +0000</updated>
                            <resolved>Fri, 3 Sep 2010 16:02:02 +0000</resolved>
                                    <version>1.5.6</version>
                    <version>1.6.2</version>
                                    <fixVersion>1.7.0</fixVersion>
                                    <component>Stability</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="20707" author="dwight_10gen" created="Thu, 25 Nov 2010 15:44:19 +0000"  >&lt;p&gt;i have made a new generalized ticket for clarity &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2149&quot; title=&quot;BSONObj::valid and BSONElement::validate can crash if the source data is invalid&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2149&quot;&gt;&lt;del&gt;SERVER-2149&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="17883" author="leio10" created="Wed, 8 Sep 2010 12:11:10 +0000"  >&lt;p&gt;I&apos;ve solved the problem temporary changing the limit to 4M to run the repair process, because I know all my string data doesn&apos;t reach that size. Maybe there is a good idea to use a SIGSEV handler to avoid segmentation fault during data validation.&lt;/p&gt;</comment>
                            <comment id="17882" author="leio10" created="Wed, 8 Sep 2010 09:32:42 +0000"  >&lt;p&gt;I&apos;ve applied your changes to 1.6.2 code, compiled it and tried to execute a db reparation again. The problem keeps there. The backtrace line changes to: /opt/mongo/bin/mongod(_ZNK5mongo11BSONElement8validateEv+0x6d).&lt;br/&gt;
I&apos;ve added some debug info prints to find out which are the common values for x, because your modification verifies that it is lower than 32M = 33554432. I found that values for x are usually lower than 255, but before the segmentation fault occurs x is 3840 (doesn&apos;t seems to be a problem) and the next time is 7602689, and then the segmentation fault occurs. So, x is a valid value, but it&apos;s not correct and a segmentation fault occurs when it tries to see if valuestr()&lt;span class=&quot;error&quot;&gt;&amp;#91;x-1&amp;#93;&lt;/span&gt; is 0. There&apos;s any way to avoid the problem?&lt;/p&gt;
</comment>
                            <comment id="17756" author="auto" created="Fri, 3 Sep 2010 16:02:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: try to prevent segfault on corrupt data &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1724&quot; title=&quot;Repair halts with segmentation fault&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1724&quot;&gt;&lt;del&gt;SERVER-1724&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/1c0d685f9a22c8e4acba957dba99feda69bc12be&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/1c0d685f9a22c8e4acba957dba99feda69bc12be&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="13803">SERVER-2149</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="10425" name="mongo-repair-segfault.log" size="15544" author="leio10" created="Fri, 3 Sep 2010 10:44:32 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 3 Sep 2010 16:02:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 12 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>false</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, 12 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>auto</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>leio10</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpfzz:</customfieldvalue>

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

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

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