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

Stack overflow in test_infinite_loop_exceeds_max_recursion_depth

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

      Stack overflow in test_infinite_loop_exceeds_max_recursion_depth with Eventlet seen in a patch build:

      [2020/06/03 23:56:16.227]   test_infinite_loop_exceeds_max_recursion_depth (test_custom_types.TestBSONCustomTypeEncoderAndFallbackEncoderTandem) ... /data/mci/90857670cb47d0ee64fb4a5a93686e39/src/test/test_custom_types.py:374: DeprecationWarning: Starting in PyMongo 4.0, the default uuidRepresentation will be changed to 'unspecified'. Applications will need to explicitly set 'uuidRepresentation=pythonLegacy' in the connection string to preserve current behavior.
      [2020/06/03 23:56:16.227]   [self.B2A()], fallback_encoder=self.fallback_encoder_A2B))
      [2020/06/03 23:56:16.228] Fatal Python error: Cannot recover from stack overflow.
      [2020/06/03 23:56:16.228] Current thread 0x00007f8529ca1700 (most recent call first):
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/_weakrefset.py", line 75 in __contains__
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/abc.py", line 190 in __instancecheck__
      [2020/06/03 23:56:16.228]   File "/data/mci/90857670cb47d0ee64fb4a5a93686e39/src/bson/__init__.py", line 938 in encode
      [2020/06/03 23:56:16.228]   File "/data/mci/90857670cb47d0ee64fb4a5a93686e39/src/test/test_custom_types.py", line 378 in test_infinite_loop_exceeds_max_recursion_depth
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/unittest/case.py", line 605 in run
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/unittest/case.py", line 653 in __call__
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/unittest/suite.py", line 122 in run
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/unittest/suite.py", line 84 in __call__
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/site-packages/xmlrunner/runner.py", line 70 in run
      [2020/06/03 23:56:16.228]   File "/data/mci/90857670cb47d0ee64fb4a5a93686e39/src/test/__init__.py", line 870 in run
      [2020/06/03 23:56:16.228]   File "/data/mci/90857670cb47d0ee64fb4a5a93686e39/src/setup.py", line 130 in run
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/distutils/dist.py", line 974 in run_command
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/distutils/dist.py", line 955 in run_commands
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/distutils/core.py", line 148 in setup
      [2020/06/03 23:56:16.228]   File "/opt/python/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 145 in setup
      [2020/06/03 23:56:16.228]   File "/data/mci/90857670cb47d0ee64fb4a5a93686e39/src/setup.py", line 430 in <module>
      [2020/06/03 23:56:16.228]   File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
      [2020/06/03 23:56:16.228]   File "<frozen importlib._bootstrap_external>", line 678 in exec_module
      [2020/06/03 23:56:16.228]   File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
      [2020/06/03 23:56:16.228]   File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
      [2020/06/03 23:56:16.228]   File "<frozen importlib._bootstrap>", line 971 in _find_and_load
      [2020/06/03 23:56:16.228]   File "green_framework_test.py", line 57 in run
      [2020/06/03 23:56:16.228]   File "green_framework_test.py", line 95 in main
      [2020/06/03 23:56:16.233]   File "green_framework_test.py", line 99 in <module>
      [2020/06/03 23:56:16.233] /data/mci/90857670cb47d0ee64fb4a5a93686e39/src/.evergreen/run-tests.sh: line 187: 12063 Aborted                 $PYTHON green_framework_test.py $GREEN_FRAMEWORK $OUTPUT
      [2020/06/03 23:56:16.233] Command failed: command encountered problem: error waiting on process '5f878f5b-c3e3-4802-ac3f-d2167a5578e8': exit status 134
      [2020/06/03 23:56:16.233] Task completed - FAILURE.
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_green_framework_rhel62__platform~rhel62_auth_ssl~noauth_nossl_python_version~3.6_green_framework~eventlet_test_4.4_sharded_cluster_patch_4760d0781505c0f13d5d1bc061ff89075927eb2f_5ed8370e57e85a5c38f0c755_20_06_03_23_50_33

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: