<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:11:38 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>[CDRIVER-1122] Don&apos;t just fork(), exec(), in the test suite</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1122</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Currently our test suite can fork() before running the tests.&lt;/p&gt;

&lt;p&gt;We use this on *nix because we&apos;d like to continue running the next test case, even if one of them fails, and then in the end we generate test-results.json file that is uploaded to evergreen for graphing.&lt;/p&gt;

&lt;p&gt;Prior to fork()ing though, we do a full mongoc initialization and print out a test header with the connection uri and things.&lt;/p&gt;


&lt;p&gt;On Windows, this switch doesn&apos;t do anything (and the header lies about it fork()ing).&lt;/p&gt;

&lt;p&gt;On OSX, using NativeSSL, we hit the problem of its random number generator is not fork() safe.&lt;br/&gt;
For the purpose of mongoc generating a random number, we could work around this &amp;#8211; but the problem is that the TLS layer uses this fork() unsafe API in its SSLHandshake() method.&lt;br/&gt;
This means, due to the initial mongoc bootstrapping and header printout, the fork() children share the entropy with its parent and OSX seems to protect against that by simply abort()ing.&lt;/p&gt;



&lt;p&gt;We should unify this on all OSs by always launching a new clean process.&lt;br/&gt;
That way we can provide the same test suite experience on Windows and Linux, and not segfault on OSX.&lt;/p&gt;</description>
                <environment></environment>
        <key id="266619">CDRIVER-1122</key>
            <summary>Don&apos;t just fork(), exec(), in the test suite</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="bjori">Hannes Magnusson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 18 Feb 2016 22:54:06 +0000</created>
                <updated>Wed, 10 Aug 2016 22:10:36 +0000</updated>
                            <resolved>Tue, 17 May 2016 20:31:29 +0000</resolved>
                                    <version>1.4.0</version>
                                    <fixVersion>1.4.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1266886" author="xgen-internal-githook" created="Tue, 17 May 2016 20:31:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1122&quot; title=&quot;Don&amp;#39;t just fork(), exec(), in the test suite&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1122&quot;&gt;&lt;del&gt;CDRIVER-1122&lt;/del&gt;&lt;/a&gt; exec or CreateProcess for each test&lt;/p&gt;

&lt;p&gt;On Mac with native TLS we must exec() to reseed the RNG, otherwise it&lt;br/&gt;
aborts. For consistency, exec() on all Unix. On Windows, CreateProcess.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/63a1342e468a487814bde2772b5e6e68455fc91f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/63a1342e468a487814bde2772b5e6e68455fc91f&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="265761">CDRIVER-1118</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="265761">CDRIVER-1118</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="181659">CDRIVER-520</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-535</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsik9z:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>