[CDRIVER-3094] bson_iter_binary doesn't work on a Windows build Created: 23/Apr/19 Updated: 31/Dec/19 Resolved: 31/Dec/19 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libbson |
| Affects Version/s: | 1.14.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Felipe Noronha Tavares | Assignee: | Kevin Albertson |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Platform Info: |
||
| Description |
|
I'm running an appveyor script that tests libbson and libmongoc on various platforms. 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. In this case, libbson and libmongoc were built with appveyor's Visual Studio 2015 image. ``` where N) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:120 [3] #test at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:0 [inlined] [4] #test#42(::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1} ) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:273 Ref:
|
| Comments |
| Comment by Kevin Albertson [ 31/Dec/19 ] |
|
Hi felipenoris, looking at the linked repos, I assume this skipped test is the producer of that stack trace: I'm not familiar with Julia or how it integrates with C libraries, so I'm taking a long shot here, but perhaps the call to bson_iter_binary is missing the subtype argument here: https://github.com/felipenoris/Mongoc.jl/blob/7971830f797643c202404f3cec62eaec4c9052ee/src/bson.jl#L520 If you are able to provide more info and this indicates a bug with libbson feel free to re-open and we'll investigate further. But if this is Julia specific, we likely cannot provide much assistance. |
| Comment by Kevin Albertson [ 06/May/19 ] |
|
Hi felipenoris, thanks for the report! Are you able to reproduce this with a C driver test outside of the Julia wrapper? |