Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-178

cbson module crashes attempting to serialize a recursive data structure

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

      This crashes the Python interpreter with a Segmentation fault:

      import bson
      assert bson.has_c()
      d =

      {'foo' : []}

      d['foo'].append(d)
      bson._dict_to_bson(d, True)

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            jonash Jonas H
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: