<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:01 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-374] GENOID crash </title>
                <link>https://jira.mongodb.org/browse/CXX-374</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;$ ./a.out &lt;br/&gt;
a.out: /usr/include/boost/smart_ptr/scoped_ptr.hpp:99: T* boost::scoped_ptr&amp;lt;T&amp;gt;::operator-&amp;gt;() const &lt;span class=&quot;error&quot;&gt;&amp;#91;with T = mongo::AtomicWord&amp;lt;unsigned int&amp;gt;&amp;#93;&lt;/span&gt;: Assertion `px != 0&apos; failed.&lt;br/&gt;
Aborted (core dumped)&lt;/p&gt;


&lt;p&gt;stack strace&lt;/p&gt;

&lt;p&gt;(gdb) backtrace&lt;br/&gt;
#0  0x00007ffff6e10bb9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56&lt;br/&gt;
#1  0x00007ffff6e13fc8 in __GI_abort () at abort.c:89&lt;br/&gt;
#2  0x00007ffff6e09a76 in __assert_fail_base (fmt=0x7ffff6f5b370 &quot;%s%s%s:%u: %s%sAssertion `%s&apos; failed.\n%n&quot;, assertion=assertion@entry=0x4687fc &quot;px != 0&quot;, &lt;br/&gt;
    file=file@entry=0x4687d0 &quot;/usr/include/boost/smart_ptr/scoped_ptr.hpp&quot;, line=line@entry=99, &lt;br/&gt;
    function=function@entry=0x4688a0 &amp;lt;boost::scoped_ptr&amp;lt;mongo::AtomicWord&amp;lt;unsigned int&amp;gt; &amp;gt;::operator-&amp;gt;() const::_&lt;em&gt;PRETTY_FUNCTION&lt;/em&gt;_&amp;gt; &quot;T* boost::scoped_ptr&amp;lt;T&amp;gt;::operator-&amp;gt;() const &lt;span class=&quot;error&quot;&gt;&amp;#91;with T = mongo::AtomicWord&amp;lt;unsigned int&amp;gt;&amp;#93;&lt;/span&gt;&quot;) at assert.c:92&lt;br/&gt;
#3  0x00007ffff6e09b22 in _&lt;em&gt;GI&lt;/em&gt;__assert_fail (assertion=0x4687fc &quot;px != 0&quot;, file=0x4687d0 &quot;/usr/include/boost/smart_ptr/scoped_ptr.hpp&quot;, line=99, &lt;br/&gt;
    function=0x4688a0 &amp;lt;boost::scoped_ptr&amp;lt;mongo::AtomicWord&amp;lt;unsigned int&amp;gt; &amp;gt;::operator-&amp;gt;() const::_&lt;em&gt;PRETTY_FUNCTION&lt;/em&gt;_&amp;gt; &quot;T* boost::scoped_ptr&amp;lt;T&amp;gt;::operator-&amp;gt;() const &lt;span class=&quot;error&quot;&gt;&amp;#91;with T = mongo::AtomicWord&amp;lt;unsigned int&amp;gt;&amp;#93;&lt;/span&gt;&quot;) at assert.c:101&lt;br/&gt;
#4  0x000000000041c7c2 in operator-&amp;gt; (this=0x682c90 &amp;lt;mongo::(anonymous namespace)::counter&amp;gt;) at /usr/include/boost/smart_ptr/scoped_ptr.hpp:99&lt;br/&gt;
#5  mongo::OID::Increment::next () at src/mongo/bson/oid.cpp:53&lt;br/&gt;
#6  0x0https://jira.mongodb.org/browse/CXX#tab-000000000041cbbd in mongo::OID::init (this=0x7fffffffdc00) at src/mongo/bson/oid.cpp:129&lt;br/&gt;
#7  0x000000000040ba84 in mongo::OID::gen() ()&lt;br/&gt;
#8  0x000000000040c0de in mongo::BSONObjBuilder::genOID() ()&lt;br/&gt;
#9  0x000000000040c2ff in mongo::BSONObjBuilder::operator&amp;lt;&amp;lt;(mongo::GENOIDLabeler) ()&lt;br/&gt;
#10 0x000000000040b313 in main ()&lt;/p&gt;</description>
                <environment></environment>
        <key id="163164">CXX-374</key>
            <summary>GENOID crash </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="-1">Unassigned</assignee>
                                    <reporter username="traw">traw</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Sat, 11 Oct 2014 16:33:05 +0000</created>
                <updated>Thu, 13 Nov 2014 21:27:07 +0000</updated>
                            <resolved>Sun, 12 Oct 2014 13:53:05 +0000</resolved>
                                    <version>legacy-1.0.0-rc0</version>
                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="739504" author="traw" created="Mon, 13 Oct 2014 05:12:55 +0000"  >&lt;p&gt;Thanks will try and let you know &lt;/p&gt;</comment>
                            <comment id="739367" author="acm" created="Sun, 12 Oct 2014 13:52:42 +0000"  >&lt;p&gt;Yes, you must call the client initialize function to use the BSON library.&lt;/p&gt;</comment>
                            <comment id="739343" author="traw" created="Sun, 12 Oct 2014 04:22:16 +0000"  >&lt;p&gt;Main hint in error &quot;Assertion `px != 0&apos; failed.&quot;&lt;/p&gt;</comment>
                            <comment id="739342" author="traw" created="Sun, 12 Oct 2014 04:21:31 +0000"  >&lt;p&gt;NO i did not, But I was just working with BSON(), Do i need to call mongo::client::initialize() for that as well&lt;/p&gt;

&lt;p&gt;My code:&lt;/p&gt;

&lt;p&gt;int main(int argc, char **argv)&lt;br/&gt;
{&lt;br/&gt;
    BSONObjBuilder bObj;&lt;br/&gt;
    bObj.genOID();&lt;br/&gt;
    bObj &amp;lt;&amp;lt; &quot;name&quot; &amp;lt;&amp;lt; &quot;bjarne&quot; &amp;lt;&amp;lt; &quot;lang&quot; &amp;lt;&amp;lt; &quot;C++&quot; ;&lt;br/&gt;
    cout &amp;lt;&amp;lt; bObj.obj().jsonString() &amp;lt;&amp;lt; &quot;\n&quot;;&lt;br/&gt;
    return 0;&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="739286" author="acm" created="Sat, 11 Oct 2014 16:41:47 +0000"  >&lt;p&gt;Have you called mongo::client::initialize() from mongo/client/init.h? You must do so before using the driver.&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|hs2zs7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>142250</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>