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

driver crashes for unfortunate query

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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?

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            Jeroenooms Jeroen Ooms [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: