<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:54 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>[SERVER-1046] Segfault in C++ driver when using boost::program_options in our own project</title>
                <link>https://jira.mongodb.org/browse/SERVER-1046</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We are in the process of upgrading our MongoDB clients from 1.0.0 to 1.4.1, and started getting segfaults when using the ScopedDbConnection. Eventually I found out it had to do with boost::program_options ,- see attachment for reproducible test case.&lt;/p&gt;

&lt;p&gt;Output on my machine:&lt;/p&gt;

&lt;p&gt;$ ./test 172.16.1.12,172.16.1.15&lt;br/&gt;
1&lt;br/&gt;
2&lt;br/&gt;
3&lt;br/&gt;
1&lt;br/&gt;
Segmentation fault (core dumped)&lt;/p&gt;



&lt;p&gt;(gdb) thread apply all bt&lt;/p&gt;

&lt;p&gt;Thread 2 (process 8803):&lt;br/&gt;
#0  0x0000003d8380dfe1 in nanosleep () from /lib64/libpthread.so.0&lt;br/&gt;
#1  0x0000000000480534 in mongo::BackgroundJob::go (this=0x7fff69f072f0) at ./util/goodies.h:225&lt;br/&gt;
#2  0x0000000000479312 in mongo::MessagingPort::connect (this=0x1d9f7c80, _far=&amp;lt;value optimized out&amp;gt;) at util/message.cpp:230&lt;br/&gt;
#3  0x000000000045dbf1 in mongo::DBClientConnection::connect (this=0x1d9f7bd0, _serverAddress=&amp;lt;value optimized out&amp;gt;, errmsg=@0x7fff69f075f0) at client/dbclient.cpp:464&lt;br/&gt;
#4  0x000000000045df0d in mongo::DBClientPaired::connect (this=0x1d9f7af0, serverHostname1=&amp;lt;value optimized out&amp;gt;, serverHostname2=@0x7fff69f07630) at client/dbclient.cpp:944&lt;br/&gt;
#5  0x000000000045e035 in mongo::DBClientPaired::connect (this=0x1d9f7af0, hostpairstring=@0x7fff69f077b0) at client/dbclient.cpp:960&lt;br/&gt;
#6  0x0000000000452922 in mongo::DBConnectionPool::get (this=0x6a5180, host=@0x7fff69f07a30) at client/connpool.cpp:54&lt;br/&gt;
#7  0x000000000041a69e in ScopedDbConnection (this=0x7fff69f079b0, _host=@0x7fff69f07a30) at /opt/mongodb/include/mongo/client/connpool.h:95&lt;br/&gt;
#8  0x00000000004137da in main (argc=2, argv=0x7fff69f07b58) at testcase.cpp:43&lt;/p&gt;

&lt;p&gt;Thread 1 (process 8809):&lt;br/&gt;
#0  0x00002b9e3362709e in tls_destructor () from /usr/local/lib/libboost_thread.so.1.40.0&lt;br/&gt;
#1  0x00002b9e33627203 in thread_proxy () from /usr/local/lib/libboost_thread.so.1.40.0&lt;br/&gt;
#2  0x0000003d83806617 in start_thread () from /lib64/libpthread.so.0&lt;br/&gt;
#3  0x0000003d830d3c2d in clone () from /lib64/libc.so.6&lt;br/&gt;
(gdb)&lt;/p&gt;

</description>
                <environment>Linux 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux&lt;br/&gt;
Boost 1.40</environment>
        <key id="11833">SERVER-1046</key>
            <summary>Segfault in C++ driver when using boost::program_options in our own project</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="solatis">Leon Mergen</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Apr 2010 14:06:33 +0000</created>
                <updated>Sat, 24 Apr 2010 22:21:36 +0000</updated>
                            <resolved>Sat, 24 Apr 2010 22:21:36 +0000</resolved>
                                    <version>1.4.1</version>
                                                    <component>Internal Client</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="13795" author="solatis" created="Sat, 24 Apr 2010 15:01:15 +0000"  >&lt;p&gt;Not a bug: issue was that we were using Boost 1.40, and as shown in the backtrace, the segfault was caused by tls_destructor () ,- the problem is solved when upgrading to the version Mongo was compiled against, 1.41&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10205" name="testcase.cpp" size="1437" author="solatis" created="Sat, 24 Apr 2010 14:06:33 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 43 weeks, 4 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 43 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>solatis</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpn8n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrioxj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22691</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnvk7:</customfieldvalue>

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