cbson module crashes attempting to serialize a recursive data structure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.10
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Hackett
              Reporter:
              Jonas H
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: