Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

segmentation fault while pytest

Oren
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2019

Old builds stopped working recently. We get a segmanatation fault in something related to pymongo / or maybe to tensorflow.

Since we did not lock the packages yet, it happens to us from time to time that a new python package version breaks something. Yet this time, it is really strange, and we don't even see the start of the tests, it happens before that. Did not find the descrepency in what we do at office and the environment on bitbucket.

 

platform linux -- Python 3.6.6, pytest-5.3.2, py-1.8.0, pluggy-0.13.1 -- /usr/local/bin/pythoncachedir: .pytest_cacherootdir: /opt/atlassian/pipelines/agent/build, inifile: pytest.iniFatal Python error: Segmentation faultThread 0x00007fc0e7aec700 (most recent call first):  File "/usr/local/lib/python3.6/site-packages/pymongo/periodic_executor.py", line 131 in _run  File "/usr/local/lib/python3.6/threading.py", line 864 in run  File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner  File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrapThread 0x00007fc0e82ed700 (most recent call first):  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 869 in _create_connection  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 895 in _configured_socket  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1089 in connect  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1187 in _get_socket_no_auth  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1135 in get_socket  File "/usr/local/lib/python3.6/contextlib.py", line 81 in __enter__  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 168 in _check_once  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 130 in _check_with_retry  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 109 in _run  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 85 in target  File "/usr/local/lib/python3.6/site-packages/pymongo/periodic_executor.py", line 118 in _run  File "/usr/local/lib/python3.6/threading.py", line 864 in run  File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner  File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrapThread 0x00007fc0e2e2a700 (most recent call first):  File "/usr/local/lib/python3.6/site-packages/pymongo/periodic_executor.py", line 131 in _run  File "/usr/local/lib/python3.6/threading.py", line 864 in run  File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner  File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrapThread 0x00007fc0e0629700 (most recent call first):  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 869 in _create_connection  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 895 in _configured_socket  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1089 in connect  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1187 in _get_socket_no_auth  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1135 in get_socket  File "/usr/local/lib/python3.6/contextlib.py", line 81 in __enter__  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 168 in _check_once  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 130 in _check_with_retry  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 109 in _run  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 85 in target  File "/usr/local/lib/python3.6/site-packages/pymongo/periodic_executor.py", line 118 in _run  File "/usr/local/lib/python3.6/threading.py", line 864 in run  File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner  File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrapThread 0x00007fc0dde28700 (most recent call first):  File "/usr/local/lib/python3.6/site-packages/pymongo/periodic_executor.py", line 131 in _run  File "/usr/local/lib/python3.6/threading.py", line 864 in run  File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner  File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrapThread 0x00007fc0db627700 (most recent call first):  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 869 in _create_connection  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 895 in _configured_socket  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1089 in connect  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1187 in _get_socket_no_auth  File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1135 in get_socket  File "/usr/local/lib/python3.6/contextlib.py", line 81 in __enter__  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 168 in _check_once  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 130 in _check_with_retry  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 109 in _run  File "/usr/local/lib/python3.6/site-packages/pymongo/monitor.py", line 85 in target  File "/usr/local/lib/python3.6/site-packages/pymongo/periodic_executor.py", line 118 in _run  File "/usr/local/lib/python3.6/threading.py", line 864 in run  File "/usr/local/lib/python3.6/threading.py", line 916 in _bootstrap_inner  File "/usr/local/lib/python3.6/threading.py", line 884 in _bootstrapCurrent thread 0x00007fc0f2f74700 (most recent call first):  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed  File "<frozen importlib._bootstrap_external>", line 922 in create_module  File "<frozen importlib._bootstrap>", line 571 in module_from_spec  File "<frozen importlib._bootstrap>", line 658 in _load_unlocked  File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 971 in _find_and_load  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed  File "<frozen importlib._bootstrap>", line 1023 in _handle_fromlist  File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/util/tf_stack.py", line 29 in <module>  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed  File "<frozen importlib._bootstrap_external>", line 678 in exec_module  File "<frozen importlib._bootstrap>", line 665 in _load_unlocked  File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 971 in _find_and_load  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed  File "<frozen importlib._bootstrap>", line 1023 in _handle_fromlist  File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/util/tf_decorator.py", line 64 in <module>  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed  File "<frozen importlib._bootstrap_external>", line 678 in exec_module  File "<frozen importlib._bootstrap>", line 665 in _load_unlocked  File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 971 in _find_and_load  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed  File "<frozen importlib._bootstrap>", line 1023 in _handle_fromlist  File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/util/tf_export.py", line 48 in <module>  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed  File "<frozen importlib._bootstrap_external>", line 678 in exec_module  File "<frozen importlib._bootstrap>", line 665 in _load_unlocked  File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 971 in _find_and_load  File "/usr/local/lib/python3.6/site-packages/tensorflow_core/python/platform/t
..

1 answer

1 accepted

0 votes
Answer accepted
Oren
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2019

It was Tensorflow. ..

Suggest an answer

Log in or Sign up to answer