<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:49 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-639] verifyFailed() in assert_util.cpp has undesired behavior in _DEBUG</title>
                <link>https://jira.mongodb.org/browse/CXX-639</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;There&apos;s #ifdef&apos;ed code in aforementioned method that calls CRT&apos;s abort() function. There&apos;s a comment stating &quot;this is so we notice in buildbot&quot;. The problem is, we don&apos;t get to notice anything in our code because the process exits. I don&apos;t understand why you&apos;d do this and not allow client code to handle the exception that normally gets thrown in release code.&lt;/p&gt;

&lt;p&gt;For us, this is particularly problematic in automated testing, specifically with Google&apos;s GTest framework, which disables (aptly so), any message boxes displayed during abort().&lt;/p&gt;

&lt;p&gt;The specific case this occurred for our team was in calls to various methods for BSONElement where the type of the element is verified. If there&apos;s a mismatch, boom, program is gone, which isn&apos;t what we want, ever.&lt;/p&gt;</description>
                <environment></environment>
        <key id="217674">CXX-639</key>
            <summary>verifyFailed() in assert_util.cpp has undesired behavior in _DEBUG</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="gregory.vogel@guidancesoftware.com">Gregory Vogel</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Mon, 20 Jul 2015 20:20:24 +0000</created>
                <updated>Tue, 6 Dec 2016 07:35:54 +0000</updated>
                            <resolved>Mon, 27 Jul 2015 21:46:40 +0000</resolved>
                                    <version>legacy-1.0.0</version>
                    <version>legacy-1.0.3</version>
                                    <fixVersion>legacy-1.0.4</fixVersion>
                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="992173" author="acm" created="Wed, 29 Jul 2015 18:53:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gregory.vogel%40guidancesoftware.com&quot; class=&quot;user-hover&quot; rel=&quot;gregory.vogel@guidancesoftware.com&quot;&gt;gregory.vogel@guidancesoftware.com&lt;/a&gt; - I understand. The change seems quite safe having thought about it for a few days, and it is passing all of our tests. I&apos;m just going to release legacy-1.0.4 with this fix, as it seems very low risk.&lt;/p&gt;</comment>
                            <comment id="990176" author="gregory.vogel@guidancesoftware.com" created="Mon, 27 Jul 2015 22:01:23 +0000"  >&lt;p&gt;I might not be able to do this immediately.&lt;/p&gt;</comment>
                            <comment id="990158" author="acm" created="Mon, 27 Jul 2015 21:47:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gregory.vogel%40guidancesoftware.com&quot; class=&quot;user-hover&quot; rel=&quot;gregory.vogel@guidancesoftware.com&quot;&gt;gregory.vogel@guidancesoftware.com&lt;/a&gt; I&apos;ve just pushed the (obvious) fix for this. Would you mind re-testing in your development environment with the HEAD of the legacy branch, which has this fix, and let me know if it resolves it for you? This is the last open issue for legacy-1.0.4 after the rc0 release, and I&apos;d like to release it as stable sometime soon.&lt;/p&gt;</comment>
                            <comment id="990154" author="xgen-internal-githook" created="Mon, 27 Jul 2015 21:45:46 +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/CXX-639&quot; title=&quot;verifyFailed() in assert_util.cpp has undesired behavior in _DEBUG&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-639&quot;&gt;&lt;del&gt;CXX-639&lt;/del&gt;&lt;/a&gt; Don&apos;t make assert behavior build type dependent&lt;br/&gt;
Branch: legacy&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/592eddc59ddda82c248a615505c67a7c61e1dcc0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/592eddc59ddda82c248a615505c67a7c61e1dcc0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="989781" author="acm" created="Mon, 27 Jul 2015 17:03:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/301&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/301&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="971157" author="gregory.vogel@guidancesoftware.com" created="Tue, 21 Jul 2015 16:45:55 +0000"  >&lt;p&gt;That would be great. Thanks for considering fixing the issue. It would have been handy if it were simply unique #define beside _DEBUG.&lt;/p&gt;</comment>
                            <comment id="970878" author="acm" created="Tue, 21 Jul 2015 12:43:47 +0000"  >&lt;p&gt;The code you are pointing to is indeed deeply flawed. While this is never the most satisfying answer, the answer to your question as to &quot;why we would do this&quot; unfortunately is &quot;that is how it has always been&quot;. The origins of the legacy C++ driver are in the server codebase, and you can see that the same code exists in the server codebase to this day:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/d1aca9594cdd10d56720b4cac28cef7a6eefa2da/src/mongo/util/assert_util.cpp#L142&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/d1aca9594cdd10d56720b4cac28cef7a6eefa2da/src/mongo/util/assert_util.cpp#L142&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The situation with the driver is actually a little worse though, since the controlling ifdef is _DEBUG, rather than a macro we control, which appears to have been an oversight in 16734cdd.&lt;/p&gt;

&lt;p&gt;I think the situation is severe enough that I will probably fix this for a legacy-1.0.4-rc1. Thanks for reporting it.&lt;/p&gt;
</comment>
                    </comments>
                    <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsbb3r:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="632">Platform 7 08/10/15</customfieldvalue>

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