Got a segfault (-11) when running pytest. only oc...
# general
b
Got a segfault (-11) when running pytest. only occurs in this one test. stacktrace inside the thread. pants 2.19.1 (will try an rc version later). edit this is caused by OOM on my machine
inside sandbox after running with arg keep-sandboxes=always
Copy code
❯ ./pytest_runner.pex_pex_shim.sh
======================================================================= test session starts ========================================================================
platform darwin -- Python 3.10.14, pytest-7.0.1, pluggy-1.0.0
rootdir: /private/var/folders/fs/ltlhbbt90wl5vyrh13fbgw8w0000gn/T/pants-sandbox-skStXJ
plugins: xdist-2.5.0, forked-1.6.0, cov-3.0.0
collected 4 items

python/tests/my_test.py .[1]    95034 segmentation fault  ./pytest_runner.pex_pex_shim.sh
❯ vi pytest_runner.pex_pex_shim.sh
actual test running:
Copy code
16:14:03.10 [ERROR] Completed: Run Pytest - python/delphina/delphina/feature/tests/feature_set_test.py - failed (exit code -11).
============================= test session starts ==============================
platform darwin -- Python 3.10.14, pytest-7.0.1, pluggy-1.0.0
rootdir: /private/var/folders/fs/ltlhbbt90wl5vyrh13fbgw8w0000gn/T/pants-sandbox-skStXJ
plugins: xdist-2.5.0, forked-1.6.0, cov-3.0.0
collected 4 items

python/tests/my_test.py .



✕ python/tests/my_test.py failed in 20.36s.
looks like one of the test cases passed
looks like this test has multiple test cases, so i might be able to track down the exact line. might be OOM
confirmed the OOM root cause, disregard this
👍 1