When running a query through
mongoc_collection_find_with_opts
where opts is invalid (i.e. "Cannot use empty keys in 'opts'."), a subsequent mongoc_cursor_destroy crashes, even though find_with_opts' documentation says I need to destroy the cursor.
See the attached file, which I've compiled with
gcc test.c -ggdb3 -o test536 $(pkg-config --cflags --libs libmongoc-1.0)
When running it, it produces a segfault:
derick@singlemalt:/tmp/536 $ ./test536
An error occurred: Cannot use empty keys in 'opts'.
Segmentation fault
I have also attached the backtrace.
- is depended on by
-
PHPC-920 Using a projection with an empty field name causes a crash when destroying cursor
- Closed
- is duplicated by
-
CDRIVER-2100 SegFault in 1.6.1 when 'dispose cursor' after doing a find on a $or or $and query
- Closed
- links to