<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:18:35 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-8833] Segmentation fault after replSet relinquishing primary state, network/SSL related</title>
                <link>https://jira.mongodb.org/browse/SERVER-8833</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We use Cloudflare for our DNS.  Their DNS went down this morning at 9:47 UTC as described here (&lt;a href=&quot;http://techcrunch.com/2013/03/03/cloudflare-is-down-due-to-dns-outage-taking-down-785000-websites-including-4chan-wikileaks-metallica-com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://techcrunch.com/2013/03/03/cloudflare-is-down-due-to-dns-outage-taking-down-785000-websites-including-4chan-wikileaks-metallica-com/&lt;/a&gt;).  &lt;/p&gt;

&lt;p&gt;That caused our primary instance of MongoDB relinquishing primary state because we currently use hostnames in our replica set &lt;span class=&quot;error&quot;&gt;&amp;#91;I&amp;#39;ll change this in the future so it does not&amp;#93;&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;That I would expect.  But it also seg faulted:  (I&apos;ve changed the host names to be more descriptive)&lt;/p&gt;

&lt;p&gt;Sun Mar  3 03:52:12 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsHealthPoll&amp;#93;&lt;/span&gt; getaddrinfo(&quot;secondary.ourhost.com&quot;) failed: Name or service not known&lt;br/&gt;
Sun Mar  3 03:52:18 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsHealthPoll&amp;#93;&lt;/span&gt; getaddrinfo(&quot;arbiter.ourhost.com&quot;) failed: Name or service not known&lt;br/&gt;
Sun Mar  3 03:52:22 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsHealthPoll&amp;#93;&lt;/span&gt; getaddrinfo(&quot;secondary.ourhost.com&quot;) failed: Name or service not known&lt;br/&gt;
Sun Mar  3 03:52:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsHealthPoll&amp;#93;&lt;/span&gt; getaddrinfo(&quot;arbiter.ourhost.com&quot;) failed: Name or service not known&lt;br/&gt;
Sun Mar  3 03:52:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsMgr&amp;#93;&lt;/span&gt; can&apos;t see a majority of the set, relinquishing primary&lt;br/&gt;
Sun Mar  3 03:52:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsMgr&amp;#93;&lt;/span&gt; replSet relinquishing primary state&lt;br/&gt;
Sun Mar  3 03:52:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsMgr&amp;#93;&lt;/span&gt; replSet SECONDARY&lt;br/&gt;
Sun Mar  3 03:52:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsMgr&amp;#93;&lt;/span&gt; replSet closing client sockets after relinquishing primary&lt;br/&gt;
Sun Mar  3 03:52:31 Invalid access at address: 0xf8 from thread: conn249138&lt;/p&gt;

&lt;p&gt;Sun Mar  3 03:52:31 Got signal: 11 (Segmentation fault).&lt;/p&gt;

&lt;p&gt;Sun Mar  3 03:52:31 Backtrace:&lt;br/&gt;
0xb046c1 0x55a639 0x55abc2 0x2b23f2b5bbe0 0x2b23f2d8912c 0x2b23f2d895dd 0x2b23f2d86751 0xaf4029 0xaf8624 0xaef01c 0xaf0ee7 0x2b23f2b5377d 0x2b23f3d7425d&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xb046c1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo10abruptQuitEi+0x399) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x55a639&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x262) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x55abc2&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b23f2b5bbe0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libssl.so.6(ssl3_read_n+0x14c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b23f2d8912c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libssl.so.6(ssl3_read_bytes+0x3ad) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b23f2d895dd&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libssl.so.6 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b23f2d86751&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo6Socket11unsafe_recvEPci+0x9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaf4029&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo6Socket4recvEPci+0xc4) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaf8624&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo13MessagingPort4recvERNS_7MessageE+0x8c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaef01c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x3f7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaf0ee7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b23f2b5377d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b23f3d7425d&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment># uname -a&lt;br/&gt;
Linux (hostname) 2.6.18-194.3.1.el5.028stab069.6 #1 SMP Tue Aug 10 21:28:51 GMT 2010 x86_64 x86_64 x86_64 GNU/Linux&lt;br/&gt;
&lt;br/&gt;
# cat /etc/*release*&lt;br/&gt;
CentOS release 5.8 (Final)&lt;br/&gt;
&lt;br/&gt;
Mongo is using SSL, in a clustered environment, with one primary, one secondary, and one arbiter.&lt;br/&gt;
</environment>
        <key id="67115">SERVER-8833</key>
            <summary>Segmentation fault after replSet relinquishing primary state, network/SSL related</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="3">Duplicate</resolution>
                                        <assignee username="milkie@mongodb.com">Eric Milkie</assignee>
                                    <reporter username="dclaus1000">Dave Claussen</reporter>
                        <labels>
                            <label>connection</label>
                            <label>segfault</label>
                            <label>ssl</label>
                    </labels>
                <created>Sun, 3 Mar 2013 16:00:57 +0000</created>
                <updated>Fri, 8 Mar 2013 15:55:50 +0000</updated>
                            <resolved>Mon, 4 Mar 2013 14:38:52 +0000</resolved>
                                    <version>2.2.2</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="280859" author="milkie" created="Mon, 4 Mar 2013 14:38:52 +0000"  >&lt;p&gt;Hi Dave.&lt;br/&gt;
This was fixed in version 2.2.3; see linked ticket for more details.&lt;/p&gt;</comment>
                            <comment id="280323" author="dclaus1000" created="Sun, 3 Mar 2013 16:45:35 +0000"  >&lt;p&gt;FYI: Instead of changing the configuration to use IP addresses, I instead just put the hostnames into /etc/hosts.  They don&apos;t change frequently, and I don&apos;t want primary to ever relinquish control because of a DNS issue, so this was the quickest (short-term) thing for me to do.&lt;/p&gt;</comment>
                            <comment id="280320" author="dclaus1000" created="Sun, 3 Mar 2013 16:38:19 +0000"  >&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;   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; &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;# openssl version&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008&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;(Same as I get with yum info openssl-devel)&lt;/p&gt;</comment>
                            <comment id="280315" author="scotthernandez" created="Sun, 3 Mar 2013 16:32:19 +0000"  >&lt;p&gt;What version of ssl do you have installed?&lt;/p&gt;

&lt;p&gt;I&apos;m not that much of a centos expert but I think you can find out by running &quot;yum info openssl-devel&quot; or just doing a search for the libssl .so files (ls -laht /usr/lib/libssl*)&lt;/p&gt;

&lt;p&gt;(I updated the affects version)&lt;/p&gt;</comment>
                            <comment id="280311" author="dclaus1000" created="Sun, 3 Mar 2013 16:23:57 +0000"  >&lt;p&gt;Mongo DB version:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;mongod --version&lt;br/&gt;
  db version v2.2.2, pdfile version 4.5&lt;br/&gt;
  Sun Mar  3 10:19:49 git version: nogitversion&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Note: My &quot;affects version&quot; in the original should be 2.2.2, not 2.2.0, that&apos;s a typo.&lt;/p&gt;

&lt;p&gt;It was built from source:&lt;br/&gt;
1. Set up prerequise libraries&lt;br/&gt;
2. Build from source&lt;br/&gt;
wget &lt;a href=&quot;http://downloads.mongodb.org/src/mongodb-src-r2.2.2.tar.gz&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://downloads.mongodb.org/src/mongodb-src-r2.2.2.tar.gz&lt;/a&gt;&lt;br/&gt;
tar xvfz mongodb-src-*&lt;br/&gt;
cd mongodb-src-r2.2.2&lt;br/&gt;
scons install -j 9 --64 --ssl --prefix=/tmp/mongodb-linux-2.2.2-x86_64&lt;br/&gt;
3. Set up certificate&lt;/p&gt;</comment>
                            <comment id="280306" author="scotthernandez" created="Sun, 3 Mar 2013 16:15:26 +0000"  >&lt;p&gt;What specific version of mongodb are you using (please post the exact &quot;mongod --version&quot; info), and how was it build and/or deployed (from source, a package, a tgz)? Please also attach the rest of your logs starting before the resolution errors.&lt;/p&gt;

&lt;p&gt;As an aside: generally you will want to stick with dns/host-names but setup caching on each host to deal with temporarily upstream resolution issues.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="35385">SERVER-5487</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 3 Mar 2013 16:15:26 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 50 weeks, 2 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>dclaus1000</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</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|hrn367:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>44753</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;1. Set up a SSL mongo instnace with primary, secondary, and arbiter with host names (maybe in /etc/hosts).  &lt;br/&gt;
2. Run the server&lt;br/&gt;
3. Eliminate the host names&lt;br/&gt;
4. Probably need to be doing some requests against the server too.&lt;/p&gt;

&lt;p&gt;Note: I&apos;m obviously guessing that the hostname issue is the cause, perhaps it&apos;s something completely different.  But normally we run without issues for days on end without this happening.&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|hrl5wn:</customfieldvalue>

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