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

When Pymongo is loaded from C with Embedded Python, it causes a Segmentation fault (core dumped).

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 3.5
    • Component/s: API
    • None
    • Environment:
      Linux Ubuntu 16.04
      Python 3.5.2
      MongoDB 2.6.12
      Pymongo 3.6.1

      Hello. I am developing MongoDB and Python in a Linux server environment. The segmentation fault (core dumped) occurs when trying to call Pymongo Module from Embedded Python of C code. However, there is no problem when importing Pymongo modules directly from Python. So I tried to take a Log to see what the problem is. However, if I try to call Object, I get a Segmentation Fault error: when I use PyObject_CallObject and PyRun_SimpleString to call the object directly, I also get the same problem. The host address is localhost, and there are no other accounts registered.

      Why do I get an error in the Embedded Python environment when I try to use the same module?

      Additionally, I have a bad English. Even if the sentence is awkward, thank you for your understanding.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            SilverPineValley Jongin Park [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: