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

driver crashes for unfortunate query

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I was debugging a problem when I accidentally ran this query:

      {"$oid":"57146936ba7cb24509006ac1"}
      

      This query is obviously invalid because it misses the

       {"_id": ... }

      part. However I did not expect it to crash my client:


      > bson/bson.c:1405 bson_append_oid(): precondition failed: key
      Abort trap: 6

      Is it expected that certain invalid queries will make

       mongoc_collection_find

      exit the client?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jesse A. Jesse Jiryu Davis
              Reporter:
              Jeroenooms Jeroen Ooms [X] (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: