platform linux -- Python 3.6.13, pytest-4.3.0, py-1.8.0, pluggy-0.9.0 collected 13 items test_iostream.py ............Unhandled exception: @ 0x56342edd799c TerminateHandler() @ 0x56342f361198 std::__terminate() @ 0x56342f3610a5 std::terminate() @ 0x7f49b460ca7b pybind11::scoped_ostream_redirect::~scoped_ostream_redirect() @ 0x7f49b460fc13 std::__u::unique_ptr<>::reset() @ 0x7f49b4611492 pybind11::detail::OstreamRedirect::exit() @ 0x7f49b46113e5 pybind11::detail::argument_loader<>::call_impl<>() @ 0x7f49b4610f8b pybind11::detail::argument_loader<>::call<>() @ 0x7f49b4610d3b pybind11::cpp_function::initialize<>()::{lambda()#1}::operator()() @ 0x7f49b4610c14 pybind11::cpp_function::initialize<>()::{lambda()#1}::__invoke() @ 0x7f49b40efad4 pybind11::cpp_function::dispatcher() @ 0x56342ec06b13 _PyCFunction_FastCallDict @ 0x56342eb6ae3b _PyObject_FastCallDict @ 0x56342eb6b196 _PyObject_Call_Prepend @ 0x56342eb6adb4 _PyObject_FastCallDict @ 0x56342eb6275c PyObject_CallFunctionObjArgs @ 0x56342ed18c85 _PyEval_EvalFrameDefault @ 0x56342ed257ea _PyEval_EvalCodeWithName @ 0x56342ed0d244 PyEval_EvalCodeEx @ 0x56342ebd1a45 function_call @ 0x56342eb6a979 PyObject_Call @ 0x56342ed1964a _PyEval_EvalFrameDefault @ 0x56342ed257ea _PyEval_EvalCodeWithName @ 0x56342ed0d244 PyEval_EvalCodeEx @ 0x56342ebd1a45 function_call @ 0x56342eb6a979 PyObject_Call @ 0x56342ed1964a _PyEval_EvalFrameDefault @ 0x56342ed257ea _PyEval_EvalCodeWithName @ 0x56342ed270c7 fast_function @ 0x56342ed24490 call_function @ 0x56342ed19315 _PyEval_EvalFrameDefault @ 0x56342ed257ea _PyEval_EvalCodeWithName @ 0x56342ed270c7 fast_function @ 0x56342ed24490 call_function @ 0x56342ed19c39 _PyEval_EvalFrameDefault @ 0x56342ed279a0 _PyFunction_FastCall @ 0x56342ed24490 call_function @ 0x56342ed19c39 _PyEval_EvalFrameDefault @ 0x56342ed257ea _PyEval_EvalCodeWithName @ 0x56342ed2761d _PyFunction_FastCallDict @ 0x56342eb6ae28 _PyObject_FastCallDict @ 0x56342eb6b196 _PyObject_Call_Prepend @ 0x56342eb6a979 PyObject_Call @ 0x56342ec3f8c2 slot_tp_call @ 0x56342eb6adb4 _PyObject_FastCallDict @ 0x56342eb6b8aa _PyObject_FastCallKeywords @ 0x56342ed24303 call_function @ 0x56342ed19315 _PyEval_EvalFrameDefault @ 0x56342ed279a0 _PyFunction_FastCall @ 0x56342ed24490 call_function @ 0x56342ed19c39 _PyEval_EvalFrameDefault @ 0x56342ed257ea _PyEval_EvalCodeWithName @ 0x56342ed0d244 PyEval_EvalCodeEx @ 0x56342ebd1a45 function_call @ 0x56342eb6a979 PyObject_Call @ 0x56342ed1964a _PyEval_EvalFrameDefault @ 0x56342ed257ea _PyEval_EvalCodeWithName @ 0x56342ed270c7 fast_function @ 0x56342ed24490 call_function @ 0x56342ed19315 _PyEval_EvalFrameDefault @ 0x56342ed257ea _PyEval_EvalCodeWithName @ 0x56342ed270c7 fast_function @ 0x56342ed24490 call_function @ 0x56342ed19c39 _PyEval_EvalFrameDefault libc++abi: terminating with uncaught exception of type std::runtime_error: Could not allocate string object! *** SIGABRT received by PID 3472 (TID 3472) on cpu 74 from PID 3472; *** Fatal Python error: Aborted Current thread 0x00007f49bd832b80 (most recent call first): File "pybind11/tests/test_iostream.py", line 241 in test_threading File "py/_pytest/python.py", line 166 in pytest_pyfunc_call File "py/pluggy/callers.py", line 187 in _multicall File "py/pluggy/manager.py", line 62 in File "py/pluggy/manager.py", line 68 in _hookexec File "py/pluggy/hooks.py", line 289 in __call__ File "py/_pytest/python.py", line 1456 in runtest File "py/_pytest/runner.py", line 123 in pytest_runtest_call File "py/pluggy/callers.py", line 187 in _multicall File "py/pluggy/manager.py", line 62 in File "py/pluggy/manager.py", line 68 in _hookexec File "py/pluggy/hooks.py", line 289 in __call__ File "py/_pytest/runner.py", line 198 in File "py/_pytest/runner.py", line 226 in from_call File "py/_pytest/runner.py", line 198 in call_runtest_hook File "py/_pytest/runner.py", line 173 in call_and_report File "py/_pytest/runner.py", line 93 in runtestprotocol File "py/_pytest/runner.py", line 78 in pytest_runtest_protocol File "py/pluggy/callers.py", line 187 in _multicall File "py/pluggy/manager.py", line 62 in File "py/pluggy/manager.py", line 68 in _hookexec File "py/pluggy/hooks.py", line 289 in __call__ File "py/_pytest/main.py", line 271 in pytest_runtestloop File "py/pluggy/callers.py", line 187 in _multicall File "py/pluggy/manager.py", line 62 in File "py/pluggy/manager.py", line 68 in _hookexec File "py/pluggy/hooks.py", line 289 in __call__ File "py/_pytest/main.py", line 250 in _main File "py/_pytest/main.py", line 210 in wrap_session File "py/_pytest/main.py", line 243 in pytest_cmdline_main File "py/pluggy/callers.py", line 187 in _multicall File "py/pluggy/manager.py", line 62 in File "py/pluggy/manager.py", line 68 in _hookexec File "py/pluggy/hooks.py", line 289 in __call__ File "py/_pytest/config/__init__.py", line 80 in main File "pybind11/tests/blaze_pytest_test_iostream.py", line 48 in main File "py/absl/app.py", line 393 in _run_main File "py/absl/app.py", line 467 in run File "pybind11/tests/blaze_pytest_test_iostream.py", line 51 in File "", line 39 in _run_code_in_main File "", line 165 in run_filename_as_main