<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:10:27 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>[CDRIVER-731] Custom log handler cannot capture tracing on sasl_set_mutex callbacks</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-731</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Since &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/c3c14f431864c82f670581c0e380cef9047cfb96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;c3c14f4&lt;/a&gt; in the 1.1.x branch, entry/exit tracing apppears on SASL mutex callbacks that are initalized in &lt;tt&gt;MONGOC_ONCE_FUN()&lt;/tt&gt; in &lt;tt&gt;mongoc-init.c&lt;/tt&gt;. &lt;tt&gt;MONGOC_ONCE_FUN()&lt;/tt&gt; is in turn called before any custom log handlers can be configured, which means output like the following ends up on stderr before a user of the driver can capture it elsewhere:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2015/07/01 15:59:13.0495: [  441]:    TRACE:       mongoc: ENTRY: mongoc_sasl_mutex_alloc():40&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2015/07/01 15:59:13.0495: [  441]:    TRACE:       mongoc:  EXIT: mongoc_sasl_mutex_alloc():45&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2015/07/01 15:59:13.0496: [  441]:    TRACE:       mongoc: ENTRY: mongoc_sasl_mutex_alloc():40&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2015/07/01 15:59:13.0496: [  441]:    TRACE:       mongoc:  EXIT: mongoc_sasl_mutex_alloc():45&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Looking at other code invoked by the init methods, I see that the SSL and SCRAM init functions don&apos;t use any tracing, nor are there any tests for trace output for these SASL mutex functions. Should we simply remove the traces, or is there a more elaborate solution to be considered?&lt;/p&gt;</description>
                <environment></environment>
        <key id="214337">CDRIVER-731</key>
            <summary>Custom log handler cannot capture tracing on sasl_set_mutex callbacks</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 Jul 2015 20:20:17 +0000</created>
                <updated>Mon, 17 Aug 2015 19:03:29 +0000</updated>
                            <resolved>Mon, 6 Jul 2015 22:52:04 +0000</resolved>
                                    <version>1.1.9</version>
                    <version>1.2.0</version>
                                    <fixVersion>1.2-beta0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="997349" author="xgen-internal-githook" created="Wed, 5 Aug 2015 17:22:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: Merge branch &apos;master&apos; into 1.2.0-dev&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;master: (38 commits)&lt;br/&gt;
  various fixups for memory leaks and races in tests&lt;br/&gt;
  Fix memory leak in mongoc_uri_parse_option&lt;br/&gt;
  post-release bump&lt;br/&gt;
  1.1.10 Release&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-755&quot; title=&quot;Leaks in _mongoc_cluster_ismaster&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-755&quot;&gt;&lt;del&gt;CDRIVER-755&lt;/del&gt;&lt;/a&gt; leaks in _mongoc_cluster_ismaster&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-745&quot; title=&quot;Crash in bson_destroy, called from _mongoc_cluster_disconnect_node&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-745&quot;&gt;&lt;del&gt;CDRIVER-745&lt;/del&gt;&lt;/a&gt; test cluster node destroy, then disconnect&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-750&quot; title=&quot;Queries sent to recovering members&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-750&quot;&gt;&lt;del&gt;CDRIVER-750&lt;/del&gt;&lt;/a&gt; don&apos;t query recovering RS members&lt;br/&gt;
  spell &quot;cyrus&quot; correctly in install guide&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-745&quot; title=&quot;Crash in bson_destroy, called from _mongoc_cluster_disconnect_node&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-745&quot;&gt;&lt;del&gt;CDRIVER-745&lt;/del&gt;&lt;/a&gt; crash in _mongoc_cluster_disconnect_node&lt;br/&gt;
  post-release bump&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-731&quot; title=&quot;Custom log handler cannot capture tracing on sasl_set_mutex callbacks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-731&quot;&gt;&lt;del&gt;CDRIVER-731&lt;/del&gt;&lt;/a&gt;: Do not trace SASL mutex callbacks&lt;br/&gt;
  debian changelog fixes for deb pkg&lt;br/&gt;
  1.1.9 Release&lt;br/&gt;
  redundant include&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-721&quot; title=&quot;Crash destroying replset client after connection fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-721&quot;&gt;&lt;del&gt;CDRIVER-721&lt;/del&gt;&lt;/a&gt; test reconnection&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-727&quot; title=&quot;Actually enable code coverage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-727&quot;&gt;&lt;del&gt;CDRIVER-727&lt;/del&gt;&lt;/a&gt; actually enable coverage in libmongoc&lt;br/&gt;
  update libbson to 1.1.9-dev&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-721&quot; title=&quot;Crash destroying replset client after connection fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-721&quot;&gt;&lt;del&gt;CDRIVER-721&lt;/del&gt;&lt;/a&gt; test rs and mongos, connected and not&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-721&quot; title=&quot;Crash destroying replset client after connection fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-721&quot;&gt;&lt;del&gt;CDRIVER-721&lt;/del&gt;&lt;/a&gt; additional tests&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-721&quot; title=&quot;Crash destroying replset client after connection fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-721&quot;&gt;&lt;del&gt;CDRIVER-721&lt;/del&gt;&lt;/a&gt; mongoc_client_destroy crash after connection fails&lt;br/&gt;
  ...&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Conflicts:&lt;br/&gt;
	CMakeLists.txt&lt;br/&gt;
	NEWS&lt;br/&gt;
	README.rst&lt;br/&gt;
	build/autotools/Versions.m4&lt;br/&gt;
	build/rpm/mongo-c-driver.spec&lt;br/&gt;
	debian/changelog&lt;br/&gt;
	doc/installing.page&lt;br/&gt;
	doc/mongoc_version.page&lt;br/&gt;
	src/libbson&lt;br/&gt;
	src/mongoc/mongoc-cluster-private.h&lt;br/&gt;
	src/mongoc/mongoc-cluster.c&lt;br/&gt;
	src/mongoc/mongoc-read-prefs.c&lt;br/&gt;
	src/mongoc/mongoc-uri.c&lt;br/&gt;
	src/mongoc/mongoc-write-command.c&lt;br/&gt;
	tests/mock-server.c&lt;br/&gt;
	tests/mock-server.h&lt;br/&gt;
	tests/test-libmongoc.c&lt;br/&gt;
	tests/test-mongoc-client.c&lt;br/&gt;
	tests/test-mongoc-cluster.c&lt;br/&gt;
	tests/test-mongoc-database.c&lt;br/&gt;
	tests/test-mongoc-read-prefs.c&lt;br/&gt;
	tests/test-mongoc-uri.c&lt;br/&gt;
	tests/test-sasl.c&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e62117d12a600f6cf61eb409933af6f92a3d7c22&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e62117d12a600f6cf61eb409933af6f92a3d7c22&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="997338" author="xgen-internal-githook" created="Wed, 5 Aug 2015 17:22:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@emptysquare.net&apos;}
&lt;p&gt;Message: Merge pull request #246 from jmikola/patch-1&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-731&quot; title=&quot;Custom log handler cannot capture tracing on sasl_set_mutex callbacks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-731&quot;&gt;&lt;del&gt;CDRIVER-731&lt;/del&gt;&lt;/a&gt;: Do not trace SASL mutex callbacks&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/4282e7498ac92777ba8a6693de691641eb63afe6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/4282e7498ac92777ba8a6693de691641eb63afe6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="997337" author="xgen-internal-githook" created="Wed, 5 Aug 2015 17:22:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-731&quot; title=&quot;Custom log handler cannot capture tracing on sasl_set_mutex callbacks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-731&quot;&gt;&lt;del&gt;CDRIVER-731&lt;/del&gt;&lt;/a&gt;: Do not trace SASL mutex callbacks&lt;/p&gt;

&lt;p&gt;These callbacks may be invoked before users have a chance to set their own log handler, so we should avoid tracing them (akin to the SSL and SCRAM init functions).&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/0da62cf461b815fb0501b2f23b084583b58e4dca&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/0da62cf461b815fb0501b2f23b084583b58e4dca&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="958914" author="jesse" created="Mon, 6 Jul 2015 21:38:17 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jmikola&quot; class=&quot;user-hover&quot; rel=&quot;jmikola&quot;&gt;jmikola&lt;/a&gt; you can resolve (but not close) this.&lt;/p&gt;</comment>
                            <comment id="958908" author="xgen-internal-githook" created="Mon, 6 Jul 2015 21:35:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@emptysquare.net&apos;}
&lt;p&gt;Message: Merge pull request #246 from jmikola/patch-1&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-731&quot; title=&quot;Custom log handler cannot capture tracing on sasl_set_mutex callbacks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-731&quot;&gt;&lt;del&gt;CDRIVER-731&lt;/del&gt;&lt;/a&gt;: Do not trace SASL mutex callbacks&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/4282e7498ac92777ba8a6693de691641eb63afe6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/4282e7498ac92777ba8a6693de691641eb63afe6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="958907" author="xgen-internal-githook" created="Mon, 6 Jul 2015 21:35:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-731&quot; title=&quot;Custom log handler cannot capture tracing on sasl_set_mutex callbacks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-731&quot;&gt;&lt;del&gt;CDRIVER-731&lt;/del&gt;&lt;/a&gt;: Do not trace SASL mutex callbacks&lt;/p&gt;

&lt;p&gt;These callbacks may be invoked before users have a chance to set their own log handler, so we should avoid tracing them (akin to the SSL and SCRAM init functions).&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/0da62cf461b815fb0501b2f23b084583b58e4dca&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/0da62cf461b815fb0501b2f23b084583b58e4dca&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="956074" author="jmikola@gmail.com" created="Wed, 1 Jul 2015 21:02:23 +0000"  >&lt;p&gt;PR for consideration: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/246&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/246&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="208486">PHPC-306</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="186496">CDRIVER-547</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hreipb:</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="610">C Driver 2015Q2 sprint 4</customfieldvalue>

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