<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:04:14 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-1890] Read Access violation in _mongoc_label_unknown_member_cb</title>
                <link>https://jira.mongodb.org/browse/CXX-1890</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Non reproducable crash, see stackdump below. Most likely depending on configuration of client environment in combination with mongodb server. Please advice.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;1005 mongoc-topology-description.c - _mongoc_label_unknown_member_cb d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-topology-description.c(1005)&lt;br/&gt;
 178 mongoc-set.c - mongoc_set_for_each d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-set.c(178)&lt;br/&gt;
 1045 mongoc-topology-description.c - _mongoc_topology_description_label_unknown_member d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-topology-description.c(1045)&lt;br/&gt;
 1519 mongoc-topology-description.c - _mongoc_topology_description_update_rs_without_primary d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-topology-description.c(1519)&lt;br/&gt;
 1957 mongoc-topology-description.c - mongoc_topology_description_handle_ismaster d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-topology-description.c(1957)&lt;br/&gt;
 170 mongoc-topology.c -&#160; _mongoc_topology_scanner_cb d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-topology.c(170)&lt;br/&gt;
 488 mongoc-topology-scanner.c - _async_success d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-topology-scanner.c(488)&lt;br/&gt;
 132 mongoc-async-cmd.c - mongoc_async_cmd_run d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-async-cmd.c(132)&lt;br/&gt;
 161 mongoc-async.c - mongoc_async_run d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-async.c(161)&lt;br/&gt;
 1008 mongoc-topology-scanner.c - mongoc_topology_scanner_work d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-topology-scanner.c(1008)&lt;br/&gt;
 1292 mongoc-topology.c - _mongoc_topology_run_background d:\projects\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-topology.c(1292)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>Windows 10</environment>
        <key id="1050100">CXX-1890</key>
            <summary>Read Access violation in _mongoc_label_unknown_member_cb</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="5">Cannot Reproduce</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="mmhjbolt@hotmail.com">Matthieu Bolt</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Dec 2019 15:07:54 +0000</created>
                <updated>Mon, 25 May 2020 23:25:10 +0000</updated>
                            <resolved>Mon, 25 May 2020 23:25:10 +0000</resolved>
                                    <version>3.4.0</version>
                                                                        <votes>1</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="3106214" author="kevin.albertson" created="Mon, 25 May 2020 23:24:59 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mmhjbolt%40hotmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mmhjbolt@hotmail.com&quot;&gt;mmhjbolt@hotmail.com&lt;/a&gt;. I&apos;m closing since there has not been any activity. If you do see this reproduce, or have additional information, feel free to reopen.&lt;/p&gt;</comment>
                            <comment id="3058046" author="mmhjbolt@gmail.com" created="Tue, 28 Apr 2020 07:46:46 +0000"  >&lt;p&gt;Dear Kevin,&lt;/p&gt;

&lt;p&gt;Thanks for the uptake. I have tried to reproduce the problem but didn&apos;t succeed in this (I can&apos;t reproduce the exact same situation because it only manifested on a production environment).&lt;/p&gt;

&lt;p&gt;Our current line of thinking is that the crash was caused by a memory allocation of a static variable in bson c library that was not made by our memory allocator. Either our memory allocator improved or the order of initialization of static variables changed. If the problem reoccurs and it&apos;s not caused by a bug in our memory allocator then I will use the&#160;-DENABLE_TRACING=ON flag to provide more information.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Matthieu&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3045751" author="kevin.albertson" created="Fri, 17 Apr 2020 23:42:51 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mmhjbolt%40hotmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mmhjbolt@hotmail.com&quot;&gt;mmhjbolt@hotmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Apologies for the delay. I&apos;ve inspected the code around the stack trace you provided. I don&apos;t have any theories yet, but additional information may help me reproduce the issue. I concur with Jeremy that this is unlikely to do with firewall settings.&lt;/p&gt;

&lt;p&gt;1. How often does this happen? Does this reproduce consistently for you, or do you see this crash only occasionally?&lt;/p&gt;

&lt;p&gt;2. &lt;blockquote&gt;
&lt;p&gt;We have tested our previous version (1.9.2 of the mongo-c-driver and 3.2.0 of mong-cxx-driver) and this one also crashes (different stack trace though)&lt;/p&gt;&lt;/blockquote&gt;&lt;br/&gt;
Do you have those stack traces handy? Additionally, the stack trace you provided is for the background monitoring thread. Is it possible to get the stack traces of the other threads running?&lt;/p&gt;

&lt;p&gt;3. If possible, could you build and test with tracing enabled (pass -DENABLE_TRACING=ON to cmake) and include the output? This provides very verbose logging. That is described here: &lt;a href=&quot;http://mongoc.org/libmongoc/current/logging.html#tracing&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mongoc.org/libmongoc/current/logging.html#tracing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Kevin&lt;/p&gt;</comment>
                            <comment id="2929818" author="mmhjbolt@gmail.com" created="Tue, 3 Mar 2020 13:03:01 +0000"  >&lt;p&gt;Any news about the &quot;scheduling&quot; or progress on this issue? Could you indicate if and when issue might be resolved?&lt;/p&gt;</comment>
                            <comment id="2643157" author="mmhjbolt@hotmail.com" created="Wed, 18 Dec 2019 12:23:47 +0000"  >&lt;p&gt;Thanks for the explanation, looking forward to the next steps from the c++ team&lt;/p&gt;</comment>
                            <comment id="2634120" author="jmikola@gmail.com" created="Mon, 16 Dec 2019 15:22:30 +0000"  >&lt;p&gt;&quot;Topology&quot; refers to the structure of the replica set or sharded cluster, which you&apos;ve now provided, and TLS is synonymous with SSL, which you clarified is not being used.&lt;/p&gt;

&lt;p&gt;I&apos;ll leave this issue in &quot;Needs Triage&quot; for now so the C++ team and look into it when they get a chance.&lt;/p&gt;</comment>
                            <comment id="2633776" author="mmhjbolt@hotmail.com" created="Mon, 16 Dec 2019 13:01:37 +0000"  >&lt;p&gt;Dear Jeremy,&lt;br/&gt;
thanks for the quick reply. Pleas eknow that I&apos;m not mongo expert at all so this is the information from our mongo support team:&lt;br/&gt;
It&apos;s a 5 node stretched replicaset (4 data nodes 1 arbiter, 1 master, 3 slaves) no sharding&lt;br/&gt;
Authentications is used, no SSL.&lt;br/&gt;
There was no information regarding the topology and size or TLS. Could you please provide some pointer on how to get this information if this is required to solve the issue?&lt;/p&gt;

&lt;p&gt;Best regards&lt;/p&gt;</comment>
                            <comment id="2606770" author="jmikola@gmail.com" created="Fri, 13 Dec 2019 15:00:27 +0000"  >&lt;blockquote&gt;&lt;p&gt;The mongo server is running version 3.6.14&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Can you confirm if you are running a standalone mongod with no authentication or TLS? If possible, sharing your server configuration or the command line used to spawn the server would be helpful.&lt;/p&gt;

&lt;p&gt;I&apos;d just like to get that clarified before we get a chance to allocate time to investigate this issue and attempt reproduction. It will be helpful to know if we&apos;re dealing with a single mongod, replica set, or sharded cluster &amp;#8211; and if it&apos;s not a single mongod we&apos;d need to know more details about the deployment topology.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Could it be caused by firewall settings?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;It&apos;s likely too early to say, but firewall settings or network connectivity issues should certainly not lead to a crash.&lt;/p&gt;</comment>
                            <comment id="2605517" author="mmhjbolt@hotmail.com" created="Fri, 13 Dec 2019 09:13:33 +0000"  >&lt;p&gt;Indeed libmongoc version 1.15.2 is used (newer is better?), the issue can be reproduced now on 1 specific live environment. We have tested our previous version (1.9.2 of the mongo-c-driver and 3.2.0 of mong-cxx-driver) and this one also crashes (different stack trace though). The mongo server is running version 3.6.14. Could it be caused by firewall settings?&lt;/p&gt;</comment>
                            <comment id="2602403" author="jmikola@gmail.com" created="Thu, 12 Dec 2019 19:38:09 +0000"  >&lt;blockquote&gt;&lt;p&gt;Most likely depending on configuration of client environment in combination with mongodb server. &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Can you clarify exactly what version of the C++ driver you are using? You specified &quot;3.4.0&quot; in &quot;Affects Version&quot; on the ticket, but the stacktrace refers to libmongoc 1.15.2. Looking at the C++ driver 3.4.0 &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/releases&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;release notes&lt;/a&gt;, the minimum libmongoc version is 1.13 &amp;#8211; so it&apos;d be helpful to know if you&apos;re using C++ driver 3.4.0 with a newer version of libmongoc or not.&lt;/p&gt;

&lt;p&gt;Additionally, please share as much detail as possible about the MongoDB server deployment (e.g. server version, topology type and size, whether auth/TLS is being used), and the state of the deployment at the time of the crash if that&apos;s possible (for example, if a replica set was undergoing a failover).&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|hvymqv:</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>