Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1163

Segmentation fault when mongoc_read_concern_destroy()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 1.3.3, 1.3.4
    • libmongoc
    • Gentoo Linux X86_64
      gcc-4.9.3
      jemalloc-3.6.0
      mongo-c-driver-1.3.4
      libbson-1.3.4

    Description

      Sometimes mongoc_read_concern_destroy() triggers a segmentation fault:

      mongoc_cursor_t *cursor = mongoc_collection_find(...);
      // then call mongoc_cursor_more() and mongoc_cursor_next()
      mongoc_cursor_destroy(cursor);

      mongoc_cursor_destroy() calls mongoc_read_concern_destroy(), and the later crashes at bson_free (read_concern->level)

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            mapx Peng Xie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: