driver crashes for unfortunate query

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            A. Jesse Jiryu Davis
            Reporter:
            Jeroen Ooms [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: