<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:06:47 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>[CXX-2705] Driver calls &apos;abort()&apos; when internet is disconnected and crashes app</title>
                <link>https://jira.mongodb.org/browse/CXX-2705</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;&lt;b&gt;Summary&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;After starting my app with my internet connection disconnected, instancing the &apos;mongocxx::pool&apos; object with a valid connection string and calling &apos;mongocxx::Pool::acquire()&apos; or &#160;&apos;mongocxx::Pool::try_acquire()&apos; crash the app due to an error thrown inside of the mongoc drvier with message &apos;mongoc-client-pool.c:346 mongoc_client_pool_try_pop(): precondition failed: pool&apos;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Environment&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;mongocxx lib version 3.7.0&lt;/p&gt;

&lt;p&gt;OS: Windows 10 Home 64-bit&lt;/p&gt;

&lt;p&gt;Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.35.32216.1 for x86&lt;/p&gt;

&lt;p&gt;How to Reproduce&lt;br/&gt;
Disconnect computer from internet&lt;br/&gt;
Compile and run the following C++ with MSVC:&lt;br/&gt;
&#160; &#160; &#160; &#160; auto inst = mongocxx::instance();&lt;br/&gt;
&#160; &#160; &#160; &#160; std::string connStr = &quot;&amp;lt;valid connection string for mdb here&amp;gt;&quot;;&lt;br/&gt;
&#160; &#160; &#160; &#160; auto pool = std::make_shared&amp;lt;mongocxx::pool&amp;gt;(mongocxx::uri{ connStr });_&lt;br/&gt;
&#160; &#160; &#160; &#160; auto pl = pool-&amp;gt;try_acquire();_&lt;br/&gt;
The driver should abort with message &apos;mongocxx::Pool::try_acquire()&apos; crash the app due to an error thrown inside of the mongoc drvier with message &apos;mongoc-client-pool.c:346 mongoc_client_pool_try_pop(): precondition failed: pool&apos;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2378228">CXX-2705</key>
            <summary>Driver calls &apos;abort()&apos; when internet is disconnected and crashes app</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="13201">Fixed</resolution>
                                        <assignee username="josh.siegel@mongodb.com">Josh Siegel</assignee>
                                    <reporter username="jeff@pulsemedica.com">jeff strom</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Jun 2023 14:54:28 +0000</created>
                <updated>Sat, 28 Oct 2023 11:26:38 +0000</updated>
                            <resolved>Fri, 14 Jul 2023 21:43:00 +0000</resolved>
                                                    <fixVersion>3.9.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5568186" author="xgen-internal-githook" created="Fri, 14 Jul 2023 21:39:15 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Joshua Siegel&apos;, &apos;email&apos;: &apos;39130209+joshbsiegel@users.noreply.github.com&apos;, &apos;username&apos;: &apos;joshbsiegel&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-2705&quot; title=&quot;Driver calls &amp;#39;abort()&amp;#39; when internet is disconnected and crashes app&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-2705&quot;&gt;&lt;del&gt;CXX-2705&lt;/del&gt;&lt;/a&gt; throw an exception upon unsuccessful pool creation (#987)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/a4d9067cdda62e1345fe2ebd1e531760939488da&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/a4d9067cdda62e1345fe2ebd1e531760939488da&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5527974" author="dbeng-pm-bot" created="Tue, 27 Jun 2023 14:54:31 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jeff%40pulsemedica.com&quot; class=&quot;user-hover&quot; rel=&quot;jeff@pulsemedica.com&quot;&gt;jeff@pulsemedica.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="459959" name="cxx_null_pool.png" size="108623" author="rishabh.bisht@mongodb.com" created="Mon, 3 Jul 2023 19:09:41 +0000"/>
                    </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6jhq:</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>