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

Crash when destroying bson objects

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • 1.6.2
    • libmongoc
    • None
    • Windows 10 64 bit

    Description

      I am trying to use this driver in a multi-threading application. I am using client pool and make sure that using a cursor is always done in the same thread.

      However, if the first use is always successful (each are begining by mongoc_init(); and treminated by mongoc_cleanup() following ones frequently crash, always when destroying something. It says something about heap corruption or writing past the heap limit.

      I have been able to avoid this by providing my own memory functions and resetting the vtable.

      Is there another way to avoid these problems?

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            Buggynours Olivier Bertrand [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: