<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:56 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-8251] Startup hangs infinitely, DataFileSync background job cannot create new thread</title>
                <link>https://jira.mongodb.org/browse/SERVER-8251</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Installed the 2.2.0 rpm package from 10gen repo. &apos;service mongod start&apos; creates 3 processes:&lt;/p&gt;

&lt;p&gt;root     12603  9583  0 12:59 pts/0    00:00:00 /bin/sh /sbin/service mongod restart&lt;br/&gt;
root     12608 12603  0 12:59 pts/0    00:00:00 /bin/bash /etc/init.d/mongod restart&lt;br/&gt;
root     12622 12608  0 12:59 pts/0    00:00:00 runuser -s /bin/bash - mongod -c ulimit -S -c 0 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 ; numactl --interleave=all /usr/bin/mongod -f /etc/mongod.&lt;br/&gt;
mongod   12623 12622  0 12:59 ?        00:00:00 -bash -c ulimit -S -c 0 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 ; numactl --interleave=all /usr/bin/mongod -f /etc/mongod.conf&lt;br/&gt;
mongod   12645 12623  1 12:59 ?        00:00:00 /usr/bin/mongod -f /etc/mongod.conf&lt;br/&gt;
mongod   12647 12645  0 12:59 ?        00:00:00 /usr/bin/mongod -f /etc/mongod.conf&lt;br/&gt;
mongod   12648 12647  0 12:59 ?        00:00:00 /usr/bin/mongod -f /etc/mongod.conf&lt;/p&gt;


&lt;p&gt;strace of PID 12648, the third - obviously hanging - process gives:&lt;br/&gt;
...&lt;br/&gt;
futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2, &lt;/p&gt;
{0, 67669616}
&lt;p&gt;) = -1 ETIMEDOUT (Connection timed out)&lt;br/&gt;
futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2, &lt;/p&gt;
{0, 60868464}
&lt;p&gt;) = -1 ETIMEDOUT (Connection timed out)&lt;br/&gt;
futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2, &lt;/p&gt;
{0, 167533952}
&lt;p&gt;) = -1 ETIMEDOUT (Connection timed out)&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;gdb:&lt;/p&gt;

&lt;p&gt;Thread 2 (Thread 0x40a87940 (LWP 12649)):&lt;br/&gt;
#0  0x00000000008d2996 in base::internal::SpinLockDelay(int volatile*, int, int) ()&lt;br/&gt;
#1  0x000000000086210c in SpinLock::SlowLock() ()&lt;br/&gt;
#2  0x0000000000866056 in tcmalloc::ThreadCache::CreateCacheIfNecessary() ()&lt;br/&gt;
#3  0x00000000009b0857 in ?? ()&lt;br/&gt;
#4  0x0000000000c22872 in tc_malloc ()&lt;br/&gt;
#5  0x00000000009e63aa in boost::detail::get_once_per_thread_epoch() ()&lt;br/&gt;
#6  0x00000000007c4ff8 in void boost::call_once&amp;lt;void &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;()&amp;gt;(boost::once_flag&amp;amp;, void &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;()) ()&lt;br/&gt;
#7  0x00000000007c1e57 in boost::detail::set_current_thread_data(boost::detail::thread_data_base*) ()&lt;br/&gt;
#8  0x00000000007c3646 in ?? ()&lt;br/&gt;
#9  0x0000003124e0677d in start_thread () from /lib64/libpthread.so.0&lt;br/&gt;
#10 0x00000031246d3c1d in clone () from /lib64/libc.so.6&lt;/p&gt;

&lt;p&gt;Thread 1 (Thread 0x2b5613d478c0 (LWP 12648)):&lt;br/&gt;
#0  0x00000000008d2996 in base::internal::SpinLockDelay(int volatile*, int, int) ()&lt;br/&gt;
#1  0x000000000086210c in SpinLock::SlowLock() ()&lt;br/&gt;
#2  0x00000000008b92db in tcmalloc::CentralFreeList::Populate() ()&lt;br/&gt;
#3  0x00000000008b9498 in tcmalloc::CentralFreeList::FetchFromSpansSafe() ()&lt;br/&gt;
#4  0x00000000008b9534 in tcmalloc::CentralFreeList::RemoveRange(void*&lt;b&gt;, void&lt;/b&gt;*, int) ()&lt;br/&gt;
#5  0x0000000000865c0d in tcmalloc::ThreadCache::FetchFromCentralCache(unsigned long, unsigned long) ()&lt;br/&gt;
#6  0x00000000009b0f2f in ?? ()&lt;br/&gt;
#7  0x0000000000c21c95 in tc_new ()&lt;br/&gt;
#8  0x0000000000599e14 in boost::detail::thread_data&amp;lt;boost::_bi::bind_t&amp;lt;void, boost::_mfi::mf1&amp;lt;void, mongo::BackgroundJob, boost::shared_ptr&amp;lt;mongo::BackgroundJob::JobStatus&amp;gt; &amp;gt;, boost::_bi::list2&amp;lt;boost::_bi::value&amp;lt;mongo::BackgroundJob*&amp;gt;, boost::_bi::value&amp;lt;boost::shared_ptr&amp;lt;mongo::BackgroundJob::JobStatus&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;* boost::detail::heap_new_impl&amp;lt;boost::detail::thread_data&amp;lt;boost::_bi::bind_t&amp;lt;void, boost::_mfi::mf1&amp;lt;void, mongo::BackgroundJob, boost::shared_ptr&amp;lt;mongo::BackgroundJob::JobStatus&amp;gt; &amp;gt;, boost::_bi::list2&amp;lt;boost::_bi::value&amp;lt;mongo::BackgroundJob*&amp;gt;, boost::_bi::value&amp;lt;boost::shared_ptr&amp;lt;mongo::BackgroundJob::JobStatus&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;, boost::_bi::bind_t&amp;lt;void, boost::_mfi::mf1&amp;lt;void, mongo::BackgroundJob, boost::shared_ptr&amp;lt;mongo::BackgroundJob::JobStatus&amp;gt; &amp;gt;, boost::_bi::list2&amp;lt;boost::_bi::value&amp;lt;mongo::BackgroundJob*&amp;gt;, boost::_bi::value&amp;lt;boost::shared_ptr&amp;lt;mongo::BackgroundJob::JobStatus&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;amp;&amp;gt;(boost::_bi::bind_t&amp;lt;void, boost::_mfi::mf1&amp;lt;void, mongo::BackgroundJob, boost::shared_ptr&amp;lt;mongo::BackgroundJob::JobStatus&amp;gt; &amp;gt;, boost::_bi::list2&amp;lt;boost::_bi::value&amp;lt;mongo::BackgroundJob*&amp;gt;, boost::_bi::value&amp;lt;boost::shared_ptr&amp;lt;mongo::BackgroundJob::JobStatus&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;amp;) ()&lt;br/&gt;
#9  0x00000000005954fa in mongo::BackgroundJob::go() ()&lt;br/&gt;
#10 0x00000000005630cc in ?? ()&lt;br/&gt;
#11 0x0000000000565399 in main ()&lt;/p&gt;


&lt;p&gt;This behaviour is somewhat random, because &lt;em&gt;sometimes&lt;/em&gt; the startup works.&lt;/p&gt;

&lt;p&gt;Notes: I rebuilt mongod from source r2.2.0, stripped the binary manually and to my surprise this binary, does not show this behaviour. Alas, another binary installed with &apos;scons install&apos; &lt;em&gt;always&lt;/em&gt; hangs. &lt;/p&gt;
</description>
                <environment>CentOS release 5.8 (Final), 2.6.18-308.16.1.el5 #1 SMP Tue Oct 2 22:01:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux</environment>
        <key id="62688">SERVER-8251</key>
            <summary>Startup hangs infinitely, DataFileSync background job cannot create new thread</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="schwerin@mongodb.com">Andy Schwerin</assignee>
                                    <reporter username="wangyuontheway">WangYu</reporter>
                        <labels>
                    </labels>
                <created>Sun, 20 Jan 2013 15:21:55 +0000</created>
                <updated>Fri, 15 Feb 2013 15:05:48 +0000</updated>
                            <resolved>Tue, 22 Jan 2013 18:14:11 +0000</resolved>
                                    <version>2.2.0</version>
                                                    <component>Concurrency</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="246744" author="schwerin" created="Tue, 22 Jan 2013 18:10:50 +0000"  >&lt;p&gt;Reproduced and confirmed duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7434&quot; title=&quot;Startup race with --fork&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7434&quot;&gt;&lt;del&gt;SERVER-7434&lt;/del&gt;&lt;/a&gt;.  Fix to follow.&lt;/p&gt;</comment>
                            <comment id="246594" author="schwerin" created="Tue, 22 Jan 2013 15:53:06 +0000"  >&lt;p&gt;Two more questions.&lt;/p&gt;

&lt;p&gt;1.) What is your virtualization platform &amp;#8211; Amazon EC2, VMWare, Qemu/KVM, or something else?&lt;/p&gt;

&lt;p&gt;2.) Do you see this hang with the 2.2.2 release (the current version) or just 2.2.0?  I believe this problem will affect both problems, but continue to have trouble constructing a repro in house.&lt;/p&gt;</comment>
                            <comment id="246231" author="wangyuontheway" created="Tue, 22 Jan 2013 08:23:54 +0000"  >&lt;p&gt;It&apos;s a VM. &lt;br/&gt;
-bash-4.1# uname -a&lt;br/&gt;
Linux vm210-171 2.6.32-220.17.1.el6.x86_64 #1 SMP Thu Apr 26 13:37:13 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux&lt;br/&gt;
-bash-4.1# cat /etc/redhat-release&lt;br/&gt;
Red Hat Enterprise Linux Server release 6.2 (Santiago)&lt;/p&gt;

&lt;p&gt;This issue usually happened when the CPU utilization is high.&lt;/p&gt;</comment>
                            <comment id="244977" author="schwerin" created="Sun, 20 Jan 2013 15:48:10 +0000"  >&lt;p&gt;I&apos;ve heard of users experiencing this before, but have yet to reproduce it. Can you describe your hardware or virtual machine configuration?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="53803">SERVER-7434</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="62690">SERVER-8252</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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>Sun, 20 Jan 2013 15:48:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 4 weeks, 1 day 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>
                            11 years, 4 weeks, 1 day 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>wangyuontheway</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnaon:</customfieldvalue>

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

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

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