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

Python 3.4 test_bad_encode Fatal Python error: Cannot recover from stack overflow

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None

      [2020/07/02 17:58:05.550]   test_bad_encode (test_bson.TestBSON) ... Fatal Python error: Cannot recover from stack overflow.
      [2020/07/02 17:58:05.550] Thread 0x00007f9917fff700 (most recent call first):
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/periodic_executor.py", line 140 in _run
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 859 in run
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 911 in _bootstrap_inner
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 879 in _bootstrap
      [2020/07/02 17:58:05.550] Thread 0x00007f9930dfa700 (most recent call first):
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/periodic_executor.py", line 140 in _run
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 859 in run
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 911 in _bootstrap_inner
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 879 in _bootstrap
      [2020/07/02 17:58:05.550] Thread 0x00007f99317fb700 (most recent call first):
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/periodic_executor.py", line 140 in _run
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 859 in run
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 911 in _bootstrap_inner
      [2020/07/02 17:58:05.550]   File "/opt/python/3.4/lib/python3.4/threading.py", line 879 in _bootstrap
      [2020/07/02 17:58:05.550] Thread 0x00007f99321fc700 (most recent call first):
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/socket_checker.py", line 57 in select
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 246 in wait_for_read
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 286 in _receive_data_on_socket
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 196 in receive_message
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 150 in command
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/pool.py", line 694 in command
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/pool.py", line 580 in _ismaster
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 269 in _check_with_socket
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 241 in _check_once
      [2020/07/02 17:58:05.550]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 206 in _check_server
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 170 in _run
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 46 in target
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/periodic_executor.py", line 125 in _run
      [2020/07/02 17:58:05.551]   File "/opt/python/3.4/lib/python3.4/threading.py", line 859 in run
      [2020/07/02 17:58:05.551]   File "/opt/python/3.4/lib/python3.4/threading.py", line 911 in _bootstrap_inner
      [2020/07/02 17:58:05.551]   File "/opt/python/3.4/lib/python3.4/threading.py", line 879 in _bootstrap
      [2020/07/02 17:58:05.551] Thread 0x00007f9932bfd700 (most recent call first):
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/socket_checker.py", line 57 in select
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 246 in wait_for_read
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 286 in _receive_data_on_socket
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 196 in receive_message
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 150 in command
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/pool.py", line 694 in command
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/pool.py", line 580 in _ismaster
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 269 in _check_with_socket
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 241 in _check_once
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 206 in _check_server
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 170 in _run
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 46 in target
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/periodic_executor.py", line 125 in _run
      [2020/07/02 17:58:05.551]   File "/opt/python/3.4/lib/python3.4/threading.py", line 859 in run
      [2020/07/02 17:58:05.551]   File "/opt/python/3.4/lib/python3.4/threading.py", line 911 in _bootstrap_inner
      [2020/07/02 17:58:05.551]   File "/opt/python/3.4/lib/python3.4/threading.py", line 879 in _bootstrap
      [2020/07/02 17:58:05.551] Thread 0x00007f99335fe700 (most recent call first):
      [2020/07/02 17:58:05.551]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/periodic_executor.py", line 140 in _run
      [2020/07/02 17:58:05.551]   File "/opt/python/3.4/lib/python3.4/threading.py", line 859 in run
      [2020/07/02 17:58:05.551]   File "/opt/python/3.4/lib/python3.4/threading.py", line 911 in _bootstrap_inner
      [2020/07/02 17:58:05.552]   File "/opt/python/3.4/lib/python3.4/threading.py", line 879 in _bootstrap
      [2020/07/02 17:58:05.552] Thread 0x00007f9933fff700 (most recent call first):
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/socket_checker.py", line 57 in select
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 246 in wait_for_read
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 286 in _receive_data_on_socket
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 196 in receive_message
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/network.py", line 150 in command
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/pool.py", line 694 in command
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/pool.py", line 580 in _ismaster
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 269 in _check_with_socket
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 241 in _check_once
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 206 in _check_server
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 170 in _run
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/monitor.py", line 46 in target
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/pymongo/periodic_executor.py", line 125 in _run
      [2020/07/02 17:58:05.552]   File "/opt/python/3.4/lib/python3.4/threading.py", line 859 in run
      [2020/07/02 17:58:05.552]   File "/opt/python/3.4/lib/python3.4/threading.py", line 911 in _bootstrap_inner
      [2020/07/02 17:58:05.552]   File "/opt/python/3.4/lib/python3.4/threading.py", line 879 in _bootstrap
      [2020/07/02 17:58:05.552] Current thread 0x00007f99532f2700 (most recent call first):
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/codec_options.py", line 35 in _raw_document_class
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 587 in _encode_mapping
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.552]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.553]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.554]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.555]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.556]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.557]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.557]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.557]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.557]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.557]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in <listcomp>
      [2020/07/02 17:58:05.557]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 590 in _encode_mapping
      [2020/07/02 17:58:05.557]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 803 in _name_value_to_bson
      [2020/07/02 17:58:05.557]   File "/data/mci/a1f850c09732d9c5a5136a7d6133a473/src/bson/__init__.py", line 861 in _element_to_bson
      [2020/07/02 17:58:05.557]   ...
      [2020/07/02 17:58:05.557] Fatal Python error: Aborted
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_without_c_extensions__platform~rhel62_auth_ssl~noauth_nossl_python_version~3.4_c_extensions~without_c_extensions_coverage~coverage_test_4.4_replica_set_a075eb798f97379cec2d7d1cc971a774ccaeb9b7_20_07_02_17_53_08

      This seems to be the same issue described in https://bugs.python.org/issue25222 and PYTHON-996. The new thing here is that the error is now happening on Python 3.4 as well. Given these two quotes on the python bug ticket:

      Well, Python has no perfect protection again stack overflow. It's only best effect.

      and

      The problem only occurs for me when testing with a MongoDB instance running. Running background threads seem to be a key requirement for reproduction. Note also that this problem does not reproduce when using PyMongo's C extensions, only when using the pure python BSON encoder.

      I suspect this cause of this issue may be that the Python interpreter itself uses some stack space when yielding the GIL between threads. So if we get unlucky and the thread running bson.encode() yields the GIL near the stack limit, we'll run into the fatal stack overflow. This issue does not appear when encoded with the C extensions because this C encoding code path will not yield the GIL.

        1. tasklogs.txt
          176 kB
          Shane Harvey

            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: