<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:13:23 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-7006] mongo tools seg fault in 2.2.0 with replica sets in connection string</title>
                <link>https://jira.mongodb.org/browse/SERVER-7006</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Mongoimport started core dumping with replica sets when we upgraded to 2.2.0.&lt;/p&gt;

&lt;p&gt;I can reproduce it with a local three node replica set. When importing directly to PRIMARY everything works:&lt;/p&gt;

&lt;p&gt;mongoimport -h localhost -d test -c my_collection test.json &lt;br/&gt;
connected to: localhost&lt;br/&gt;
Tue Sep 11 10:27:55 imported 1 objects&lt;/p&gt;

&lt;p&gt;but if the set is added to the host string then mongoimport core dumps:&lt;/p&gt;

&lt;p&gt;mongoimport -h foo/localhost -d test -c my_collection test.json &lt;br/&gt;
Tue Sep 11 10:21:59 starting new replica set monitor for replica set foo with seed of localhost:27017&lt;br/&gt;
Tue Sep 11 10:21:59 successfully connected to seed localhost:27017 for replica set foo&lt;br/&gt;
Tue Sep 11 10:21:59 changing hosts to &lt;/p&gt;
{ 0: &quot;localhost:27017&quot;, 1: &quot;localhost:27019&quot;, 2: &quot;localhost:27018&quot; }
&lt;p&gt; from foo/&lt;br/&gt;
Tue Sep 11 10:21:59 trying to add new host localhost:27017 to replica set foo&lt;br/&gt;
Tue Sep 11 10:21:59 successfully connected to new host localhost:27017 in replica set foo&lt;br/&gt;
Tue Sep 11 10:21:59 trying to add new host localhost:27018 to replica set foo&lt;br/&gt;
Tue Sep 11 10:21:59 successfully connected to new host localhost:27018 in replica set foo&lt;br/&gt;
Tue Sep 11 10:21:59 trying to add new host localhost:27019 to replica set foo&lt;br/&gt;
Tue Sep 11 10:21:59 successfully connected to new host localhost:27019 in replica set foo&lt;br/&gt;
Tue Sep 11 10:21:59 Primary for replica set foo changed to localhost:27017&lt;br/&gt;
Tue Sep 11 10:21:59 replica set monitor for replica set foo started, address is foo/localhost:27017,localhost:27018,localhost:27019&lt;br/&gt;
Tue Sep 11 10:21:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; starting&lt;br/&gt;
connected to: foo/localhost&lt;br/&gt;
Tue Sep 11 10:21:59 imported 1 objects&lt;br/&gt;
Logstream::get called in uninitialized state&lt;br/&gt;
Tue Sep 11 10:21:59 deleting replica set monitor for: foo/localhost:27017,localhost:27018,localhost:27019&lt;br/&gt;
Segmentation fault&lt;/p&gt;

&lt;p&gt;It does not matter what kind of json document is imported, the one shown here is trivial:&lt;/p&gt;

&lt;p&gt;cat test.json &lt;br/&gt;
{&quot;menu&quot;: {&quot;value&quot;: &quot;File&quot;}}&lt;/p&gt;

&lt;p&gt;I tried the exact same setup with Mongo 2.0.7 and everything works perfectly:&lt;/p&gt;

&lt;p&gt;mongoimport -h foo/localhost -d test -c my_collection test.json &lt;br/&gt;
Tue Sep 11 10:33:06 starting new replica set monitor for replica set foo with seed of localhost&lt;br/&gt;
Tue Sep 11 10:33:06 successfully connected to seed localhost for replica set foo&lt;br/&gt;
Tue Sep 11 10:33:06 changing hosts to &lt;/p&gt;
{ 0: &quot;localhost:27017&quot;, 1: &quot;localhost:27019&quot;, 2: &quot;localhost:27018&quot; }
&lt;p&gt; from foo/&lt;br/&gt;
Tue Sep 11 10:33:06 trying to add new host localhost:27017 to replica set foo&lt;br/&gt;
Tue Sep 11 10:33:06 successfully connected to new host localhost:27017 in replica set foo&lt;br/&gt;
Tue Sep 11 10:33:06 trying to add new host localhost:27018 to replica set foo&lt;br/&gt;
Tue Sep 11 10:33:06 successfully connected to new host localhost:27018 in replica set foo&lt;br/&gt;
Tue Sep 11 10:33:06 trying to add new host localhost:27019 to replica set foo&lt;br/&gt;
Tue Sep 11 10:33:06 successfully connected to new host localhost:27019 in replica set foo&lt;br/&gt;
Tue Sep 11 10:33:06 replica set monitor for replica set foo started, address is foo/localhost:27017,localhost:27018,localhost:27019&lt;br/&gt;
Tue Sep 11 10:33:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicaSetMonitorWatcher&amp;#93;&lt;/span&gt; starting&lt;br/&gt;
connected to: foo/localhost&lt;br/&gt;
imported 1 objects&lt;/p&gt;</description>
                <environment>Linux Mint 12, CentOS 6.2</environment>
        <key id="50190">SERVER-7006</key>
            <summary>mongo tools seg fault in 2.2.0 with replica sets in connection string</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="siddharth.singh@10gen.com">siddharth.singh@10gen.com</assignee>
                                    <reporter username="reynders">Joonas Reynders</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Sep 2012 07:34:11 +0000</created>
                <updated>Mon, 11 Jul 2016 17:56:29 +0000</updated>
                            <resolved>Fri, 14 Sep 2012 18:20:41 +0000</resolved>
                                    <version>2.2.0</version>
                                    <fixVersion>2.2.3</fixVersion>
                    <fixVersion>2.3.0</fixVersion>
                                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="166014" author="siddharth.singh@10gen.com" created="Wed, 19 Sep 2012 15:31:58 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2b48ac27f5feae6c2bdf0ec53912870a8e2ee3e9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2b48ac27f5feae6c2bdf0ec53912870a8e2ee3e9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="164567" author="siddharth.singh@10gen.com" created="Fri, 14 Sep 2012 18:16:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ca91de625f1b565f38621635f595326b70d30f37&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ca91de625f1b565f38621635f595326b70d30f37&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="163748" author="ian@10gen.com" created="Thu, 13 Sep 2012 02:30:07 +0000"  >&lt;p&gt;as mentioned in the linked tickets, this problem affects all of the tools.&lt;/p&gt;</comment>
                            <comment id="163392" author="tad" created="Wed, 12 Sep 2012 12:38:49 +0000"  >&lt;p&gt;The crash is apparently caused by static destructors running in a non-deterministic order at program exit.  So, it&apos;s ugly and shouldn&apos;t happen, but the main code logic has already exited before this happens.&lt;/p&gt;</comment>
                            <comment id="162907" author="silver" created="Tue, 11 Sep 2012 12:05:08 +0000"  >&lt;p&gt;I believe, this is duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6989&quot; title=&quot;mongodump segfaults when host is passed a replSet string&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6989&quot;&gt;&lt;del&gt;SERVER-6989&lt;/del&gt;&lt;/a&gt;, and very closely related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6915&quot; title=&quot;Replica set connection string (&amp;quot;rsName/host1,host2,...&amp;quot;) causes segfault in mongooplog&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6915&quot;&gt;&lt;del&gt;SERVER-6915&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="60342">SERVER-8029</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="49123">SERVER-6915</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="50108">SERVER-6989</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="57170">SERVER-7744</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="60576">SERVER-8050</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="60513">SERVER-8043</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="49225">SERVER-6922</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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_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>Tue, 11 Sep 2012 12:05:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 22 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>
                            11 years, 22 weeks ago
                        </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>silver</customfieldvalue>
            <customfieldvalue>ian@mongodb.com</customfieldvalue>
            <customfieldvalue>reynders</customfieldvalue>
            <customfieldvalue>siddharth.singh@10gen.com</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnp3r:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16158</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></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|ht044f:</customfieldvalue>

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