<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:07: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-4891] mongos crash on signal 11</title>
                <link>https://jira.mongodb.org/browse/SERVER-4891</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Sometimes mongos crashed on signal 11.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;mongos --version&lt;br/&gt;
Tue Feb  7 07:57:44 mongos db version v2.0.2, pdfile version 4.5 starting (--help for usage)&lt;br/&gt;
Tue Feb  7 07:57:44 git version: 514b122d308928517f5841888ceaa4246a7f18e3&lt;br/&gt;
Tue Feb  7 07:57:44 build info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Backtraces below:&lt;/p&gt;

&lt;p&gt;&amp;#8212; 1 &amp;#8212;&lt;br/&gt;
Core was generated by `/usr/bin/mongos --ipv6 --configdb x.x.x.x:27018,y.y.y.y:27018,z.z.z.z:27018&apos;.&lt;br/&gt;
Program terminated with signal 11, Segmentation fault.&lt;br/&gt;
#0  0x00007f4eac594d37 in ?? () from /lib/libgcc_s.so.1&lt;br/&gt;
(gdb) bt&lt;br/&gt;
#0  0x00007f4eac594d37 in ?? () from /lib/libgcc_s.so.1&lt;br/&gt;
#1  0x00007f4eac5955be in _Unwind_Backtrace () from /lib/libgcc_s.so.1&lt;br/&gt;
#2  0x00007f4eac3070ee in backtrace () from /lib/libc.so.6&lt;br/&gt;
#3  0x000000000054de95 in formattedBacktrace (signalNum=11) at util/signal_handlers.cpp:93&lt;br/&gt;
#4  mongo::printStackAndExit (signalNum=11) at util/signal_handlers.cpp:115&lt;br/&gt;
#5  &amp;lt;signal handler called&amp;gt;&lt;br/&gt;
#6  0x00000000000000e0 in ?? ()&lt;br/&gt;
#7  0x0000000001b10848 in ?? ()&lt;br/&gt;
#8  0x0000000001c15f70 in ?? ()&lt;br/&gt;
#9  0x0000000001c15f70 in ?? ()&lt;br/&gt;
#10 0x00007f4eac29994c in free () from /lib/libc.so.6&lt;br/&gt;
#11 0x00000000005800b2 in checked_delete&amp;lt;mongo::DBClientConnection&amp;gt; (this=0x1bcd930)&lt;br/&gt;
    at /opt/extra/include/boost/checked_delete.hpp:34&lt;br/&gt;
#12 ~scoped_ptr (this=0x1bcd930) at /opt/extra/include/boost/smart_ptr/scoped_ptr.hpp:80&lt;br/&gt;
#13 boost::scoped_ptr&amp;lt;mongo::DBClientConnection&amp;gt;::reset (this=0x1bcd930)&lt;br/&gt;
    at /opt/extra/include/boost/smart_ptr/scoped_ptr.hpp:86&lt;br/&gt;
#14 mongo::DBClientReplicaSet::isntMaster (this=0x1bcd930) at client/dbclient_rs.cpp:674&lt;br/&gt;
#15 0x000000000057e5c5 in mongo::DBClientConnection::runCommand (this=0x1bcd998, dbname=&amp;lt;value optimized out&amp;gt;, &lt;br/&gt;
    cmd=&amp;lt;value optimized out&amp;gt;, info=&amp;lt;value optimized out&amp;gt;, options=-1543491552) at client/dbclient.cpp:613&lt;br/&gt;
#16 0x000000000074a654 in mongo::setShardVersion (conn=..., ns=..., version=..., authoritative=false, result=...)&lt;br/&gt;
    at s/chunk.cpp:1037&lt;br/&gt;
#17 0x00000000007f3d2d in checkShardVersion (conn_in=&amp;lt;value optimized out&amp;gt;, ns=..., authoritative=false, tryNumber=1)&lt;br/&gt;
    at s/shard_version.cpp:257&lt;br/&gt;
#18 0x00000000005c1e06 in boost::detail::function::function_invoker4&amp;lt;bool &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/star_yellow.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;(mongo::DBClientBase&amp;amp;, std::string const&amp;amp;, bool, int), bool, mongo::DBClientBase&amp;amp;, std::string const&amp;amp;, bool, int&amp;gt;::invoke (function_ptr=..., a0=..., a1=..., a2=true, a3=12)&lt;br/&gt;
    at /opt/extra/include/boost/function/function_template.hpp:95&lt;br/&gt;
#19 0x00000000005c284e in boost::function4&amp;lt;bool, mongo::DBClientBase&amp;amp;, std::string const&amp;amp;, bool, int&amp;gt;::operator() (&lt;br/&gt;
    this=0x19ab9c0, ns=...) at /opt/extra/include/boost/function/function_template.hpp:1013&lt;br/&gt;
#20 mongo::ClientConnections::checkVersions (this=0x19ab9c0, ns=...) at s/shardconnection.cpp:155&lt;br/&gt;
#21 0x00000000005c03b0 in mongo::ClientConnections::_check (this=0x7f4e967425a0) at s/shardconnection.cpp:168&lt;br/&gt;
#22 mongo::ClientConnections::get (this=0x7f4e967425a0) at s/shardconnection.cpp:94&lt;br/&gt;
#23 mongo::ShardConnection::_init (this=0x7f4e967425a0) at s/shardconnection.cpp:207&lt;br/&gt;
#24 0x00000000005c0915 in ShardConnection (this=0x7f4e967425a0, s=&amp;lt;value optimized out&amp;gt;, ns=...) at s/shardconnection.cpp:197&lt;br/&gt;
#25 0x0000000000767487 in mongo::Strategy::insert (this=&amp;lt;value optimized out&amp;gt;, shard=..., &lt;br/&gt;
    ns=0x1bccdc4 &quot;db_name.collection_name&quot;, obj=..., flags=0, safe=false) at s/strategy.cpp:73&lt;br/&gt;
#26 0x000000000076f9da in mongo::ShardStrategy::_insert (this=0x19544c0, r=..., d=..., manager=...)&lt;br/&gt;
    at s/strategy_shard.cpp:160&lt;br/&gt;
#27 0x0000000000776a83 in mongo::ShardStrategy::writeOp (this=0x19544c0, op=2002, r=...) at s/strategy_shard.cpp:492&lt;br/&gt;
#28 0x00000000007b487d in mongo::Request::process (this=0x7f4e96742b10, attempt=0) at s/request.cpp:151&lt;br/&gt;
#29 0x00000000007c6cf1 in mongo::ShardedMessageHandler::process (this=&amp;lt;value optimized out&amp;gt;, m=..., p=0x7f4e840357b0, &lt;br/&gt;
    le=0x19ab970) at s/server.cpp:95&lt;br/&gt;
#30 0x00000000005e6a07 in mongo::pms::threadRun (inPort=0x7f4e840357b0) at util/net/message_server_port.cpp:74&lt;br/&gt;
#31 0x00007f4eacd378ca in start_thread () from /lib/libpthread.so.0&lt;br/&gt;
#32 0x00007f4eac2f286d in clone () from /lib/libc.so.6&lt;br/&gt;
#33 0x0000000000000000 in ?? ()&lt;br/&gt;
&amp;#8212; /1 &amp;#8212;&lt;/p&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;p&gt;&amp;#8212; 2 &amp;#8212;&lt;br/&gt;
Program terminated with signal 11, Segmentation fault.&lt;br/&gt;
#0  0x00007f74b6e5fd37 in ?? () from /lib/libgcc_s.so.1&lt;br/&gt;
(gdb) bt&lt;br/&gt;
#0  0x00007f74b6e5fd37 in ?? () from /lib/libgcc_s.so.1&lt;br/&gt;
#1  0x00007f74b6e605be in _Unwind_Backtrace () from /lib/libgcc_s.so.1&lt;br/&gt;
#2  0x00007f74b6bd20ee in backtrace () from /lib/libc.so.6&lt;br/&gt;
#3  0x000000000054de95 in formattedBacktrace (signalNum=11) at util/signal_handlers.cpp:93&lt;br/&gt;
#4  mongo::printStackAndExit (signalNum=11) at util/signal_handlers.cpp:115&lt;br/&gt;
#5  &amp;lt;signal handler called&amp;gt;&lt;br/&gt;
#6  0x00000000000000e0 in ?? ()&lt;br/&gt;
#7  0x000000000169d0f8 in ?? ()&lt;br/&gt;
#8  0x00000000015e5830 in ?? ()&lt;br/&gt;
#9  0x00000000015e5830 in ?? ()&lt;br/&gt;
#10 0x00007f74b6b6494c in free () from /lib/libc.so.6&lt;br/&gt;
#11 0x00000000005800b2 in checked_delete&amp;lt;mongo::DBClientConnection&amp;gt; (this=0x15e5760)&lt;br/&gt;
    at /opt/extra/include/boost/checked_delete.hpp:34&lt;br/&gt;
#12 ~scoped_ptr (this=0x15e5760) at /opt/extra/include/boost/smart_ptr/scoped_ptr.hpp:80&lt;br/&gt;
#13 boost::scoped_ptr&amp;lt;mongo::DBClientConnection&amp;gt;::reset (this=0x15e5760)&lt;br/&gt;
    at /opt/extra/include/boost/smart_ptr/scoped_ptr.hpp:86&lt;br/&gt;
#14 mongo::DBClientReplicaSet::isntMaster (this=0x15e5760) at client/dbclient_rs.cpp:674&lt;br/&gt;
#15 0x000000000057e5c5 in mongo::DBClientConnection::runCommand (this=0x15e57c8, dbname=&amp;lt;value optimized out&amp;gt;, &lt;br/&gt;
    cmd=&amp;lt;value optimized out&amp;gt;, info=&amp;lt;value optimized out&amp;gt;, options=-1342168224) at client/dbclient.cpp:613&lt;br/&gt;
#16 0x000000000074a654 in mongo::setShardVersion (conn=..., ns=..., version=..., authoritative=false, result=...)&lt;br/&gt;
    at s/chunk.cpp:1037&lt;br/&gt;
#17 0x00000000007f3d2d in checkShardVersion (conn_in=&amp;lt;value optimized out&amp;gt;, ns=..., authoritative=false, tryNumber=1)&lt;br/&gt;
    at s/shard_version.cpp:257&lt;br/&gt;
#18 0x00000000005c1e06 in boost::detail::function::function_invoker4&amp;lt;bool &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/star_yellow.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;(mongo::DBClientBase&amp;amp;, std::string const&amp;amp;, bool, int), bool, mongo::DBClientBase&amp;amp;, std::string const&amp;amp;, bool, int&amp;gt;::invoke (function_ptr=..., a0=..., a1=..., a2=true, a3=12)&lt;br/&gt;
    at /opt/extra/include/boost/function/function_template.hpp:95&lt;br/&gt;
#19 0x00000000005bffe7 in boost::function4&amp;lt;bool, mongo::DBClientBase&amp;amp;, std::string const&amp;amp;, bool, int&amp;gt;::operator() (&lt;br/&gt;
    this=0x7f74a189dd80) at /opt/extra/include/boost/function/function_template.hpp:1013&lt;br/&gt;
#20 mongo::ShardConnection::_finishInit (this=0x7f74a189dd80) at s/shardconnection.cpp:217&lt;br/&gt;
#21 0x000000000079879b in mongo::dbgrid_pub_cmds::CountCmd::run (this=0xb15110, dbName=..., cmdObj=..., options=0, &lt;br/&gt;
    errmsg=..., result=...) at s/shard.h:248&lt;br/&gt;
#22 0x0000000000793175 in mongo::Command::runAgainstRegistered (ns=&amp;lt;value optimized out&amp;gt;, jsobj=..., anObjBuilder=..., &lt;br/&gt;
    queryOptions=0) at s/commands_public.cpp:1367&lt;br/&gt;
#23 0x000000000076cf2b in mongo::SingleStrategy::queryOp (this=0x14e9b60, r=...) at s/strategy_single.cpp:58&lt;br/&gt;
#24 0x00000000007b4927 in mongo::Request::process (this=0x7f74a189eb10, attempt=0) at s/request.cpp:132&lt;br/&gt;
#25 0x00000000007c6cf1 in mongo::ShardedMessageHandler::process (this=&amp;lt;value optimized out&amp;gt;, m=..., p=0x15e5a50, &lt;br/&gt;
    le=0x15da620) at s/server.cpp:95&lt;br/&gt;
#26 0x00000000005e6a07 in mongo::pms::threadRun (inPort=0x15e5a50) at util/net/message_server_port.cpp:74&lt;br/&gt;
#27 0x00007f74b76028ca in start_thread () from /lib/libpthread.so.0&lt;br/&gt;
#28 0x00007f74b6bbd86d in clone () from /lib/libc.so.6&lt;br/&gt;
#29 0x0000000000000000 in ?? ()&lt;br/&gt;
&amp;#8212; /2 &amp;#8212;&lt;/p&gt;

&lt;p&gt;I have both core dumps and can send it or upload on request (300-400MB per core).&lt;/p&gt;</description>
                <environment>debian-squeeze (amd64), 2 replica sets (primary/secondary/arbiter) in sharding, 3 config server.</environment>
        <key id="30063">SERVER-4891</key>
            <summary>mongos crash on signal 11</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="antonbatenev@yandex.ru">Anton Batenev</reporter>
                        <labels>
                            <label>crash</label>
                            <label>mongos</label>
                            <label>replicaset</label>
                            <label>sharding</label>
                    </labels>
                <created>Tue, 7 Feb 2012 08:00:00 +0000</created>
                <updated>Fri, 30 Mar 2012 14:24:29 +0000</updated>
                            <resolved>Sun, 12 Feb 2012 06:32:36 +0000</resolved>
                                    <version>2.0.2</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="87791" author="antonbatenev@yandex.ru" created="Mon, 13 Feb 2012 10:44:41 +0000"  >&lt;p&gt;Not reproduced. Please, resolve as duplicate.&lt;/p&gt;</comment>
                            <comment id="87613" author="eliot" created="Sun, 12 Feb 2012 06:32:36 +0000"  >&lt;p&gt;should be a dupe of the one you listed&lt;br/&gt;
if problem persists - please let us know&lt;/p&gt;</comment>
                            <comment id="86008" author="antonbatenev@yandex.ru" created="Tue, 7 Feb 2012 09:16:36 +0000"  >&lt;p&gt;Now testing 2.0.3-rc0 for reproduce.&lt;/p&gt;</comment>
                            <comment id="85997" author="antonbatenev@yandex.ru" created="Tue, 7 Feb 2012 08:23:15 +0000"  >&lt;p&gt;However, at the time of the fail, there was no changing primary/secondary (both secondary was down).&lt;/p&gt;</comment>
                            <comment id="85995" author="antonbatenev@yandex.ru" created="Tue, 7 Feb 2012 08:15:09 +0000"  >&lt;p&gt;Probable related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4699&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;SERVER-4699&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 12 Feb 2012 06:32:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 1 week, 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>true</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>
                            12 years, 1 week, 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>antonbatenev@yandex.ru</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroe9r:</customfieldvalue>

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

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

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