-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Removing the test skips introduced in CXX-2025 resulted in local test failures.
The test fails with a segmentation fault:
> ./cmake-build/src/mongocxx/test/test_change_stream_specs --section change-streams.json ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test_change_stream_specs is a Catch v2.10.2 host application. Run with -? for options ------------------------------------------------------------------------------- Change stream spec tests change-streams.json $changeStream must be the first stage in a change stream pipeline sent to the server ------------------------------------------------------------------------------- ../src/mongocxx/test/spec/change_stream.cpp:83 ............................................................................... ../src/mongocxx/test/spec/change_stream.cpp:83: FAILED: {Unknown expression after the reported line} due to a fatal error condition: checking for path from environment variable: CHANGE_STREAM_TESTS_PATH Test path: /Users/kevinalbertson/code/mongo-cxx-driver/data/change_stream/ change-streams.json SIGSEGV - Segmentation violation signal =============================================================================== test cases: 1 | 1 failed assertions: 6 | 5 passed | 1 failed Segmentation fault: 11
Debugging indicates this occurs when throwing an exception:
https://github.com/mongodb/mongo-cxx-driver/blob/feda529e73cba24efc46df33bbb553712f5b0944/src/mongocxx/private/change_stream.hh#L93