<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:01:59 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-22974] writing to stdout via C++ stream sometimes fails on OS X 10.10</title>
                <link>https://jira.mongodb.org/browse/SERVER-22974</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When the system log appender writes to the stdout stream, sometimes the write fails and the fail bit gets set on the stream.  I can reproduce this just by starting mongod &amp;#8211; the first write to stdout that typically fails is the one from the HostnameCanonicalization thread saying that it is starting up.&lt;br/&gt;
The problem occurs even with binaries built on 10.8 and run on 10.10.  The errno set after the stream goes bad seems to be either &quot;0&quot; or &quot;2&quot;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="270119">SERVER-22974</key>
            <summary>writing to stdout via C++ stream sometimes fails on OS X 10.10</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="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="milkie@mongodb.com">Eric Milkie</reporter>
                        <labels>
                            <label>code-only</label>
                    </labels>
                <created>Fri, 4 Mar 2016 21:40:12 +0000</created>
                <updated>Sat, 19 Nov 2016 20:31:42 +0000</updated>
                            <resolved>Thu, 17 Mar 2016 15:48:19 +0000</resolved>
                                                    <fixVersion>3.2.5</fixVersion>
                    <fixVersion>3.3.4</fixVersion>
                                    <component>Internal Code</component>
                    <component>Logging</component>
                                        <votes>1</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="1224596" author="xgen-internal-githook" created="Mon, 4 Apr 2016 17:42:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;acmorrow&apos;, u&apos;name&apos;: u&apos;Andrew Morrow&apos;, u&apos;email&apos;: u&apos;acm@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22974&quot; title=&quot;writing to stdout via C++ stream sometimes fails on OS X 10.10&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22974&quot;&gt;&lt;del&gt;SERVER-22974&lt;/del&gt;&lt;/a&gt; Ensure single threaded initialization of std::cout&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 08f686baf91c9bf201d5a98ab7a1d93c1697a690)&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/059ce80468b460c9b79d93a5d289f317675c0cba&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/059ce80468b460c9b79d93a5d289f317675c0cba&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1206766" author="acm" created="Thu, 17 Mar 2016 15:48:19 +0000"  >&lt;p&gt;Marking backport requested for v3.2 since the same unsafe ios_base::Init::Init call exists in the Console class there. I didn&apos;t see it on v3.0 or v2.6.&lt;/p&gt;</comment>
                            <comment id="1206765" author="xgen-internal-githook" created="Thu, 17 Mar 2016 15:47:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;acmorrow&apos;, u&apos;name&apos;: u&apos;Andrew Morrow&apos;, u&apos;email&apos;: u&apos;acm@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22974&quot; title=&quot;writing to stdout via C++ stream sometimes fails on OS X 10.10&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22974&quot;&gt;&lt;del&gt;SERVER-22974&lt;/del&gt;&lt;/a&gt; Ensure single threaded initialization of std::cout&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/08f686baf91c9bf201d5a98ab7a1d93c1697a690&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/08f686baf91c9bf201d5a98ab7a1d93c1697a690&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1197770" author="brian.samek" created="Wed, 9 Mar 2016 15:58:30 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=acm&quot; class=&quot;user-hover&quot; rel=&quot;acm&quot;&gt;acm&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mpobrien&quot; class=&quot;user-hover&quot; rel=&quot;mpobrien&quot;&gt;mpobrien&lt;/a&gt; I linked &lt;a href=&quot;https://jira.mongodb.org/browse/TOOLS-1100&quot; title=&quot;revive the native go TLS/SSL connector&quot; class=&quot;issue-link&quot; data-issue-key=&quot;TOOLS-1100&quot;&gt;&lt;del&gt;TOOLS-1100&lt;/del&gt;&lt;/a&gt; to BUILD-893 for the Go/OpenSSL question.&lt;/p&gt;</comment>
                            <comment id="1197080" author="acm" created="Tue, 8 Mar 2016 23:26:34 +0000"  >&lt;p&gt;Some interesting reading:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;First, libcxx has zero synchronization around ios_base::Init: &lt;a href=&quot;https://github.com/llvm-mirror/libcxx/blob/master/src/iostream.cpp#L46-L71&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/llvm-mirror/libcxx/blob/master/src/iostream.cpp#L46-L71&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Second, there seems to be debate around whether declaring a local variable of type ios_base::Init is permitted, see &lt;a href=&quot;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12855#c4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12855#c4&lt;/a&gt; and &lt;a href=&quot;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12855#c5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12855#c5&lt;/a&gt; (though I cannot find the footnote referenced).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It appears that the inclusion of an ios_base::Init object in Console::Console is intended exactly as comment #4 in the GCC bug suggests. Interestingly, it appears that the GCC maintainers did ultimately add some form of synchronization, but libc++ appears to have not.&lt;/p&gt;</comment>
                            <comment id="1195353" author="schwerin" created="Mon, 7 Mar 2016 18:28:09 +0000"  >&lt;p&gt;Is this only for the &quot;console appender&quot;? It would not be a ton of work to write a new implementation of the Console type for OS X that used write(2) or fwrite.&lt;/p&gt;</comment>
                            <comment id="1195036" author="milkie" created="Mon, 7 Mar 2016 15:34:11 +0000"  >&lt;p&gt;One thing we didn&apos;t totally prove is that this problem doesn&apos;t exist on 10.8.  I am only going on the evidence that the auditing tests have not failed on our 10.8 builders (this is how we first detected this problem on the new 10.10 instances.)&lt;/p&gt;</comment>
                            <comment id="1195008" author="milkie" created="Mon, 7 Mar 2016 15:23:02 +0000"  >&lt;p&gt;Possible next steps:&lt;br/&gt;
1. Hack the log system to write directly to stdout using Unix IO (fwrite) or System IO (write), in order to eliminate the C++ streams library, and also to possibly obtain a more reliable error code.&lt;br/&gt;
2. Reduce the size and complexity of the reproducer by shrinking mongod, or attempt to write a very small reproducer from scratch.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="16541">3.2.5</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>Mon, 7 Mar 2016 15:32:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 45 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>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>
                            7 years, 45 weeks, 2 days 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>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>brian.samek@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkehb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="941">Platforms 12 (04/01/16)</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|hrkxfb:</customfieldvalue>

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