[CXX-1507] test.cpp from documentation page segfaults sometimes Created: 01/Feb/18 Updated: 24/Apr/18 Resolved: 08/Feb/18 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Miha Nedok | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
All steps from online documentation: created test.cpp with contents:
compiled with:
Sometimes crashes.
|
| Comments |
| Comment by Andrew Morrow (Inactive) [ 08/Feb/18 ] |
|
Hi - I'm closing this ticket because I haven't heard any further information. Please feel free to comment on the ticket if there is additional help I can provide with this issue. |
| Comment by Andrew Morrow (Inactive) [ 01/Feb/18 ] |
|
The only obvious mistake I see in your code is that you haven't finalized your document. Try collection.insert_one(document << finalize);, though I don't exactly see how that error would cause the crash you are seeing. For what it is worth, the stream builders are currently de-emphasized because they are too hard to use correctly. Try using the basic builder instead. |