<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:16 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-458] Crashed caused by genOID</title>
                <link>https://jira.mongodb.org/browse/CXX-458</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Centos 7.0 64bit&lt;br/&gt;
gcc 4.8.2&lt;br/&gt;
mongoDB: 2.6.6&lt;br/&gt;
boost: 1.57&lt;/p&gt;

&lt;p&gt;test: /usr/local/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;</description>
                <environment></environment>
        <key id="176869">CXX-458</key>
            <summary>Crashed caused by genOID</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="tianchaohaohan">tianchaohaohan</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Mon, 5 Jan 2015 03:27:15 +0000</created>
                <updated>Tue, 6 Jan 2015 12:05:44 +0000</updated>
                            <resolved>Tue, 6 Jan 2015 12:05:44 +0000</resolved>
                                    <version>legacy-1.0.0-rc3</version>
                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="797896" author="tianchaohaohan" created="Tue, 6 Jan 2015 08:42:57 +0000"  >&lt;p&gt;Create a new dev machine with centos 7 64bit. gcc 4.8.2, boost 1.56. mongo driver build with --c++11 flag. No crash happened.&lt;/p&gt;</comment>
                            <comment id="796936" author="acm" created="Mon, 5 Jan 2015 14:53:10 +0000"  >&lt;p&gt;Hi -&lt;/p&gt;

&lt;p&gt;That crash looks pretty weird. A few comments:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;You are compiling your application in C&amp;#43;&amp;#43;11 mode, but you have not compiled the driver in C&amp;#43;&amp;#43;11 mode. Pass the --c&amp;#43;&amp;#43;11 flag to the SCons build to get a C&amp;#43;&amp;#43;11 version of the driver.&lt;/li&gt;
	&lt;li&gt;You appear to be using the system build of boost. Note that this boost is almost certainly not built with --std=c&amp;#43;&amp;#43;11, and as far as I know boost does not guarantee ABI compatibility between C&amp;#43;&amp;#43;03 and C+&amp;#43;\11 builds. You may need to build a custom version of boost if you intend to use it in C++11 app. Or, you may find that it just works. But you should be aware that it is a risk.&lt;/li&gt;
	&lt;li&gt;You are building mongoclient as a shared library, and linking against it as such, which means your app will have an (indirect) runtime link dependency on the dynamic version of libstdc&amp;#43;&amp;#43;. The same is likely true of the boost libraries you are linking against. However, you are compiling your application to use libstdc&amp;#43;&amp;#43; statically. This may not be what you intend. If you are trying for a fully static link, you will need to ensure that your boost install offers archive versions of the library, and request static links of all of the libraries by passing -Wl,-static &amp;lt;lib1&amp;gt; ... &amp;lt;libN&amp;gt; on the link line for your application.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Also, in general, rather than opening tickets, you might try emailing the mongodb-users group (&lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!forum/mongodb-user&lt;/a&gt;) with questions. We will work with you there to determine whether the issue is a real bug and then we can open JIRA issues as needed.&lt;/p&gt;

&lt;p&gt;Hope this helps.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                            <comment id="796749" author="tianchaohaohan" created="Mon, 5 Jan 2015 05:46:06 +0000"  >&lt;p&gt;Another crash happened after enable the call to mongo::client::initialize, here is the dump details:&lt;br/&gt;
(gdb) bt&lt;br/&gt;
#0  0x0000000000498059 in __libc_csu_init ()&lt;br/&gt;
#1  0x00007fff5f2c1cd0 in ?? ()&lt;br/&gt;
#2  0x000000000043b3c6 in mongo::client::Options::~Options (this=0xf00000000, __in_chrg=&amp;lt;optimized out&amp;gt;) at /usr/include/mongo/client/options.h:32&lt;br/&gt;
#3  0x00000000006bbd08 in ?? ()&lt;br/&gt;
#4  0x000000000049805d in __libc_csu_init ()&lt;br/&gt;
#5  0x00007fe5204abaf5 in __libc_start_main () from /lib64/libc.so.6&lt;br/&gt;
#6  0x00000000004393b5 in _start ()&lt;/p&gt;

&lt;p&gt;binary and core dump files are attached&lt;/p&gt;

&lt;p&gt;compile options for mongo c++ driver:  scons --ssl --sharedclient install&lt;/p&gt;

&lt;p&gt;compile options for test binary:&lt;br/&gt;
g++ test.cpp -o test -lmongoclient  -lboost_system -lboost_thread -lboost_filesystem -lboost_program_options -lboost_regex  -std=c&amp;#43;&amp;#43;11 -static-libstdc++ -g&lt;/p&gt;</comment>
                            <comment id="796735" author="acm" created="Mon, 5 Jan 2015 03:44:51 +0000"  >&lt;p&gt;Hi -&lt;/p&gt;

&lt;p&gt;You must call mongo::client::initialize before using any functions of the driver. Your attached test code has such a call, but it is commented out on line 32. I can reproduce your crash when running the code as written, but when I re-enable the call to mongo::client::initialize the code works correctly.&lt;/p&gt;

&lt;p&gt;Please let me know if re-enabling the call to initialize resolves this issue for you.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="60809" name="core.31919" size="856064" author="tianchaohaohan" created="Mon, 5 Jan 2015 05:46:58 +0000"/>
                            <attachment id="60807" name="test" size="5429201" author="tianchaohaohan" created="Mon, 5 Jan 2015 05:46:58 +0000"/>
                            <attachment id="60808" name="test.cpp" size="1069" author="tianchaohaohan" created="Mon, 5 Jan 2015 05:46:58 +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|hs55vj:</customfieldvalue>

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