<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:07 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-3094] bson_iter_binary doesn&apos;t work on a Windows build</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3094</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I&apos;m running an appveyor script that tests libbson and libmongoc on various platforms.&lt;br/&gt;
Everything works, including libmongoc API, except `bson_iter_binary`.&lt;/p&gt;

&lt;p&gt;The log below is not very helpful, since by the time `bson_iter_binary` is called, the thread just panics and no output or error trace is printed.&lt;/p&gt;

&lt;p&gt;In this case, libbson and libmongoc were built with appveyor&apos;s Visual Studio 2015 image.&lt;/p&gt;

&lt;p&gt;```&lt;br/&gt;
Build started&lt;br/&gt;
git clone -q --branch=fn/windows &lt;a href=&quot;https://github.com/felipenoris/Mongoc.jl.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/felipenoris/Mongoc.jl.git&lt;/a&gt; C:\projects\mongoc-jl&lt;br/&gt;
git checkout -qf 176c69b415380ef89aad9dfdcc5f770dcec28b9f&lt;br/&gt;
Running Install scripts&lt;br/&gt;
iex ((new-object net.webclient).DownloadString(&quot;https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1&quot;))&lt;br/&gt;
Installing Julia...&lt;br/&gt;
Julia Version 1.0.3&lt;br/&gt;
Commit 099e826241 (2018-12-18 01:34 UTC)&lt;br/&gt;
Platform Info:&lt;br/&gt;
  OS: Windows (x86_64-w64-mingw32)&lt;br/&gt;
  CPU: Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz&lt;br/&gt;
  WORD_SIZE: 64&lt;br/&gt;
  LIBM: libopenlibm&lt;br/&gt;
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)&lt;br/&gt;
Environment:&lt;br/&gt;
  JULIA_PROJECT = @.&lt;br/&gt;
Starting MongoDB&lt;br/&gt;
echo &quot;%JL_BUILD_SCRIPT%&quot;&lt;br/&gt;
&quot;using Pkg; Pkg.build()&quot;&lt;br/&gt;
C:\julia\bin\julia -e &quot;%JL_BUILD_SCRIPT%&quot;&lt;br/&gt;
   Cloning default registries into C:\Users\appveyor\.julia\registries&lt;br/&gt;
   Cloning registry General from &quot;https://github.com/JuliaRegistries/General.git&quot;&lt;br/&gt;
 Installed BinaryProvider &#9472; v0.5.3&lt;br/&gt;
  Building Mongoc &#8594; `C:\projects\mongoc-jl\deps\build.log`&lt;br/&gt;
 Resolving package versions...&lt;br/&gt;
echo &quot;%JL_TEST_SCRIPT%&quot;&lt;br/&gt;
&quot;using Pkg; Pkg.test(coverage=true)&quot;&lt;br/&gt;
C:\julia\bin\julia -e &quot;%JL_TEST_SCRIPT%&quot;&lt;br/&gt;
   Testing Mongoc&lt;br/&gt;
 Resolving package versions...&lt;br/&gt;
&#9484; Info: Testing for platform: &lt;br/&gt;
&#9492;   platform_key_abi() = Windows(:x86_64, compiler_abi=CompilerABI(:gcc4, :cxx11))&lt;br/&gt;
&#9484; Warning: Failed to remove test file C:\projects\mongoc-jl\test\data.bson: unlink: resource busy or locked (EBUSY)&lt;br/&gt;
&#9492; @ Main C:\projects\mongoc-jl\test\bson_tests.jl:327&lt;br/&gt;
Test Summary: |  Pass  Total&lt;br/&gt;
BSON          | 10097  10097&lt;br/&gt;
Server Mongo Version: 4.0.1&lt;br/&gt;
ERROR: Package Mongoc errored during testing&lt;br/&gt;
Stacktrace:&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; pkgerror(::String, ::Vararg&lt;/p&gt;
{String,N}
&lt;p&gt; where N) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:120&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; #test#65(::Bool, ::Function, ::Pkg.Types.Context, ::Array&lt;/p&gt;
{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1357&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; #test at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:0 &lt;span class=&quot;error&quot;&gt;&amp;#91;inlined&amp;#93;&lt;/span&gt;&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;4&amp;#93;&lt;/span&gt; #test#42(::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}
&lt;p&gt;) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:273&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;5&amp;#93;&lt;/span&gt; #test#41 at .\none:0 &lt;span class=&quot;error&quot;&gt;&amp;#91;inlined&amp;#93;&lt;/span&gt;&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;6&amp;#93;&lt;/span&gt; #test at .\none:0 &lt;span class=&quot;error&quot;&gt;&amp;#91;inlined&amp;#93;&lt;/span&gt;&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;7&amp;#93;&lt;/span&gt; #test#38 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:252 &lt;span class=&quot;error&quot;&gt;&amp;#91;inlined&amp;#93;&lt;/span&gt;&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;8&amp;#93;&lt;/span&gt; (::getfield(Pkg.API, Symbol(&quot;#kw##test&quot;)))(::NamedTuple{(:coverage,),Tuple{Bool}}, ::typeof(Pkg.API.test)) at .\none:0&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;9&amp;#93;&lt;/span&gt; top-level scope at none:0&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Ref:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;builder: &lt;a href=&quot;https://github.com/felipenoris/mongo-c-driver-builder&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/felipenoris/mongo-c-driver-builder&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;client: &lt;a href=&quot;https://github.com/felipenoris/Mongoc.jl&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/felipenoris/Mongoc.jl&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Platform Info:&lt;br/&gt;
&amp;nbsp;&amp;nbsp;OS: Windows (x86_64-w64-mingw32)&lt;br/&gt;
&amp;nbsp;&amp;nbsp;CPU: Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz&lt;br/&gt;
&amp;nbsp;&amp;nbsp;WORD_SIZE: 64&lt;br/&gt;
&amp;nbsp;&amp;nbsp;LIBM: libopenlibm&lt;br/&gt;
&amp;nbsp;&amp;nbsp;LLVM: libLLVM-6.0.0 (ORCJIT, haswell)</environment>
        <key id="743317">CDRIVER-3094</key>
            <summary>bson_iter_binary doesn&apos;t work on a Windows build</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="felipenoris">Felipe Noronha Tavares</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Apr 2019 02:00:46 +0000</created>
                <updated>Tue, 31 Dec 2019 13:36:56 +0000</updated>
                            <resolved>Tue, 31 Dec 2019 13:36:56 +0000</resolved>
                                    <version>1.14.0</version>
                                                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2696775" author="kevin.albertson" created="Tue, 31 Dec 2019 13:36:37 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=felipenoris&quot; class=&quot;user-hover&quot; rel=&quot;felipenoris&quot;&gt;felipenoris&lt;/a&gt;, looking at the linked repos, I assume this skipped test is the producer of that stack trace:&lt;br/&gt;
&lt;a href=&quot;https://github.com/felipenoris/Mongoc.jl/blob/7971830f797643c202404f3cec62eaec4c9052ee/test/mongodb_tests.jl#L163-L179&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/felipenoris/Mongoc.jl/blob/7971830f797643c202404f3cec62eaec4c9052ee/test/mongodb_tests.jl#L163-L179&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;m not familiar with Julia or how it integrates with C libraries,  so I&apos;m taking a long shot here, but perhaps the call to bson_iter_binary is missing the subtype argument here: &lt;a href=&quot;https://github.com/felipenoris/Mongoc.jl/blob/7971830f797643c202404f3cec62eaec4c9052ee/src/bson.jl#L520&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/felipenoris/Mongoc.jl/blob/7971830f797643c202404f3cec62eaec4c9052ee/src/bson.jl#L520&lt;/a&gt;&lt;br/&gt;
Compare that with libbson&apos;s bson_iter_binary: &lt;a href=&quot;http://mongoc.org/libbson/current/bson_iter_binary.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mongoc.org/libbson/current/bson_iter_binary.html&lt;/a&gt; with the subtype as the second argument.&lt;/p&gt;

&lt;p&gt;If you are able to provide more info and this indicates a bug with libbson feel free to re-open and we&apos;ll investigate further. But if this is Julia specific, we likely cannot provide much assistance.&lt;/p&gt;</comment>
                            <comment id="2235284" author="kevin.albertson" created="Mon, 6 May 2019 14:51:00 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=felipenoris&quot; class=&quot;user-hover&quot; rel=&quot;felipenoris&quot;&gt;felipenoris&lt;/a&gt;, thanks for the report! Are you able to reproduce this with a C driver test outside of the Julia wrapper?&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|hukqiv:</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>