Skip to content

Instantly share code, notes, and snippets.

@leinlawun
Last active June 26, 2020 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leinlawun/189158e16b6f53e1f368d55fc07b0584 to your computer and use it in GitHub Desktop.
Save leinlawun/189158e16b6f53e1f368d55fc07b0584 to your computer and use it in GitHub Desktop.
RocketJoe log
rocketjoe_jupyter_1 | UpdateCTestConfiguration from :/app/build/DartConfiguration.tcl
rocketjoe_jupyter_1 | UpdateCTestConfiguration from :/app/build/DartConfiguration.tcl
rocketjoe_jupyter_1 | Test project /app/build
rocketjoe_jupyter_1 | Constructing a list of tests
rocketjoe_jupyter_1 | Done constructing a list of tests
rocketjoe_jupyter_1 | Updating test list for fixtures
rocketjoe_jupyter_1 | Added 0 tests to meet fixture requirements
rocketjoe_jupyter_1 | Checking test dependency graph...
rocketjoe_jupyter_1 | Checking test dependency graph end
rocketjoe_jupyter_1 | test 1
rocketjoe_jupyter_1 | Start 1: test_storage
rocketjoe_jupyter_1 | Could not find executable test_storage
rocketjoe_jupyter_1 | Looked in the following places:
rocketjoe_jupyter_1 | test_storage
rocketjoe_jupyter_1 | test_storage
rocketjoe_jupyter_1 | Release/test_storage
rocketjoe_jupyter_1 | Release/test_storage
rocketjoe_jupyter_1 | Debug/test_storage
rocketjoe_jupyter_1 | Debug/test_storage
rocketjoe_jupyter_1 | MinSizeRel/test_storage
rocketjoe_jupyter_1 | MinSizeRel/test_storage
rocketjoe_jupyter_1 | RelWithDebInfo/test_storage
rocketjoe_jupyter_1 | RelWithDebInfo/test_storage
rocketjoe_jupyter_1 | Deployment/test_storage
rocketjoe_jupyter_1 | Deployment/test_storage
rocketjoe_jupyter_1 | Development/test_storage
rocketjoe_jupyter_1 | Development/test_storage
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 1: Test command:
rocketjoe_jupyter_1 | Unable to find executable: test_storage
rocketjoe_jupyter_1 | 1/2 Test #1: test_storage .....................***Not Run 0.00 sec
rocketjoe_jupyter_1 | test 2
rocketjoe_jupyter_1 | Start 2: test_jupyter_kernel.py
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 2: Test command: /usr/local/bin/pytest "/app/build/apps/rocketjoed/test/test_jupyter_kernel.py"
rocketjoe_jupyter_1 | 2: Environment variables:
rocketjoe_jupyter_1 | 2: JUPYTER_PATH=$JUPYTER_PATH:/app/build
rocketjoe_jupyter_1 | 2: Test timeout computed to be: 10000000
rocketjoe_jupyter_1 | 2: ============================= test session starts ==============================
rocketjoe_jupyter_1 | 2: platform linux -- Python 3.7.3, pytest-5.4.2, py-1.8.2, pluggy-0.13.1
rocketjoe_jupyter_1 | 2: benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rocketjoe_jupyter_1 | 2: rootdir: /app/build/apps/rocketjoed
rocketjoe_jupyter_1 | 2: plugins: benchmark-3.2.3, xprocess-0.13.1
rocketjoe_jupyter_1 | 2: collected 26 items
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py EEEEEEEEEEEE.F.F.F.F.F.F.F [100%]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: ==================================== ERRORS ====================================
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_clear_output ___________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ---------------------------- Captured stdout setup -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:45.447] [__default__] [info] [pid 14 tid 14]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:45.447] [__default__] [info] [pid 14 tid 14] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /tmp/tmpjymcb2wv.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:45.447] [__default__] [info] [pid 14 tid 14] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:45.447] [__default__] [info] [pid 14 tid 14] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:45.473] [__default__] [info] [pid 14 tid 14] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:45.473] [__default__] [info] [pid 14 tid 14] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:45.473] [__default__] [info] [pid 14 tid 14] jupyter connection path : /tmp/tmpjymcb2wv.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:45.473] [__default__] [info] [pid 14 tid 14] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:13:46.916] [__default__] [info] [pid 14 tid 14] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ---------------------------- Captured stderr setup -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 unsigned short const& boost::any_cast<unsigned short const&>(boost::any const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:298 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2: #3 unsigned short const& boost::program_options::variable_value::as<unsigned short>() const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/program_options/variables_map.hpp:69 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:102 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55f027398b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x1cd82ca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55f027398b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1cd8569)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55f027398b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 38497,
rocketjoe_jupyter_1 | 2: "hb_port": 55791,
rocketjoe_jupyter_1 | 2: "iopub_port": 39661,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "kernel_name": "rocketjoe",
rocketjoe_jupyter_1 | 2: "key": "4bae36f7-ffdb438a87ca66c30032d41f",
rocketjoe_jupyter_1 | 2: "shell_port": 45019,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 54331,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000330 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000330 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:30 (rocketjoed+0x15a9a25)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=30, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ____________ ERROR at setup of RocketJoePythonTests.test_completion ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_display_data ___________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ______________ ERROR at setup of RocketJoePythonTests.test_error _______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_result __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_stderr __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_stdout __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: _____________ ERROR at setup of RocketJoePythonTests.test_history ______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: _____________ ERROR at setup of RocketJoePythonTests.test_inspect ______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_is_complete ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_kernel_info ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ______________ ERROR at setup of RocketJoePythonTests.test_pager _______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7f1e41a46ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: =================================== FAILURES ===================================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_kernel_info_request ______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e420218d0>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f1e3e4f6470>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7f1e3e49b9d8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7f1e41a17780>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_kernel_info_request(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:71:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e420218d0>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:52.684] [__default__] [info] [pid 47 tid 47]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:52.684] [__default__] [info] [pid 47 tid 47] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-6a933165-e8f72d95d61048df70a5a4f5.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:52.684] [__default__] [info] [pid 47 tid 47] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:52.684] [__default__] [info] [pid 47 tid 47] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:52.711] [__default__] [info] [pid 47 tid 47] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:52.711] [__default__] [info] [pid 47 tid 47] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:52.711] [__default__] [info] [pid 47 tid 47] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-6a933165-e8f72d95d61048df70a5a4f5.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:52.711] [__default__] [info] [pid 47 tid 47] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:14:53.490] [__default__] [info] [pid 47 tid 47] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=47)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x5613635b1b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=49, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=47)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x5613635b1b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=49, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=47)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x1cd82ca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x5613635b1b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=49, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=47)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1cd8569)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x5613635b1b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=49, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 40791,
rocketjoe_jupyter_1 | 2: "hb_port": 57657,
rocketjoe_jupyter_1 | 2: "iopub_port": 41511,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "e56b3f81-bd4982070d149e9a9649fffe",
rocketjoe_jupyter_1 | 2: "shell_port": 35257,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 48571,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=47)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001880 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001880 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 actor_zeta::intrusive_ptr_release(actor_zeta::ref_counted const*) /root/.conan/data/actor-zeta/1.0.0a4/cyberduckninja/stable/build/af0fbc5eb7376a4b9749db37a5c402b36d452909/source_subfolder/core/actor-zeta/detail/ref_counted.hpp:48 (rocketjoed+0x17fa033)
rocketjoe_jupyter_1 | 2: #3 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=58, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=47)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001900 by thread T4:
rocketjoe_jupyter_1 | 2: #0 accept4 <null> (libtsan.so.0+0x392d3)
rocketjoe_jupyter_1 | 2: #1 zmq::tcp_listener_t::accept() /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/tcp_listener.cpp:205 (rocketjoed+0x1dd870f)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001900 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:196 (rocketjoed+0x15a0b5c)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=54, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x1dd8f7b)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x19b3652)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x19b3652)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x19bc590)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x392d3) in __interceptor_accept4
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _______________________ test_rocketjoe_execute_request_1 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3e524ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f1e3e4f6470>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7f1e3dabf6a8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7f1e3e4ef9b0>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:81:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3e524ba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:15:59.683] [__default__] [info] [pid 72 tid 72]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:15:59.683] [__default__] [info] [pid 72 tid 72] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-a6732d7a-480f5e83c80bbf396dc460d5.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:15:59.683] [__default__] [info] [pid 72 tid 72] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:15:59.683] [__default__] [info] [pid 72 tid 72] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:15:59.710] [__default__] [info] [pid 72 tid 72] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:15:59.710] [__default__] [info] [pid 72 tid 72] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:15:59.710] [__default__] [info] [pid 72 tid 72] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-a6732d7a-480f5e83c80bbf396dc460d5.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:15:59.710] [__default__] [info] [pid 72 tid 72] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:16:00.507] [__default__] [info] [pid 72 tid 72] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=72)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55e5a720db80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=74, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=72)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55e5a720db80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=74, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=72)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x1cd82ca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55e5a720db80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=74, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=72)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1cd8569)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55e5a720db80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=74, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 55991,
rocketjoe_jupyter_1 | 2: "hb_port": 53351,
rocketjoe_jupyter_1 | 2: "iopub_port": 43581,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "993bb3c4-313b9477e9242ed6bfc1e4fa",
rocketjoe_jupyter_1 | 2: "shell_port": 33457,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 44357,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=72)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001880 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001880 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 actor_zeta::intrusive_ptr_release(actor_zeta::ref_counted const*) /root/.conan/data/actor-zeta/1.0.0a4/cyberduckninja/stable/build/af0fbc5eb7376a4b9749db37a5c402b36d452909/source_subfolder/core/actor-zeta/detail/ref_counted.hpp:48 (rocketjoed+0x17fa033)
rocketjoe_jupyter_1 | 2: #3 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=83, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=72)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400002800 by thread T4:
rocketjoe_jupyter_1 | 2: #0 accept4 <null> (libtsan.so.0+0x392d3)
rocketjoe_jupyter_1 | 2: #1 zmq::tcp_listener_t::accept() /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/tcp_listener.cpp:205 (rocketjoed+0x1dd870f)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400002800 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=79, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x1dd8f7b)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x19b3652)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x19b3652)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x19bc590)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=83, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x392d3) in __interceptor_accept4
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _______________________ test_rocketjoe_execute_request_2 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3e4d86d8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f1e3e4f6470>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7f1e3e3fd598>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7f1e3e4f7e10>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:91:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3e4d86d8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:07.325] [__default__] [info] [pid 97 tid 97]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:07.325] [__default__] [info] [pid 97 tid 97] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-72030803-d0c6a105dc856d3632a84aff.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:07.325] [__default__] [info] [pid 97 tid 97] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:07.325] [__default__] [info] [pid 97 tid 97] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:07.352] [__default__] [info] [pid 97 tid 97] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:07.352] [__default__] [info] [pid 97 tid 97] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:07.352] [__default__] [info] [pid 97 tid 97] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-72030803-d0c6a105dc856d3632a84aff.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:07.352] [__default__] [info] [pid 97 tid 97] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:17:08.144] [__default__] [info] [pid 97 tid 97] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=97)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x563abf15cb80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=99, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=97)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x563abf15cb80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=99, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=97)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x1cd82ca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x563abf15cb80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=99, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=97)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1cd8569)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x563abf15cb80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=99, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 56661,
rocketjoe_jupyter_1 | 2: "hb_port": 37179,
rocketjoe_jupyter_1 | 2: "iopub_port": 54329,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "c9591c05-950efa535619352261b1b712",
rocketjoe_jupyter_1 | 2: "shell_port": 43619,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 43511,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=97)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000330 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000330 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:30 (rocketjoed+0x15a9a25)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=108, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=97)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400002800 by thread T4:
rocketjoe_jupyter_1 | 2: #0 accept4 <null> (libtsan.so.0+0x392d3)
rocketjoe_jupyter_1 | 2: #1 zmq::tcp_listener_t::accept() /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/tcp_listener.cpp:205 (rocketjoed+0x1dd870f)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400002800 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=104, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x1dd8f7b)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x19b3652)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x19b3652)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x19bc590)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=108, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x392d3) in __interceptor_accept4
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_complete_request_1 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3e4e3208>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f1e3e4f6470>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7f1e3e419488>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7f1e3e4ea240>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:101:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3e4e3208>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:13.964] [__default__] [info] [pid 122 tid 122]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:13.964] [__default__] [info] [pid 122 tid 122] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-52f9e74d-945482e8bc184e62eec5dacf.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:13.964] [__default__] [info] [pid 122 tid 122] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:14.074] [__default__] [info] [pid 122 tid 122] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:14.098] [__default__] [info] [pid 122 tid 122] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:14.098] [__default__] [info] [pid 122 tid 122] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:14.098] [__default__] [info] [pid 122 tid 122] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-52f9e74d-945482e8bc184e62eec5dacf.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:14.098] [__default__] [info] [pid 122 tid 122] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:18:14.689] [__default__] [info] [pid 122 tid 122] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=122)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:298 (rocketjoed+0x15a056a)
rocketjoe_jupyter_1 | 2: #3 boost::filesystem::path const& boost::program_options::variable_value::as<boost::filesystem::path>() const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/program_options/variables_map.hpp:69 (rocketjoed+0x15a056a)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:173 (rocketjoed+0x15a056a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55ee4e995b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=124, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 46629,
rocketjoe_jupyter_1 | 2: "hb_port": 47005,
rocketjoe_jupyter_1 | 2: "iopub_port": 41645,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "52a62f93-53a07f2b060e8b6d1ee82ab0",
rocketjoe_jupyter_1 | 2: "shell_port": 41643,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 44673,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=122)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002e0 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002e0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:30 (rocketjoed+0x15a9a25)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=133, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_complete_request_2 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3e52f198>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f1e3e4f6470>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7f1e3dae59d8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7f1e3e444978>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:111:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3e52f198>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:20.382] [__default__] [info] [pid 147 tid 147]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:20.382] [__default__] [info] [pid 147 tid 147] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-bd698270-6dd3fb94350aa9ba46d235b7.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:20.382] [__default__] [info] [pid 147 tid 147] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:20.382] [__default__] [info] [pid 147 tid 147] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:20.409] [__default__] [info] [pid 147 tid 147] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:20.409] [__default__] [info] [pid 147 tid 147] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:20.409] [__default__] [info] [pid 147 tid 147] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-bd698270-6dd3fb94350aa9ba46d235b7.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:20.409] [__default__] [info] [pid 147 tid 147] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:19:21.209] [__default__] [info] [pid 147 tid 147] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=147)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 unsigned short const& boost::any_cast<unsigned short const&>(boost::any const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:298 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2: #3 unsigned short const& boost::program_options::variable_value::as<unsigned short>() const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/program_options/variables_map.hpp:69 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:102 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55e14e151b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=149, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=147)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x1cd82ca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55e14e151b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=149, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=147)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1cd8569)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55e14e151b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=149, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 40499,
rocketjoe_jupyter_1 | 2: "hb_port": 34865,
rocketjoe_jupyter_1 | 2: "iopub_port": 40515,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "691ed573-02a310c3a285d93e7acca6d2",
rocketjoe_jupyter_1 | 2: "shell_port": 34863,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 54023,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=147)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001870 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001870 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 actor_zeta::intrusive_ptr_release(actor_zeta::ref_counted const*) /root/.conan/data/actor-zeta/1.0.0a4/cyberduckninja/stable/build/af0fbc5eb7376a4b9749db37a5c402b36d452909/source_subfolder/core/actor-zeta/detail/ref_counted.hpp:48 (rocketjoed+0x17fa033)
rocketjoe_jupyter_1 | 2: #3 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=158, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _____________________ test_rocketjoe_is_complete_request_1 _____________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e41a178d0>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f1e3e4f6470>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7f1e3da372f0>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7f1e41a17710>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:121:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e41a178d0>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:26.981] [__default__] [info] [pid 172 tid 172]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:26.981] [__default__] [info] [pid 172 tid 172] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-aa025f31-4cd8ea5e768624a9b89d0ddc.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:26.981] [__default__] [info] [pid 172 tid 172] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:26.981] [__default__] [info] [pid 172 tid 172] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:27.008] [__default__] [info] [pid 172 tid 172] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:27.008] [__default__] [info] [pid 172 tid 172] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:27.008] [__default__] [info] [pid 172 tid 172] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-aa025f31-4cd8ea5e768624a9b89d0ddc.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:27.008] [__default__] [info] [pid 172 tid 172] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:20:27.793] [__default__] [info] [pid 172 tid 172] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=172)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55d2c19deb80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=174, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=172)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55d2c19deb80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=174, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=172)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x1cd82ca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55d2c19deb80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=174, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=172)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1cd8569)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x55d2c19deb80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=174, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 44225,
rocketjoe_jupyter_1 | 2: "hb_port": 45957,
rocketjoe_jupyter_1 | 2: "iopub_port": 33639,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "7a7f2083-793c93df54df3d1cf72b7560",
rocketjoe_jupyter_1 | 2: "shell_port": 48451,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 46899,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=172)
rocketjoe_jupyter_1 | 2: Read of size 8 at 0x7ba0000001e0 by main thread:
rocketjoe_jupyter_1 | 2: #0 epoll_ctl <null> (libtsan.so.0+0x2f9f7)
rocketjoe_jupyter_1 | 2: #1 boost::asio::detail::epoll_reactor::epoll_reactor(boost::asio::execution_context&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/impl/epoll_reactor.ipp:61 (rocketjoed+0x16a1c79)
rocketjoe_jupyter_1 | 2: #2 boost::asio::execution_context::service* boost::asio::detail::service_registry::create<boost::asio::detail::epoll_reactor, boost::asio::execution_context>(void*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/impl/service_registry.hpp:87 (rocketjoed+0x16a1c79)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* (*)(void*), void*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/impl/service_registry.ipp:132 (rocketjoed+0x16683ec)
rocketjoe_jupyter_1 | 2: #4 boost::asio::detail::epoll_reactor& boost::asio::detail::service_registry::use_service<boost::asio::detail::epoll_reactor>() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/impl/service_registry.hpp:30 (rocketjoed+0x16a2d64)
rocketjoe_jupyter_1 | 2: #5 boost::asio::detail::epoll_reactor& boost::asio::use_service<boost::asio::detail::epoll_reactor>(boost::asio::execution_context&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/execution_context.hpp:35 (rocketjoed+0x17944b2)
rocketjoe_jupyter_1 | 2: #6 boost::asio::detail::signal_set_service::signal_set_service(boost::asio::execution_context&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/impl/signal_set_service.ipp:128 (rocketjoed+0x17944b2)
rocketjoe_jupyter_1 | 2: #7 boost::asio::execution_context::service* boost::asio::detail::service_registry::create<boost::asio::detail::signal_set_service, boost::asio::io_context>(void*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/impl/service_registry.hpp:87 (rocketjoed+0x17944b2)
rocketjoe_jupyter_1 | 2: #8 boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* (*)(void*), void*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/impl/service_registry.ipp:132 (rocketjoed+0x16683ec)
rocketjoe_jupyter_1 | 2: #9 boost::asio::detail::signal_set_service& boost::asio::detail::service_registry::use_service<boost::asio::detail::signal_set_service>(boost::asio::io_context&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/impl/service_registry.hpp:39 (rocketjoed+0x16a9812)
rocketjoe_jupyter_1 | 2: #10 boost::asio::detail::signal_set_service& boost::asio::use_service<boost::asio::detail::signal_set_service>(boost::asio::io_context&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.hpp:42 (rocketjoed+0x16a9812)
rocketjoe_jupyter_1 | 2: #11 boost::asio::detail::io_object_impl<boost::asio::detail::signal_set_service, boost::asio::executor>::io_object_impl<boost::asio::io_context>(boost::asio::io_context&, std::enable_if<std::is_convertible<boost::asio::io_context&, boost::asio::execution_context&>::value, void>::type*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/io_object_impl.hpp:86 (rocketjoed+0x16a9812)
rocketjoe_jupyter_1 | 2: #12 boost::asio::basic_signal_set<boost::asio::executor>::basic_signal_set<boost::asio::io_context>(boost::asio::io_context&, int, int, std::enable_if<std::is_convertible<boost::asio::io_context&, boost::asio::execution_context&>::value, void>::type*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/basic_signal_set.hpp:230 (rocketjoed+0x16a9812)
rocketjoe_jupyter_1 | 2: #13 main ../apps/rocketjoed/main.cpp:196 (rocketjoed+0x15a0b5c)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7ba0000001e0 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is file descriptor 30 created by thread T8 at:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=183, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f9f7) in __interceptor_epoll_ctl
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _____________________ test_rocketjoe_is_complete_request_2 _____________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3d9ea668>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f1e3e4f6470>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7f1e3db09400>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7f1e3e39a630>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:131:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7f1e3d9ea668>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:33.466] [__default__] [info] [pid 197 tid 197]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:33.466] [__default__] [info] [pid 197 tid 197] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-0a08ba37-1d61b744da387715999a9d76.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:33.467] [__default__] [info] [pid 197 tid 197] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:33.467] [__default__] [info] [pid 197 tid 197] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:33.494] [__default__] [info] [pid 197 tid 197] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:33.494] [__default__] [info] [pid 197 tid 197] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:33.494] [__default__] [info] [pid 197 tid 197] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-0a08ba37-1d61b744da387715999a9d76.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:33.494] [__default__] [info] [pid 197 tid 197] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:21:34.281] [__default__] [info] [pid 197 tid 197] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=197)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 unsigned short const& boost::any_cast<unsigned short const&>(boost::any const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:298 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2: #3 unsigned short const& boost::program_options::variable_value::as<unsigned short>() const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/program_options/variables_map.hpp:69 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:102 (rocketjoed+0x15a0285)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x564a58730b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=199, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=197)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x1cd82ca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1798ca6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x564a58730b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=199, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=197)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1cd8569)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x19bc2f3)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x15a95da)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M96):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x179dc97)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M96 (0x564a58730b80) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x17964d1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=199, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x159f519)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 55503,
rocketjoe_jupyter_1 | 2: "hb_port": 52985,
rocketjoe_jupyter_1 | 2: "iopub_port": 43233,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "18f75e13-ca26e33706ba9ccb34f46321",
rocketjoe_jupyter_1 | 2: "shell_port": 33211,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 50329,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=197)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001870 by thread T8:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::asio::detail::reactive_socket_move_accept_op<boost::asio::ip::tcp, boost::asio::strand<boost::asio::io_context::executor_type>, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >, boost::asio::detail::io_object_executor<boost::asio::executor> >::reactive_socket_move_accept_op(boost::asio::strand<boost::asio::io_context::executor_type> const&, int, unsigned char, boost::asio::ip::tcp const&, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>*, boost::beast::detail::bind_front_wrapper<void (goblin_engineer::components::http_server::listener::*)(boost::system::error_code, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>), std::shared_ptr<goblin_engineer::components::http_server::listener> >&, boost::asio::detail::io_object_executor<boost::asio::executor> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/detail/reactive_socket_accept_op.hpp:172 (rocketjoed+0x181c0e7)
rocketjoe_jupyter_1 | 2: #3 boost::asio::detail::scheduler_operation::complete(void*, boost::system::error_code const&, unsigned long) <null> (rocketjoed+0x17f8245)
rocketjoe_jupyter_1 | 2: #4 boost::asio::io_context::run() /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/asio/impl/io_context.ipp:63 (rocketjoed+0x17f9eae)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001870 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 actor_zeta::intrusive_ptr_release(actor_zeta::ref_counted const*) /root/.conan/data/actor-zeta/1.0.0a4/cyberduckninja/stable/build/af0fbc5eb7376a4b9749db37a5c402b36d452909/source_subfolder/core/actor-zeta/detail/ref_counted.hpp:48 (rocketjoed+0x17fa033)
rocketjoe_jupyter_1 | 2: #3 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T8 (tid=208, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:29 (rocketjoed+0x15a9a17)
rocketjoe_jupyter_1 | 2: #3 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x15a08e4)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: =============================== warnings summary ===============================
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/nose/importer.py:12
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
rocketjoe_jupyter_1 | 2: from imp import find_module, load_module, acquire_lock, release_lock
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:52
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:52: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: payload = List(Dict)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:59
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:59: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: traceback = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:67
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:67: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: args = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:78
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:78: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: matches = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_kernel_info_request
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:70: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_kernel_info_request(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_execute_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:80: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_execute_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:90: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_complete_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:100: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_complete_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:110: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:120: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:130: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: -- Docs: https://docs.pytest.org/en/latest/warnings.html
rocketjoe_jupyter_1 | 2:
------------------------------------------------------------------------------------------- benchmark: 7 tests ------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2: Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
rocketjoe_jupyter_1 | 2: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2: test_ipykernel_kernel_info_request 1.9172 (1.0) 3.0398 (1.0) 2.2318 (1.0) 0.1916 (1.06) 2.2231 (1.0) 0.3031 (1.80) 125;1 448.0730 (1.0) 324 1
rocketjoe_jupyter_1 | 2: test_ipykernel_is_complete_request_1 2.0113 (1.05) 4.5315 (1.49) 2.4260 (1.09) 0.1854 (1.02) 2.4283 (1.09) 0.1844 (1.10) 71;9 412.2004 (0.92) 383 1
rocketjoe_jupyter_1 | 2: test_ipykernel_is_complete_request_2 2.0194 (1.05) 4.2549 (1.40) 2.3828 (1.07) 0.1812 (1.0) 2.3648 (1.06) 0.1682 (1.0) 65;15 419.6740 (0.94) 366 1
rocketjoe_jupyter_1 | 2: test_ipykernel_execute_request_2 9.1332 (4.76) 23.2475 (7.65) 11.0938 (4.97) 1.7810 (9.83) 10.5987 (4.77) 0.5520 (3.28) 19;24 90.1405 (0.20) 181 1
rocketjoe_jupyter_1 | 2: test_ipykernel_execute_request_1 9.2501 (4.82) 16.2730 (5.35) 11.1673 (5.00) 1.5081 (8.32) 10.6921 (4.81) 0.8051 (4.79) 17;15 89.5474 (0.20) 115 1
rocketjoe_jupyter_1 | 2: test_ipykernel_complete_request_2 23.8228 (12.43) 32.0697 (10.55) 25.7170 (11.52) 3.5587 (19.64) 24.3236 (10.94) 2.3481 (13.96) 1;1 38.8848 (0.09) 5 1
rocketjoe_jupyter_1 | 2: test_ipykernel_complete_request_1 24.3144 (12.68) 25.3076 (8.33) 24.6578 (11.05) 0.4088 (2.26) 24.5386 (11.04) 0.5782 (3.44) 1;0 40.5551 (0.09) 5 1
rocketjoe_jupyter_1 | 2: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Legend:
rocketjoe_jupyter_1 | 2: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.
rocketjoe_jupyter_1 | 2: OPS: Operations Per Second, computed as 1 / Mean
rocketjoe_jupyter_1 | 2: =========================== short test summary info ============================
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_kernel_info_request - Time...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_execute_request_1 - Timeou...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_execute_request_2 - Timeou...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_complete_request_1 - Timeo...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_complete_request_2 - Timeo...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_1 - Ti...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_2 - Ti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_clear_output - ...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_completion - Ru...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_display_data - ...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_error - Runtime...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_result
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_stderr
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_stdout
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_history - Runti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_inspect - Runti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_is_complete - R...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_kernel_info - R...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_pager - Runtime...
rocketjoe_jupyter_1 | 2: ======= 7 failed, 7 passed, 12 warnings, 12 errors in 534.01s (0:08:54) ========
rocketjoe_jupyter_1 | 2/2 Test #2: test_jupyter_kernel.py ...........***Failed 534.43 sec
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 0% tests passed, 2 tests failed out of 2
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | Total Test time (real) = 534.43 sec
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | The following tests FAILED:
rocketjoe_jupyter_1 | 1 - test_storage (Not Run)
rocketjoe_jupyter_1 | 2 - test_jupyter_kernel.py (Failed)
rocketjoe_jupyter_1 | Errors while running CTest
docker_rocketjoe_jupyter_1 exited with code 8
rocketjoe_jupyter_1 | UpdateCTestConfiguration from :/app/build/DartConfiguration.tcl
rocketjoe_jupyter_1 | UpdateCTestConfiguration from :/app/build/DartConfiguration.tcl
rocketjoe_jupyter_1 | Test project /app/build
rocketjoe_jupyter_1 | Constructing a list of tests
rocketjoe_jupyter_1 | Done constructing a list of tests
rocketjoe_jupyter_1 | Updating test list for fixtures
rocketjoe_jupyter_1 | Added 0 tests to meet fixture requirements
rocketjoe_jupyter_1 | Checking test dependency graph...
rocketjoe_jupyter_1 | Checking test dependency graph end
rocketjoe_jupyter_1 | test 1
rocketjoe_jupyter_1 | Start 1: test_storage
rocketjoe_jupyter_1 | Could not find executable test_storage
rocketjoe_jupyter_1 | Looked in the following places:
rocketjoe_jupyter_1 | test_storage
rocketjoe_jupyter_1 | test_storage
rocketjoe_jupyter_1 | Release/test_storage
rocketjoe_jupyter_1 | Release/test_storage
rocketjoe_jupyter_1 | Debug/test_storage
rocketjoe_jupyter_1 | Debug/test_storage
rocketjoe_jupyter_1 | MinSizeRel/test_storage
rocketjoe_jupyter_1 | MinSizeRel/test_storage
rocketjoe_jupyter_1 | RelWithDebInfo/test_storage
rocketjoe_jupyter_1 | RelWithDebInfo/test_storage
rocketjoe_jupyter_1 | Deployment/test_storage
rocketjoe_jupyter_1 | Deployment/test_storage
rocketjoe_jupyter_1 | Development/test_storage
rocketjoe_jupyter_1 | Development/test_storage
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 1: Test command:
rocketjoe_jupyter_1 | Unable to find executable: test_storage
rocketjoe_jupyter_1 | 1/2 Test #1: test_storage .....................***Not Run 0.00 sec
rocketjoe_jupyter_1 | test 2
rocketjoe_jupyter_1 | Start 2: test_jupyter_kernel.py
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 2: Test command: /usr/local/bin/pytest "/app/build/apps/rocketjoed/test/test_jupyter_kernel.py"
rocketjoe_jupyter_1 | 2: Environment variables:
rocketjoe_jupyter_1 | 2: JUPYTER_PATH=$JUPYTER_PATH:/app/build
rocketjoe_jupyter_1 | 2: Test timeout computed to be: 10000000
rocketjoe_jupyter_1 | 2: ============================= test session starts ==============================
rocketjoe_jupyter_1 | 2: platform linux -- Python 3.7.3, pytest-5.4.2, py-1.8.2, pluggy-0.13.1
rocketjoe_jupyter_1 | 2: benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rocketjoe_jupyter_1 | 2: rootdir: /app/build/apps/rocketjoed
rocketjoe_jupyter_1 | 2: plugins: benchmark-3.2.3, xprocess-0.13.1
rocketjoe_jupyter_1 | 2: collected 26 items
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py EEEEEEEEEEEE.F.F.F.F.F.F.F [100%]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: ==================================== ERRORS ====================================
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_clear_output ___________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ---------------------------- Captured stdout setup -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:37.515] [__default__] [info] [pid 14 tid 14]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:37.515] [__default__] [info] [pid 14 tid 14] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /tmp/tmpumxz1_sc.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:37.515] [__default__] [info] [pid 14 tid 14] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:37.515] [__default__] [info] [pid 14 tid 14] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:37.551] [__default__] [info] [pid 14 tid 14] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:37.551] [__default__] [info] [pid 14 tid 14] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:37.551] [__default__] [info] [pid 14 tid 14] jupyter connection path : /tmp/tmpumxz1_sc.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:37.551] [__default__] [info] [pid 14 tid 14] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:49:39.037] [__default__] [info] [pid 14 tid 14] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ---------------------------- Captured stderr setup -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x5643fcc214e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x16742fa)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x5643fcc214e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x5643fcc214e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1674599)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x5643fcc214e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 58103,
rocketjoe_jupyter_1 | 2: "hb_port": 35683,
rocketjoe_jupyter_1 | 2: "iopub_port": 34123,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "kernel_name": "rocketjoe",
rocketjoe_jupyter_1 | 2: "key": "68ddfdd2-50ce0bc6283f4e8fbd412b7d",
rocketjoe_jupyter_1 | 2: "shell_port": 35891,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 48349,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ____________ ERROR at setup of RocketJoePythonTests.test_completion ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_display_data ___________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ______________ ERROR at setup of RocketJoePythonTests.test_error _______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_result __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_stderr __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_stdout __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: _____________ ERROR at setup of RocketJoePythonTests.test_history ______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: _____________ ERROR at setup of RocketJoePythonTests.test_inspect ______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_is_complete ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_kernel_info ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ______________ ERROR at setup of RocketJoePythonTests.test_pager _______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fdb68590ac8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: =================================== FAILURES ===================================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_kernel_info_request ______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65b2b198>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fdb65bd4d30>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fdb65bded90>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fdb65ba8b38>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_kernel_info_request(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:71:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65b2b198>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:44.780] [__default__] [info] [pid 46 tid 46]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:44.781] [__default__] [info] [pid 46 tid 46] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-fea52529-71c00ce8c786501f86cf321a.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:44.781] [__default__] [info] [pid 46 tid 46] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:44.781] [__default__] [info] [pid 46 tid 46] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:44.808] [__default__] [info] [pid 46 tid 46] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:44.808] [__default__] [info] [pid 46 tid 46] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:44.808] [__default__] [info] [pid 46 tid 46] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-fea52529-71c00ce8c786501f86cf321a.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:44.808] [__default__] [info] [pid 46 tid 46] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:50:45.574] [__default__] [info] [pid 46 tid 46] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=46)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x56039cb744e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=48, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=46)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x56039cb744e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=48, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=46)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x16742fa)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x56039cb744e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=48, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=46)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1674599)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x56039cb744e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=48, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 53195,
rocketjoe_jupyter_1 | 2: "hb_port": 48969,
rocketjoe_jupyter_1 | 2: "iopub_port": 43353,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "68373fed-ccfe1efbb53bb374e4f7ffdb",
rocketjoe_jupyter_1 | 2: "shell_port": 59639,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 58019,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: _______________________ test_rocketjoe_execute_request_1 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65b26668>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fdb65bd4d30>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fdb651e3bf8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fdb65c88c18>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:81:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65b26668>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:51.840] [__default__] [info] [pid 70 tid 70]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:51.840] [__default__] [info] [pid 70 tid 70] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-f6454796-d06ada88ccc8e09cc15af2b9.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:51.840] [__default__] [info] [pid 70 tid 70] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:51.840] [__default__] [info] [pid 70 tid 70] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:51.867] [__default__] [info] [pid 70 tid 70] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:51.867] [__default__] [info] [pid 70 tid 70] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:51.867] [__default__] [info] [pid 70 tid 70] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-f6454796-d06ada88ccc8e09cc15af2b9.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:51.867] [__default__] [info] [pid 70 tid 70] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:51:52.646] [__default__] [info] [pid 70 tid 70] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=70)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 unsigned short const& boost::any_cast<unsigned short const&>(boost::any const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:298 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2: #3 unsigned short const& boost::program_options::variable_value::as<unsigned short>() const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/program_options/variables_map.hpp:69 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:102 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x563aa31204e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=72, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=70)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x16742fa)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x563aa31204e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=72, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=70)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1674599)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x563aa31204e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=72, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 54053,
rocketjoe_jupyter_1 | 2: "hb_port": 44807,
rocketjoe_jupyter_1 | 2: "iopub_port": 35987,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "af59aaee-8a9e38fe156091d1f7e14ad5",
rocketjoe_jupyter_1 | 2: "shell_port": 36409,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 60741,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=70)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001890 by thread T4:
rocketjoe_jupyter_1 | 2: #0 accept4 <null> (libtsan.so.0+0x392d3)
rocketjoe_jupyter_1 | 2: #1 zmq::tcp_listener_t::accept() /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/tcp_listener.cpp:205 (rocketjoed+0x1774b23)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001890 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:196 (rocketjoed+0x10977fc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=77, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x177538f)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x134f682)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x134f682)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x13585c0)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x392d3) in __interceptor_accept4
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _______________________ test_rocketjoe_execute_request_2 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65c82860>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fdb65bd4d30>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fdb65bde400>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fdb65b705f8>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:91:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65c82860>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:52:59.561] [__default__] [info] [pid 94 tid 94]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:52:59.561] [__default__] [info] [pid 94 tid 94] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-c30609c3-22488d543051247762aefd70.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:52:59.561] [__default__] [info] [pid 94 tid 94] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:52:59.561] [__default__] [info] [pid 94 tid 94] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:52:59.588] [__default__] [info] [pid 94 tid 94] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:52:59.589] [__default__] [info] [pid 94 tid 94] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:52:59.589] [__default__] [info] [pid 94 tid 94] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-c30609c3-22488d543051247762aefd70.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:52:59.589] [__default__] [info] [pid 94 tid 94] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:53:00.406] [__default__] [info] [pid 94 tid 94] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=94)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 unsigned short const& boost::any_cast<unsigned short const&>(boost::any const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:298 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2: #3 unsigned short const& boost::program_options::variable_value::as<unsigned short>() const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/program_options/variables_map.hpp:69 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:102 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x563597c784e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=96, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=94)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x16742fa)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x563597c784e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=96, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=94)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1674599)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x563597c784e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=96, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 55021,
rocketjoe_jupyter_1 | 2: "hb_port": 35513,
rocketjoe_jupyter_1 | 2: "iopub_port": 41115,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "98bd8481-9565d9e4ce66d671a5c58c0a",
rocketjoe_jupyter_1 | 2: "shell_port": 41009,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 52265,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=94)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001890 by thread T4:
rocketjoe_jupyter_1 | 2: #0 accept4 <null> (libtsan.so.0+0x392d3)
rocketjoe_jupyter_1 | 2: #1 zmq::tcp_listener_t::accept() /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/tcp_listener.cpp:205 (rocketjoed+0x1774b23)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001890 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:196 (rocketjoed+0x10977fc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=101, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x177538f)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x134f682)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x134f682)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x13585c0)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x392d3) in __interceptor_accept4
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_complete_request_1 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb68515e80>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fdb65bd4d30>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fdb65b866a8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fdb65b48ba8>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:101:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb68515e80>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.154] [__default__] [info] [pid 118 tid 118]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.154] [__default__] [info] [pid 118 tid 118] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-2658bd76-3c776217dbd07ec330ff9451.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.154] [__default__] [info] [pid 118 tid 118] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.154] [__default__] [info] [pid 118 tid 118] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.181] [__default__] [info] [pid 118 tid 118] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.181] [__default__] [info] [pid 118 tid 118] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.181] [__default__] [info] [pid 118 tid 118] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-2658bd76-3c776217dbd07ec330ff9451.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.181] [__default__] [info] [pid 118 tid 118] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:54:06.952] [__default__] [info] [pid 118 tid 118] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=118)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x557833e974e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=120, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=118)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x557833e974e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=120, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=118)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x16742fa)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x557833e974e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=120, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=118)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1674599)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x557833e974e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=120, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 52809,
rocketjoe_jupyter_1 | 2: "hb_port": 53219,
rocketjoe_jupyter_1 | 2: "iopub_port": 54103,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "428858a5-23deef3e2b8669249ff026aa",
rocketjoe_jupyter_1 | 2: "shell_port": 36731,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 57425,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_complete_request_2 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65bbc080>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fdb65bd4d30>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fdb65274c80>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fdb65ba85c0>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:111:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65bbc080>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:12.696] [__default__] [info] [pid 142 tid 142]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:12.696] [__default__] [info] [pid 142 tid 142] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-be526179-819f10934b26d0c65ef02695.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:12.696] [__default__] [info] [pid 142 tid 142] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:12.696] [__default__] [info] [pid 142 tid 142] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:12.723] [__default__] [info] [pid 142 tid 142] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:12.723] [__default__] [info] [pid 142 tid 142] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:12.723] [__default__] [info] [pid 142 tid 142] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-be526179-819f10934b26d0c65ef02695.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:12.723] [__default__] [info] [pid 142 tid 142] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:55:13.507] [__default__] [info] [pid 142 tid 142] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=142)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 unsigned short const& boost::any_cast<unsigned short const&>(boost::any const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:298 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2: #3 unsigned short const& boost::program_options::variable_value::as<unsigned short>() const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/program_options/variables_map.hpp:69 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:102 (rocketjoed+0x1096f25)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x562cf76fe4e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=144, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=142)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x16742fa)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x562cf76fe4e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=144, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=142)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1674599)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x562cf76fe4e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=144, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 34371,
rocketjoe_jupyter_1 | 2: "hb_port": 51707,
rocketjoe_jupyter_1 | 2: "iopub_port": 47967,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "c62738aa-3e1d0f7cd76d52c4f5566ef1",
rocketjoe_jupyter_1 | 2: "shell_port": 53405,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 54633,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: _____________________ test_rocketjoe_is_complete_request_1 _____________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65b13eb8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fdb65bd4d30>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fdb65131268>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fdb6527d940>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:121:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65b13eb8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:19.295] [__default__] [info] [pid 166 tid 166]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:19.295] [__default__] [info] [pid 166 tid 166] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-88b06bf0-d92637e6090042995e044aa6.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:19.296] [__default__] [info] [pid 166 tid 166] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:19.296] [__default__] [info] [pid 166 tid 166] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:19.323] [__default__] [info] [pid 166 tid 166] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:19.323] [__default__] [info] [pid 166 tid 166] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:19.323] [__default__] [info] [pid 166 tid 166] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-88b06bf0-d92637e6090042995e044aa6.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:19.323] [__default__] [info] [pid 166 tid 166] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:56:20.091] [__default__] [info] [pid 166 tid 166] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=166)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x55a817fd54e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=168, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=166)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x55a817fd54e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=168, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=166)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x16742fa)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x55a817fd54e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=168, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=166)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1674599)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x55a817fd54e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=168, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 40639,
rocketjoe_jupyter_1 | 2: "hb_port": 52059,
rocketjoe_jupyter_1 | 2: "iopub_port": 55509,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "fc0efecc-5726548ca3c59fe4fb0b71d3",
rocketjoe_jupyter_1 | 2: "shell_port": 33963,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 35917,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=166)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000018a0 by thread T4:
rocketjoe_jupyter_1 | 2: #0 accept4 <null> (libtsan.so.0+0x392d3)
rocketjoe_jupyter_1 | 2: #1 zmq::tcp_listener_t::accept() /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/tcp_listener.cpp:205 (rocketjoed+0x1774b23)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000018a0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:196 (rocketjoed+0x10977fc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=173, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x177538f)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x134f682)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x134f682)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x13585c0)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x392d3) in __interceptor_accept4
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _____________________ test_rocketjoe_is_complete_request_2 _____________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65b26b38>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fdb65bd4d30>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fdb651a6f28>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fdb65b262b0>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:131:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fdb65b26b38>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:25.601] [__default__] [info] [pid 190 tid 190]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:25.601] [__default__] [info] [pid 190 tid 190] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-8bb4c89e-042648e6d58f3680e27b710c.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:25.602] [__default__] [info] [pid 190 tid 190] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:25.602] [__default__] [info] [pid 190 tid 190] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:25.635] [__default__] [info] [pid 190 tid 190] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:25.635] [__default__] [info] [pid 190 tid 190] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:25.635] [__default__] [info] [pid 190 tid 190] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-8bb4c89e-042648e6d58f3680e27b710c.json
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:25.635] [__default__] [info] [pid 190 tid 190] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 12:57:26.593] [__default__] [info] [pid 190 tid 190] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=190)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 __libc_start_main <null> (libc.so.6+0x2409a)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x55e088cf14e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=192, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=190)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: [failed to restore the stack]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x55e088cf14e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=192, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=190)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x16742fa)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0x1227bb6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x55e088cf14e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=192, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=190)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x1674599)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:293 (rocketjoed+0x1358323)
rocketjoe_jupyter_1 | 2: #4 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1 (mutexes: write M87):
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::fmt_helper::pad2(int, fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >&) <null> (rocketjoed+0x122cba7)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M87 (0x55e088cf14e0) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0x12253e1)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=192, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:63 (rocketjoed+0x10961b9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 42907,
rocketjoe_jupyter_1 | 2: "hb_port": 47877,
rocketjoe_jupyter_1 | 2: "iopub_port": 32819,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "f6c2bb9d-2d3d76476aa2347297c8abc6",
rocketjoe_jupyter_1 | 2: "shell_port": 35151,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 45917,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=190)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000018a0 by thread T4:
rocketjoe_jupyter_1 | 2: #0 accept4 <null> (libtsan.so.0+0x392d3)
rocketjoe_jupyter_1 | 2: #1 zmq::tcp_listener_t::accept() /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/tcp_listener.cpp:205 (rocketjoed+0x1774b23)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000018a0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:196 (rocketjoed+0x10977fc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=197, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x177538f)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x134f682)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x134f682)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x13585c0)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0x109da91)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0x1097584)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x392d3) in __interceptor_accept4
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: =============================== warnings summary ===============================
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/nose/importer.py:12
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
rocketjoe_jupyter_1 | 2: from imp import find_module, load_module, acquire_lock, release_lock
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:52
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:52: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: payload = List(Dict)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:59
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:59: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: traceback = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:67
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:67: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: args = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:78
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:78: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: matches = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_kernel_info_request
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:70: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_kernel_info_request(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_execute_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:80: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_execute_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:90: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_complete_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:100: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_complete_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:110: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:120: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:130: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: -- Docs: https://docs.pytest.org/en/latest/warnings.html
rocketjoe_jupyter_1 | 2:
------------------------------------------------------------------------------------------- benchmark: 7 tests ------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2: Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
rocketjoe_jupyter_1 | 2: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2: test_ipykernel_kernel_info_request 1.8482 (1.0) 2.8633 (1.0) 2.2950 (1.0) 0.1586 (1.0) 2.3027 (1.0) 0.1957 (1.0) 101;5 435.7362 (1.0) 326 1
rocketjoe_jupyter_1 | 2: test_ipykernel_is_complete_request_1 2.0776 (1.12) 3.0760 (1.07) 2.4238 (1.06) 0.1643 (1.04) 2.4138 (1.05) 0.2407 (1.23) 121;1 412.5739 (0.95) 368 1
rocketjoe_jupyter_1 | 2: test_ipykernel_is_complete_request_2 2.2280 (1.21) 7.7826 (2.72) 3.3607 (1.46) 1.0344 (6.52) 2.9738 (1.29) 0.9959 (5.09) 24;12 297.5594 (0.68) 151 1
rocketjoe_jupyter_1 | 2: test_ipykernel_execute_request_2 9.0775 (4.91) 17.8349 (6.23) 11.7454 (5.12) 1.6881 (10.64) 11.2497 (4.89) 1.6431 (8.40) 39;15 85.1400 (0.20) 169 1
rocketjoe_jupyter_1 | 2: test_ipykernel_execute_request_1 9.5362 (5.16) 18.5313 (6.47) 11.2207 (4.89) 1.6835 (10.61) 10.6437 (4.62) 0.8589 (4.39) 15;16 89.1213 (0.20) 118 1
rocketjoe_jupyter_1 | 2: test_ipykernel_complete_request_1 24.1354 (13.06) 25.1747 (8.79) 24.5197 (10.68) 0.4218 (2.66) 24.3302 (10.57) 0.5882 (3.01) 1;0 40.7835 (0.09) 5 1
rocketjoe_jupyter_1 | 2: test_ipykernel_complete_request_2 24.3888 (13.20) 32.1657 (11.23) 28.1817 (12.28) 3.3845 (21.33) 28.9632 (12.58) 5.9798 (30.55) 2;0 35.4841 (0.08) 5 1
rocketjoe_jupyter_1 | 2: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Legend:
rocketjoe_jupyter_1 | 2: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.
rocketjoe_jupyter_1 | 2: OPS: Operations Per Second, computed as 1 / Mean
rocketjoe_jupyter_1 | 2: =========================== short test summary info ============================
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_kernel_info_request - Time...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_execute_request_1 - Timeou...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_execute_request_2 - Timeou...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_complete_request_1 - Timeo...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_complete_request_2 - Timeo...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_1 - Ti...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_2 - Ti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_clear_output - ...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_completion - Ru...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_display_data - ...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_error - Runtime...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_result
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_stderr
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_stdout
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_history - Runti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_inspect - Runti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_is_complete - R...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_kernel_info - R...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_pager - Runtime...
rocketjoe_jupyter_1 | 2: ======= 7 failed, 7 passed, 12 warnings, 12 errors in 534.22s (0:08:54) ========
rocketjoe_jupyter_1 | 2/2 Test #2: test_jupyter_kernel.py ...........***Failed 534.69 sec
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 0% tests passed, 2 tests failed out of 2
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | Total Test time (real) = 534.69 sec
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | The following tests FAILED:
rocketjoe_jupyter_1 | 1 - test_storage (Not Run)
rocketjoe_jupyter_1 | 2 - test_jupyter_kernel.py (Failed)
rocketjoe_jupyter_1 | Errors while running CTest
docker_rocketjoe_jupyter_1 exited with code 8
rocketjoe_jupyter_1 | UpdateCTestConfiguration from :/app/build/DartConfiguration.tcl
rocketjoe_jupyter_1 | UpdateCTestConfiguration from :/app/build/DartConfiguration.tcl
rocketjoe_jupyter_1 | Test project /app/build
rocketjoe_jupyter_1 | Constructing a list of tests
rocketjoe_jupyter_1 | Done constructing a list of tests
rocketjoe_jupyter_1 | Updating test list for fixtures
rocketjoe_jupyter_1 | Added 0 tests to meet fixture requirements
rocketjoe_jupyter_1 | Checking test dependency graph...
rocketjoe_jupyter_1 | Checking test dependency graph end
rocketjoe_jupyter_1 | test 1
rocketjoe_jupyter_1 | Start 1: test_storage
rocketjoe_jupyter_1 | Could not find executable test_storage
rocketjoe_jupyter_1 | Looked in the following places:
rocketjoe_jupyter_1 | test_storage
rocketjoe_jupyter_1 | test_storage
rocketjoe_jupyter_1 | Release/test_storage
rocketjoe_jupyter_1 | Release/test_storage
rocketjoe_jupyter_1 | Debug/test_storage
rocketjoe_jupyter_1 | Debug/test_storage
rocketjoe_jupyter_1 | MinSizeRel/test_storage
rocketjoe_jupyter_1 | MinSizeRel/test_storage
rocketjoe_jupyter_1 | RelWithDebInfo/test_storage
rocketjoe_jupyter_1 | RelWithDebInfo/test_storage
rocketjoe_jupyter_1 | Deployment/test_storage
rocketjoe_jupyter_1 | Deployment/test_storage
rocketjoe_jupyter_1 | Development/test_storage
rocketjoe_jupyter_1 | Development/test_storage
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 1: Test command:
rocketjoe_jupyter_1 | Unable to find executable: test_storage
rocketjoe_jupyter_1 | 1/2 Test #1: test_storage .....................***Not Run 0.00 sec
rocketjoe_jupyter_1 | test 2
rocketjoe_jupyter_1 | Start 2: test_jupyter_kernel.py
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 2: Test command: /usr/local/bin/pytest "/app/build/apps/rocketjoed/test/test_jupyter_kernel.py"
rocketjoe_jupyter_1 | 2: Environment variables:
rocketjoe_jupyter_1 | 2: JUPYTER_PATH=$JUPYTER_PATH:/app/build
rocketjoe_jupyter_1 | 2: Test timeout computed to be: 10000000
rocketjoe_jupyter_1 | 2: ============================= test session starts ==============================
rocketjoe_jupyter_1 | 2: platform linux -- Python 3.7.3, pytest-5.4.2, py-1.8.2, pluggy-0.13.1
rocketjoe_jupyter_1 | 2: benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rocketjoe_jupyter_1 | 2: rootdir: /app/build/apps/rocketjoed
rocketjoe_jupyter_1 | 2: plugins: benchmark-3.2.3, xprocess-0.13.1
rocketjoe_jupyter_1 | 2: collected 26 items
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py EEEEEEEEEEEE.F.F.F.F.F.F.F [100%]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: ==================================== ERRORS ====================================
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_clear_output ___________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ---------------------------- Captured stdout setup -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:32.384] [__default__] [info] [pid 15 tid 15]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:32.384] [__default__] [info] [pid 15 tid 15] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /tmp/tmpx05yi1lo.json
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:32.384] [__default__] [info] [pid 15 tid 15] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:32.384] [__default__] [info] [pid 15 tid 15] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:32.410] [__default__] [info] [pid 15 tid 15] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:32.410] [__default__] [info] [pid 15 tid 15] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:32.410] [__default__] [info] [pid 15 tid 15] jupyter connection path : /tmp/tmpx05yi1lo.json
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:32.410] [__default__] [info] [pid 15 tid 15] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 13:58:33.059] [__default__] [info] [pid 15 tid 15] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ---------------------------- Captured stderr setup -----------------------------
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 56541,
rocketjoe_jupyter_1 | 2: "hb_port": 41781,
rocketjoe_jupyter_1 | 2: "iopub_port": 55349,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "kernel_name": "rocketjoe",
rocketjoe_jupyter_1 | 2: "key": "2acecb77-6a893ed97a045ee66f49f29d",
rocketjoe_jupyter_1 | 2: "shell_port": 43017,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 52829,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ____________ ERROR at setup of RocketJoePythonTests.test_completion ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_display_data ___________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ______________ ERROR at setup of RocketJoePythonTests.test_error _______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_result __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_stderr __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_stdout __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: _____________ ERROR at setup of RocketJoePythonTests.test_history ______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: _____________ ERROR at setup of RocketJoePythonTests.test_inspect ______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_is_complete ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_kernel_info ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ______________ ERROR at setup of RocketJoePythonTests.test_pager _______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fbdf36350b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: =================================== FAILURES ===================================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_kernel_info_request ______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf047f828>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fbdf053ad68>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fbdf058a730>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fbdf04d60f0>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_kernel_info_request(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:71:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf047f828>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:39.662] [__default__] [info] [pid 47 tid 47]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:39.662] [__default__] [info] [pid 47 tid 47] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-23be001f-7feff63c5340e6cd8eacc650.json
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:39.662] [__default__] [info] [pid 47 tid 47] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:39.663] [__default__] [info] [pid 47 tid 47] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:39.686] [__default__] [info] [pid 47 tid 47] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:39.686] [__default__] [info] [pid 47 tid 47] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:39.686] [__default__] [info] [pid 47 tid 47] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-23be001f-7feff63c5340e6cd8eacc650.json
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:39.686] [__default__] [info] [pid 47 tid 47] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 13:59:40.279] [__default__] [info] [pid 47 tid 47] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 44941,
rocketjoe_jupyter_1 | 2: "hb_port": 51459,
rocketjoe_jupyter_1 | 2: "iopub_port": 47503,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "c412a725-aab943dfaf54da41d39e404e",
rocketjoe_jupyter_1 | 2: "shell_port": 41867,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 40109,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=47)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001800 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::locale::basic_format<char>::write(std::ostream&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:270 (rocketjoed+0x1186b4e)
rocketjoe_jupyter_1 | 2: #3 boost::locale::basic_format<char>::str[abi:cxx11](std::locale const&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:255 (rocketjoed+0x1171bd7)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::detail::jupyter::session::construct_message(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) ../components/python_sandbox/source/detail/jupyter/session.cpp:454 (rocketjoed+0x1223b34)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x11388c9)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x1134261)
rocketjoe_jupyter_1 | 2: #7 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x117b143)
rocketjoe_jupyter_1 | 2: #8 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x1152c0b)
rocketjoe_jupyter_1 | 2: #9 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:136 (rocketjoed+0x103c6e5)
rocketjoe_jupyter_1 | 2: #10 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #11 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001800 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xfc7988)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=54, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x13913ef)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x106c1e3)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x103bbb3)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _______________________ test_rocketjoe_execute_request_1 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf0555358>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fbdf053ad68>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fbdf03fcae8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fbdf058e6a0>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:81:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf0555358>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:46.709] [__default__] [info] [pid 71 tid 71]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:46.709] [__default__] [info] [pid 71 tid 71] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-85df2bf3-708a94a93ef5372cfbc7c1b7.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:46.709] [__default__] [info] [pid 71 tid 71] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:46.710] [__default__] [info] [pid 71 tid 71] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:46.733] [__default__] [info] [pid 71 tid 71] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:46.733] [__default__] [info] [pid 71 tid 71] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:46.733] [__default__] [info] [pid 71 tid 71] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-85df2bf3-708a94a93ef5372cfbc7c1b7.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:46.733] [__default__] [info] [pid 71 tid 71] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 14:00:47.324] [__default__] [info] [pid 71 tid 71] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 44661,
rocketjoe_jupyter_1 | 2: "hb_port": 55997,
rocketjoe_jupyter_1 | 2: "iopub_port": 34351,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "1afb49f0-703fc4b017f3df26dee0a971",
rocketjoe_jupyter_1 | 2: "shell_port": 58969,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 42483,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=71)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001800 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::locale::basic_format<char>::write(std::ostream&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:270 (rocketjoed+0x1186b4e)
rocketjoe_jupyter_1 | 2: #3 boost::locale::basic_format<char>::str[abi:cxx11](std::locale const&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:255 (rocketjoed+0x1171bd7)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::detail::jupyter::session::construct_message(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) ../components/python_sandbox/source/detail/jupyter/session.cpp:454 (rocketjoed+0x1223b34)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x11388c9)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x1134261)
rocketjoe_jupyter_1 | 2: #7 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x117b143)
rocketjoe_jupyter_1 | 2: #8 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x1152c0b)
rocketjoe_jupyter_1 | 2: #9 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:136 (rocketjoed+0x103c6e5)
rocketjoe_jupyter_1 | 2: #10 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #11 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001800 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xfc7988)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=78, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x13913ef)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x106c1e3)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x103bbb3)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _______________________ test_rocketjoe_execute_request_2 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf052b908>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fbdf053ad68>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fbdf0473620>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fbdf048db70>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:91:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf052b908>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:54.481] [__default__] [info] [pid 95 tid 95]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:54.481] [__default__] [info] [pid 95 tid 95] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-c4f9daf6-f753cc0314bc7a30eb17f87e.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:54.481] [__default__] [info] [pid 95 tid 95] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:54.481] [__default__] [info] [pid 95 tid 95] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:54.505] [__default__] [info] [pid 95 tid 95] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:54.505] [__default__] [info] [pid 95 tid 95] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:54.505] [__default__] [info] [pid 95 tid 95] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-c4f9daf6-f753cc0314bc7a30eb17f87e.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:54.505] [__default__] [info] [pid 95 tid 95] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 14:01:55.094] [__default__] [info] [pid 95 tid 95] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 52447,
rocketjoe_jupyter_1 | 2: "hb_port": 55897,
rocketjoe_jupyter_1 | 2: "iopub_port": 42141,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "f166f998-829bf0dd067b7bd1bf00079c",
rocketjoe_jupyter_1 | 2: "shell_port": 41665,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 59919,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=95)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001800 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::locale::basic_format<char>::write(std::ostream&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:270 (rocketjoed+0x1186b4e)
rocketjoe_jupyter_1 | 2: #3 boost::locale::basic_format<char>::str[abi:cxx11](std::locale const&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:255 (rocketjoed+0x1171bd7)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::detail::jupyter::session::construct_message(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) ../components/python_sandbox/source/detail/jupyter/session.cpp:454 (rocketjoed+0x1223b34)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x11388c9)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x1134261)
rocketjoe_jupyter_1 | 2: #7 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x117b143)
rocketjoe_jupyter_1 | 2: #8 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x1152c0b)
rocketjoe_jupyter_1 | 2: #9 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:136 (rocketjoed+0x103c6e5)
rocketjoe_jupyter_1 | 2: #10 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #11 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001800 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xfc7988)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=102, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x13913ef)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x106c1e3)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x103bbb3)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_complete_request_1 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf2e24780>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fbdf053ad68>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fbdf05986a8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fbdf03e7a20>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:101:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf2e24780>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.164] [__default__] [info] [pid 119 tid 119]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.164] [__default__] [info] [pid 119 tid 119] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-d7e35f1f-9ebd59279d5a31a214895d75.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.164] [__default__] [info] [pid 119 tid 119] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.164] [__default__] [info] [pid 119 tid 119] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.188] [__default__] [info] [pid 119 tid 119] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.188] [__default__] [info] [pid 119 tid 119] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.188] [__default__] [info] [pid 119 tid 119] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-d7e35f1f-9ebd59279d5a31a214895d75.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.188] [__default__] [info] [pid 119 tid 119] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 14:03:01.789] [__default__] [info] [pid 119 tid 119] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 53999,
rocketjoe_jupyter_1 | 2: "hb_port": 40385,
rocketjoe_jupyter_1 | 2: "iopub_port": 53967,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "26ee9c3e-9fd627cfebecd0d10750d228",
rocketjoe_jupyter_1 | 2: "shell_port": 54013,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 36359,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=119)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001000 by main thread:
rocketjoe_jupyter_1 | 2: #0 fopen <null> (libtsan.so.0+0x459fe)
rocketjoe_jupyter_1 | 2: #1 internal_setent nss_files/files-XXX.c:77 (libnss_files.so.2+0x67c2)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x11388c9)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x1134261)
rocketjoe_jupyter_1 | 2: #4 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x117b143)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x1152c0b)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:136 (rocketjoed+0x103c6e5)
rocketjoe_jupyter_1 | 2: #7 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #8 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #9 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001000 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xfc7988)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=126, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x13913ef)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x106c1e3)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x103bbb3)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x459fe) in __interceptor_fopen
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_complete_request_2 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf047f0b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fbdf053ad68>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fbdf038ba60>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fbdf0392940>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:111:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf047f0b8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:07.493] [__default__] [info] [pid 143 tid 143]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:07.493] [__default__] [info] [pid 143 tid 143] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-4279957f-557474592a3a7f7c52a53fe4.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:07.493] [__default__] [info] [pid 143 tid 143] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:07.493] [__default__] [info] [pid 143 tid 143] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:07.517] [__default__] [info] [pid 143 tid 143] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:07.517] [__default__] [info] [pid 143 tid 143] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:07.517] [__default__] [info] [pid 143 tid 143] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-4279957f-557474592a3a7f7c52a53fe4.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:07.517] [__default__] [info] [pid 143 tid 143] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 14:04:08.125] [__default__] [info] [pid 143 tid 143] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 60519,
rocketjoe_jupyter_1 | 2: "hb_port": 44649,
rocketjoe_jupyter_1 | 2: "iopub_port": 43759,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "0b9eafaf-895c1c15ba4424b7251096dc",
rocketjoe_jupyter_1 | 2: "shell_port": 49889,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 49187,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=143)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001000 by main thread:
rocketjoe_jupyter_1 | 2: #0 fopen <null> (libtsan.so.0+0x459fe)
rocketjoe_jupyter_1 | 2: #1 internal_setent nss_files/files-XXX.c:77 (libnss_files.so.2+0x67c2)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x11388c9)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x1134261)
rocketjoe_jupyter_1 | 2: #4 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x117b143)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x1152c0b)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:136 (rocketjoed+0x103c6e5)
rocketjoe_jupyter_1 | 2: #7 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #8 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #9 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001000 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xfc7988)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=150, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x13913ef)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x106c1e3)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x103bbb3)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x459fe) in __interceptor_fopen
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _____________________ test_rocketjoe_is_complete_request_1 _____________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf04cc588>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fbdf053ad68>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fbdf01e9d90>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fbdf02c3e48>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:121:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf04cc588>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.205] [__default__] [info] [pid 167 tid 167]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.205] [__default__] [info] [pid 167 tid 167] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-6fac0059-4eedd3bba62fd357d8d0d4cf.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.206] [__default__] [info] [pid 167 tid 167] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.206] [__default__] [info] [pid 167 tid 167] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.229] [__default__] [info] [pid 167 tid 167] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.229] [__default__] [info] [pid 167 tid 167] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.229] [__default__] [info] [pid 167 tid 167] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-6fac0059-4eedd3bba62fd357d8d0d4cf.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.229] [__default__] [info] [pid 167 tid 167] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 14:05:14.844] [__default__] [info] [pid 167 tid 167] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 34693,
rocketjoe_jupyter_1 | 2: "hb_port": 35215,
rocketjoe_jupyter_1 | 2: "iopub_port": 57061,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "bf32fd93-6b04904d0abdc0537013e620",
rocketjoe_jupyter_1 | 2: "shell_port": 40375,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 32955,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=167)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001800 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::locale::basic_format<char>::write(std::ostream&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:270 (rocketjoed+0x1186b4e)
rocketjoe_jupyter_1 | 2: #3 boost::locale::basic_format<char>::str[abi:cxx11](std::locale const&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:255 (rocketjoed+0x1171bd7)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::detail::jupyter::session::construct_message(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) ../components/python_sandbox/source/detail/jupyter/session.cpp:454 (rocketjoed+0x1223b34)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x11388c9)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x1134261)
rocketjoe_jupyter_1 | 2: #7 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x117b143)
rocketjoe_jupyter_1 | 2: #8 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x1152c0b)
rocketjoe_jupyter_1 | 2: #9 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:136 (rocketjoed+0x103c6e5)
rocketjoe_jupyter_1 | 2: #10 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #11 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001800 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xfc7988)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=174, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x13913ef)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x106c1e3)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x103bbb3)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _____________________ test_rocketjoe_is_complete_request_2 _____________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf0559f28>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fbdf053ad68>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fbdf0598620>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fbdf03354a8>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:131:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fbdf0559f28>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:20.840] [__default__] [info] [pid 191 tid 191]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:20.840] [__default__] [info] [pid 191 tid 191] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-0e6dc77a-1db78525f5c65b6bcbb36e60.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:20.840] [__default__] [info] [pid 191 tid 191] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:20.840] [__default__] [info] [pid 191 tid 191] construct process pool
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:20.864] [__default__] [info] [pid 191 tid 191] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:20.864] [__default__] [info] [pid 191 tid 191] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:20.864] [__default__] [info] [pid 191 tid 191] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-0e6dc77a-1db78525f5c65b6bcbb36e60.json
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:20.864] [__default__] [info] [pid 191 tid 191] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 14:06:21.463] [__default__] [info] [pid 191 tid 191] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 59995,
rocketjoe_jupyter_1 | 2: "hb_port": 35047,
rocketjoe_jupyter_1 | 2: "iopub_port": 39521,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "394d957e-f536825149254a67a0498240",
rocketjoe_jupyter_1 | 2: "shell_port": 35307,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 49853,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=191)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001000 by main thread:
rocketjoe_jupyter_1 | 2: #0 fopen <null> (libtsan.so.0+0x459fe)
rocketjoe_jupyter_1 | 2: #1 internal_setent nss_files/files-XXX.c:77 (libnss_files.so.2+0x67c2)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x11388c9)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x1134261)
rocketjoe_jupyter_1 | 2: #4 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x117b143)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x1152c0b)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:136 (rocketjoed+0x103c6e5)
rocketjoe_jupyter_1 | 2: #7 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #8 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #9 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001000 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xfc7988)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=198, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x13913ef)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) /root/.conan/data/cppzmq/4.6.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/zmq.hpp:1573 (rocketjoed+0x106c1e3)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0x103bbb3)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:300 (rocketjoed+0x1040eca)
rocketjoe_jupyter_1 | 2: #5 init_service(goblin_engineer::components::root_manager&, rocketjoe::configuration&, components::log_t&) ../apps/rocketjoed/init_service.cpp:16 (rocketjoed+0xda3453)
rocketjoe_jupyter_1 | 2: #6 main ../apps/rocketjoed/main.cpp:190 (rocketjoed+0xdbd3dc)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x459fe) in __interceptor_fopen
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: =============================== warnings summary ===============================
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/nose/importer.py:12
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
rocketjoe_jupyter_1 | 2: from imp import find_module, load_module, acquire_lock, release_lock
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:52
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:52: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: payload = List(Dict)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:59
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:59: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: traceback = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:67
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:67: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: args = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:78
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/messagespec.py:78: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
rocketjoe_jupyter_1 | 2: matches = List(Unicode)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_kernel_info_request
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:70: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_kernel_info_request(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_execute_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:80: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_execute_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:90: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_complete_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:100: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_complete_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:110: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_1
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:120: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_2
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:130: PytestBenchmarkWarning: Benchmark fixture was not used at all in this test!
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: -- Docs: https://docs.pytest.org/en/latest/warnings.html
rocketjoe_jupyter_1 | 2:
------------------------------------------------------------------------------------------- benchmark: 7 tests ------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2: Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
rocketjoe_jupyter_1 | 2: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2: test_ipykernel_kernel_info_request 1.9344 (1.0) 3.0650 (1.0) 2.2711 (1.0) 0.1812 (1.0) 2.2608 (1.0) 0.2275 (1.15) 101;5 440.3072 (1.0) 323 1
rocketjoe_jupyter_1 | 2: test_ipykernel_is_complete_request_1 2.0408 (1.05) 3.4592 (1.13) 2.5097 (1.11) 0.2036 (1.12) 2.4990 (1.11) 0.2089 (1.06) 91;18 398.4615 (0.90) 410 1
rocketjoe_jupyter_1 | 2: test_ipykernel_is_complete_request_2 2.0768 (1.07) 4.2978 (1.40) 2.4550 (1.08) 0.2073 (1.14) 2.4286 (1.07) 0.1970 (1.0) 84;12 407.3283 (0.93) 408 1
rocketjoe_jupyter_1 | 2: test_ipykernel_execute_request_2 9.0699 (4.69) 21.0721 (6.88) 11.3506 (5.00) 1.6851 (9.30) 10.8908 (4.82) 0.7894 (4.01) 21;19 88.1010 (0.20) 178 1
rocketjoe_jupyter_1 | 2: test_ipykernel_execute_request_1 9.1402 (4.73) 17.6608 (5.76) 11.2127 (4.94) 1.6217 (8.95) 10.7599 (4.76) 0.6740 (3.42) 20;18 89.1844 (0.20) 121 1
rocketjoe_jupyter_1 | 2: test_ipykernel_complete_request_1 23.8988 (12.35) 25.0889 (8.19) 24.3109 (10.70) 0.5077 (2.80) 24.1061 (10.66) 0.7729 (3.92) 1;0 41.1338 (0.09) 5 1
rocketjoe_jupyter_1 | 2: test_ipykernel_complete_request_2 24.0468 (12.43) 31.9328 (10.42) 26.0115 (11.45) 3.3635 (18.57) 24.2660 (10.73) 2.9440 (14.94) 1;1 38.4446 (0.09) 5 1
rocketjoe_jupyter_1 | 2: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Legend:
rocketjoe_jupyter_1 | 2: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.
rocketjoe_jupyter_1 | 2: OPS: Operations Per Second, computed as 1 / Mean
rocketjoe_jupyter_1 | 2: =========================== short test summary info ============================
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_kernel_info_request - Time...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_execute_request_1 - Timeou...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_execute_request_2 - Timeou...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_complete_request_1 - Timeo...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_complete_request_2 - Timeo...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_1 - Ti...
rocketjoe_jupyter_1 | 2: FAILED test/test_jupyter_kernel.py::test_rocketjoe_is_complete_request_2 - Ti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_clear_output - ...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_completion - Ru...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_display_data - ...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_error - Runtime...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_result
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_stderr
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_execute_stdout
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_history - Runti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_inspect - Runti...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_is_complete - R...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_kernel_info - R...
rocketjoe_jupyter_1 | 2: ERROR test/test_jupyter_kernel.py::RocketJoePythonTests::test_pager - Runtime...
rocketjoe_jupyter_1 | 2: ======= 7 failed, 7 passed, 12 warnings, 12 errors in 534.42s (0:08:54) ========
rocketjoe_jupyter_1 | 2/2 Test #2: test_jupyter_kernel.py ...........***Failed 534.85 sec
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 0% tests passed, 2 tests failed out of 2
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | Total Test time (real) = 534.85 sec
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | The following tests FAILED:
rocketjoe_jupyter_1 | 1 - test_storage (Not Run)
rocketjoe_jupyter_1 | 2 - test_jupyter_kernel.py (Failed)
rocketjoe_jupyter_1 | Errors while running CTest
docker_rocketjoe_jupyter_1 exited with code 8
rocketjoe_jupyter_1 | UpdateCTestConfiguration from :/app/build/DartConfiguration.tcl
rocketjoe_jupyter_1 | UpdateCTestConfiguration from :/app/build/DartConfiguration.tcl
rocketjoe_jupyter_1 | Test project /app/build
rocketjoe_jupyter_1 | Constructing a list of tests
rocketjoe_jupyter_1 | Done constructing a list of tests
rocketjoe_jupyter_1 | Updating test list for fixtures
rocketjoe_jupyter_1 | Added 0 tests to meet fixture requirements
rocketjoe_jupyter_1 | Checking test dependency graph...
rocketjoe_jupyter_1 | Checking test dependency graph end
rocketjoe_jupyter_1 | test 1
rocketjoe_jupyter_1 | Start 1: test_storage
rocketjoe_jupyter_1 | Could not find executable test_storage
rocketjoe_jupyter_1 | Looked in the following places:
rocketjoe_jupyter_1 | test_storage
rocketjoe_jupyter_1 | test_storage
rocketjoe_jupyter_1 | Release/test_storage
rocketjoe_jupyter_1 | Release/test_storage
rocketjoe_jupyter_1 | Debug/test_storage
rocketjoe_jupyter_1 | Debug/test_storage
rocketjoe_jupyter_1 | MinSizeRel/test_storage
rocketjoe_jupyter_1 | MinSizeRel/test_storage
rocketjoe_jupyter_1 | RelWithDebInfo/test_storage
rocketjoe_jupyter_1 | RelWithDebInfo/test_storage
rocketjoe_jupyter_1 | Deployment/test_storage
rocketjoe_jupyter_1 | Deployment/test_storage
rocketjoe_jupyter_1 | Development/test_storage
rocketjoe_jupyter_1 | Development/test_storage
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 1: Test command:
rocketjoe_jupyter_1 | Unable to find executable: test_storage
rocketjoe_jupyter_1 | 1/2 Test #1: test_storage .....................***Not Run 0.00 sec
rocketjoe_jupyter_1 | test 2
rocketjoe_jupyter_1 | Start 2: test_jupyter_kernel.py
rocketjoe_jupyter_1 |
rocketjoe_jupyter_1 | 2: Test command: /usr/local/bin/pytest "/app/build/apps/rocketjoed/test/test_jupyter_kernel.py"
rocketjoe_jupyter_1 | 2: Environment variables:
rocketjoe_jupyter_1 | 2: JUPYTER_PATH=$JUPYTER_PATH:/app/build
rocketjoe_jupyter_1 | 2: Test timeout computed to be: 10000000
rocketjoe_jupyter_1 | 2: ============================= test session starts ==============================
rocketjoe_jupyter_1 | 2: platform linux -- Python 3.7.3, pytest-5.4.2, py-1.8.2, pluggy-0.13.1
rocketjoe_jupyter_1 | 2: benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rocketjoe_jupyter_1 | 2: rootdir: /app/build/apps/rocketjoed
rocketjoe_jupyter_1 | 2: plugins: benchmark-3.2.3, xprocess-0.13.1
rocketjoe_jupyter_1 | 2: collected 26 items
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py EEEEEEEEEEEE.F.F.F.F.F.F.F [100%]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: ==================================== ERRORS ====================================
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_clear_output ___________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ---------------------------- Captured stdout setup -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 15:38:18.563] [__default__] [info] [pid 14 tid 14]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 15:38:18.563] [__default__] [info] [pid 14 tid 14] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /tmp/tmprjnxjyhu.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:38:18.563] [__default__] [info] [pid 14 tid 14] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 15:38:18.591] [__default__] [info] [pid 14 tid 14] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 15:38:18.591] [__default__] [info] [pid 14 tid 14] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 15:38:18.591] [__default__] [info] [pid 14 tid 14] jupyter connection path : /tmp/tmprjnxjyhu.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:38:18.591] [__default__] [info] [pid 14 tid 14] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 15:38:19.907] [__default__] [info] [pid 14 tid 14] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ---------------------------- Captured stderr setup -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000050 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000050 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any&) <null> (rocketjoed+0xd38315)
rocketjoe_jupyter_1 | 2: #3 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any const&) <null> (rocketjoed+0xd2e1bb)
rocketjoe_jupyter_1 | 2: #4 boost::filesystem::path const& boost::program_options::variable_value::as<boost::filesystem::path>() const <null> (rocketjoed+0xd26acc)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:181 (rocketjoed+0xd12e7d)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x11daacf)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M89):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M89 (0x55f624e32860) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0xcfb26f)
rocketjoe_jupyter_1 | 2: #2 std::mutex::lock() /usr/include/c++/8/bits/std_mutex.h:103 (rocketjoed+0xcfe203)
rocketjoe_jupyter_1 | 2: #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/include/c++/8/bits/std_mutex.h:162 (rocketjoed+0xd09fbd)
rocketjoe_jupyter_1 | 2: #4 spdlog::sinks::ansicolor_sink<spdlog::details::console_mutex>::set_formatter(std::unique_ptr<spdlog::formatter, std::default_delete<spdlog::formatter> >) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/sinks/ansicolor_sink-inl.h:84 (rocketjoed+0xe8a592)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=14)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x11dabca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=21, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 37415,
rocketjoe_jupyter_1 | 2: "hb_port": 60399,
rocketjoe_jupyter_1 | 2: "iopub_port": 37321,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "kernel_name": "rocketjoe",
rocketjoe_jupyter_1 | 2: "key": "7bc7856e-09d0729eb64f8a26a5514290",
rocketjoe_jupyter_1 | 2: "shell_port": 43617,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 49541,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ____________ ERROR at setup of RocketJoePythonTests.test_completion ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_display_data ___________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ______________ ERROR at setup of RocketJoePythonTests.test_error _______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_result __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_stderr __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: __________ ERROR at setup of RocketJoePythonTests.test_execute_stdout __________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: _____________ ERROR at setup of RocketJoePythonTests.test_history ______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: _____________ ERROR at setup of RocketJoePythonTests.test_inspect ______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_is_complete ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ___________ ERROR at setup of RocketJoePythonTests.test_kernel_info ____________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: ______________ ERROR at setup of RocketJoePythonTests.test_pager _______________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: cls = <class 'test_jupyter_kernel.RocketJoePythonTests'>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: @classmethod
rocketjoe_jupyter_1 | 2: def setUpClass(cls):
rocketjoe_jupyter_1 | 2: > cls.km, cls.kc = start_new_kernel(kernel_name=cls.kernel_name)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_test/__init__.py:19:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/manager.py:749: in start_new_kernel
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7fba99480a20>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: """Waits for a response when a client is blocked
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: - Sets future time for timeout
rocketjoe_jupyter_1 | 2: - Blocks on shell channel until a message is received
rocketjoe_jupyter_1 | 2: - Exit if the kernel has died
rocketjoe_jupyter_1 | 2: - If client times out before receiving a message from the kernel, send RuntimeError
rocketjoe_jupyter_1 | 2: - Flush the IOPub channel
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: if timeout is None:
rocketjoe_jupyter_1 | 2: abs_timeout = float('inf')
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: abs_timeout = time.time() + timeout
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: from ..manager import KernelManager
rocketjoe_jupyter_1 | 2: if not isinstance(self.parent, KernelManager):
rocketjoe_jupyter_1 | 2: # This Client was not created by a KernelManager,
rocketjoe_jupyter_1 | 2: # so wait for kernel to become responsive to heartbeats
rocketjoe_jupyter_1 | 2: # before checking for kernel_info reply
rocketjoe_jupyter_1 | 2: while not self.is_alive():
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: raise RuntimeError("Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout)
rocketjoe_jupyter_1 | 2: time.sleep(0.2)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Wait for kernel info reply on shell channel
rocketjoe_jupyter_1 | 2: while True:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: msg = self.shell_channel.get_msg(block=True, timeout=1)
rocketjoe_jupyter_1 | 2: except Empty:
rocketjoe_jupyter_1 | 2: pass
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if msg['msg_type'] == 'kernel_info_reply':
rocketjoe_jupyter_1 | 2: self._handle_kernel_info_reply(msg)
rocketjoe_jupyter_1 | 2: break
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if not self.is_alive():
rocketjoe_jupyter_1 | 2: raise RuntimeError('Kernel died before replying to kernel_info')
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: # Check if current time is ready check time plus timeout
rocketjoe_jupyter_1 | 2: if time.time() > abs_timeout:
rocketjoe_jupyter_1 | 2: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
rocketjoe_jupyter_1 | 2: E RuntimeError: Kernel didn't respond in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_client/blocking/client.py:108: RuntimeError
rocketjoe_jupyter_1 | 2: =================================== FAILURES ===================================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_kernel_info_request ______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95f9b1d0>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fba95e690f0>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fba95fb9510>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fba95f44eb8>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_kernel_info_request(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:71:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95f9b1d0>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 15:39:26.003] [__default__] [info] [pid 43 tid 43]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 15:39:26.003] [__default__] [info] [pid 43 tid 43] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-44450e22-1162ebf8b495e68503c61d7e.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:39:26.003] [__default__] [info] [pid 43 tid 43] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 15:39:26.030] [__default__] [info] [pid 43 tid 43] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 15:39:26.030] [__default__] [info] [pid 43 tid 43] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 15:39:26.030] [__default__] [info] [pid 43 tid 43] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-44450e22-1162ebf8b495e68503c61d7e.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:39:26.030] [__default__] [info] [pid 43 tid 43] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 15:39:26.888] [__default__] [info] [pid 43 tid 43] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=43)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 bool boost::typeindex::operator==<boost::typeindex::stl_type_index, std::type_info>(boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&, boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&) <null> (rocketjoed+0xd50200)
rocketjoe_jupyter_1 | 2: #3 bool boost::typeindex::operator==<boost::typeindex::stl_type_index, std::type_info>(std::type_info const&, boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/type_index/type_index_facade.hpp:188 (rocketjoed+0xd48607)
rocketjoe_jupyter_1 | 2: #4 boost::filesystem::path const* boost::any_cast<boost::filesystem::path const>(boost::any*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:251 (rocketjoed+0xd429c5)
rocketjoe_jupyter_1 | 2: #5 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any&) <null> (rocketjoed+0xd38315)
rocketjoe_jupyter_1 | 2: #6 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any const&) <null> (rocketjoed+0xd2e1bb)
rocketjoe_jupyter_1 | 2: #7 boost::filesystem::path const& boost::program_options::variable_value::as<boost::filesystem::path>() const <null> (rocketjoed+0xd26acc)
rocketjoe_jupyter_1 | 2: #8 main ../apps/rocketjoed/main.cpp:181 (rocketjoed+0xd12e7d)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=45, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=43)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x11daacf)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M89):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M89 (0x555576ca1860) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0xcfb26f)
rocketjoe_jupyter_1 | 2: #2 std::mutex::lock() /usr/include/c++/8/bits/std_mutex.h:103 (rocketjoed+0xcfe203)
rocketjoe_jupyter_1 | 2: #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/include/c++/8/bits/std_mutex.h:162 (rocketjoed+0xd09fbd)
rocketjoe_jupyter_1 | 2: #4 spdlog::sinks::ansicolor_sink<spdlog::details::console_mutex>::set_formatter(std::unique_ptr<spdlog::formatter, std::default_delete<spdlog::formatter> >) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/sinks/ansicolor_sink-inl.h:84 (rocketjoed+0xe8a592)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=45, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=43)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x11dabca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=45, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 51447,
rocketjoe_jupyter_1 | 2: "hb_port": 52031,
rocketjoe_jupyter_1 | 2: "iopub_port": 53195,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "ab89317e-ae4044b1ba0933c7b87a085d",
rocketjoe_jupyter_1 | 2: "shell_port": 60407,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 37117,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=43)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001000 by main thread:
rocketjoe_jupyter_1 | 2: #0 fopen <null> (libtsan.so.0+0x459fe)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libnss_files.so.2+0x67c2)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x1051ce7)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x104d67f)
rocketjoe_jupyter_1 | 2: #4 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x109494f)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x106c029)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:137 (rocketjoed+0xf5ae62)
rocketjoe_jupyter_1 | 2: #7 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #8 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001000 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xee5844)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=50, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x12712e9)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) <null> (rocketjoed+0xf861ef)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0xf5a2af)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x459fe) in __interceptor_fopen
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _______________________ test_rocketjoe_execute_request_1 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95f3fc18>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fba95e690f0>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fba9ba6ae18>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fba95f3f208>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:81:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95f3fc18>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 15:40:33.029] [__default__] [info] [pid 64 tid 64]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 15:40:33.030] [__default__] [info] [pid 64 tid 64] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-9348f93a-73881de062658a024d308d89.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:40:33.030] [__default__] [info] [pid 64 tid 64] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 15:40:33.059] [__default__] [info] [pid 64 tid 64] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 15:40:33.059] [__default__] [info] [pid 64 tid 64] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 15:40:33.059] [__default__] [info] [pid 64 tid 64] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-9348f93a-73881de062658a024d308d89.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:40:33.059] [__default__] [info] [pid 64 tid 64] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 15:40:33.923] [__default__] [info] [pid 64 tid 64] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=64)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 bool boost::typeindex::operator==<boost::typeindex::stl_type_index, std::type_info>(boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&, boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&) <null> (rocketjoed+0xd50200)
rocketjoe_jupyter_1 | 2: #3 bool boost::typeindex::operator==<boost::typeindex::stl_type_index, std::type_info>(std::type_info const&, boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/type_index/type_index_facade.hpp:188 (rocketjoed+0xd48607)
rocketjoe_jupyter_1 | 2: #4 boost::filesystem::path const* boost::any_cast<boost::filesystem::path const>(boost::any*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:251 (rocketjoed+0xd429c5)
rocketjoe_jupyter_1 | 2: #5 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any&) <null> (rocketjoed+0xd38315)
rocketjoe_jupyter_1 | 2: #6 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any const&) <null> (rocketjoed+0xd2e1bb)
rocketjoe_jupyter_1 | 2: #7 boost::filesystem::path const& boost::program_options::variable_value::as<boost::filesystem::path>() const <null> (rocketjoed+0xd26acc)
rocketjoe_jupyter_1 | 2: #8 main ../apps/rocketjoed/main.cpp:181 (rocketjoed+0xd12e7d)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=66, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=64)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x11daacf)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M89):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M89 (0x555a87166860) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0xcfb26f)
rocketjoe_jupyter_1 | 2: #2 std::mutex::lock() /usr/include/c++/8/bits/std_mutex.h:103 (rocketjoed+0xcfe203)
rocketjoe_jupyter_1 | 2: #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/include/c++/8/bits/std_mutex.h:162 (rocketjoed+0xd09fbd)
rocketjoe_jupyter_1 | 2: #4 spdlog::sinks::ansicolor_sink<spdlog::details::console_mutex>::set_formatter(std::unique_ptr<spdlog::formatter, std::default_delete<spdlog::formatter> >) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/sinks/ansicolor_sink-inl.h:84 (rocketjoed+0xe8a592)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=66, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=64)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x11dabca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=66, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 43063,
rocketjoe_jupyter_1 | 2: "hb_port": 48263,
rocketjoe_jupyter_1 | 2: "iopub_port": 34163,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "2ab76086-9e0b9ca60aade51fbad3a0b8",
rocketjoe_jupyter_1 | 2: "shell_port": 38895,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 49335,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=64)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001000 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::detail::jupyter::shell::init_hooks(pybind11::object) ../components/python_sandbox/source/detail/jupyter/shell.cpp:33 (rocketjoed+0x1151565)
rocketjoe_jupyter_1 | 2: #3 void pybind11::detail::argument_loader<pybind11::object>::call_impl<void, void (*&)(pybind11::object), 0ul, pybind11::detail::void_type>(void (*&)(pybind11::object), std::integer_sequence<unsigned long, 0ul>, pybind11::detail::void_type&&) /root/.conan/data/pybind11/2.3.0/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/pybind11/cast.h:1931 (rocketjoed+0x11f5776)
rocketjoe_jupyter_1 | 2: #4 std::enable_if<std::is_void<void>::value, pybind11::detail::void_type>::type pybind11::detail::argument_loader<pybind11::object>::call<void, pybind11::detail::void_type, void (*&)(pybind11::object)>(void (*&)(pybind11::object)) && /root/.conan/data/pybind11/2.3.0/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/pybind11/cast.h:1913 (rocketjoed+0x11f0742)
rocketjoe_jupyter_1 | 2: #5 pybind11::cpp_function::initialize<void (*&)(pybind11::object), void, pybind11::object, pybind11::is_method>(void (*&)(pybind11::object), void (*)(pybind11::object), pybind11::is_method const&)::{lambda(pybind11::detail::function_call&)#3}::operator()(pybind11::detail::function_call&) const /root/.conan/data/pybind11/2.3.0/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/pybind11/pybind11.h:160 (rocketjoed+0x11e57b9)
rocketjoe_jupyter_1 | 2: #6 pybind11::cpp_function::initialize<void (*&)(pybind11::object), void, pybind11::object, pybind11::is_method>(void (*&)(pybind11::object), void (*)(pybind11::object), pybind11::is_method const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call&) /root/.conan/data/pybind11/2.3.0/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/pybind11/pybind11.h:138 (rocketjoed+0x11e58a4)
rocketjoe_jupyter_1 | 2: #7 pybind11::cpp_function::dispatcher(_object*, _object*, _object*) /root/.conan/data/pybind11/2.3.0/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/pybind11/pybind11.h:625 (rocketjoed+0xf801ed)
rocketjoe_jupyter_1 | 2: #8 _PyMethodDef_RawFastCallKeywords <null> (libpython3.7m.so.1.0+0x274cda)
rocketjoe_jupyter_1 | 2: #9 pybind11::object pybind11::detail::object_api<pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr> >::operator()<(pybind11::return_value_policy)1, pybind11::arg_v>(pybind11::arg_v&&) const /root/.conan/data/pybind11/2.3.0/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/pybind11/cast.h:2108 (rocketjoed+0x1088a7a)
rocketjoe_jupyter_1 | 2: #10 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:515 (rocketjoed+0x104b4df)
rocketjoe_jupyter_1 | 2: #11 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x109494f)
rocketjoe_jupyter_1 | 2: #12 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x106c029)
rocketjoe_jupyter_1 | 2: #13 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:137 (rocketjoed+0xf5ae62)
rocketjoe_jupyter_1 | 2: #14 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #15 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001000 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xee5844)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=71, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x12712e9)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) <null> (rocketjoed+0xf861ef)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0xf5a2af)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _______________________ test_rocketjoe_execute_request_2 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95edfba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fba95e690f0>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fba95e9eea0>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fba95f57470>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_execute_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:91:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95edfba8>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 15:41:40.966] [__default__] [info] [pid 85 tid 85]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 15:41:40.966] [__default__] [info] [pid 85 tid 85] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-f190b501-50681b29cdf4d66d4ce5c5eb.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:41:40.966] [__default__] [info] [pid 85 tid 85] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 15:41:40.994] [__default__] [info] [pid 85 tid 85] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 15:41:40.994] [__default__] [info] [pid 85 tid 85] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 15:41:40.994] [__default__] [info] [pid 85 tid 85] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-f190b501-50681b29cdf4d66d4ce5c5eb.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:41:40.994] [__default__] [info] [pid 85 tid 85] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 15:41:41.881] [__default__] [info] [pid 85 tid 85] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=85)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002d0 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002d0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 main ../apps/rocketjoed/main.cpp:110 (rocketjoed+0xd120ac)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=87, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=85)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x11daacf)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M89):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M89 (0x555bcbc2d860) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0xcfb26f)
rocketjoe_jupyter_1 | 2: #2 std::mutex::lock() /usr/include/c++/8/bits/std_mutex.h:103 (rocketjoed+0xcfe203)
rocketjoe_jupyter_1 | 2: #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/include/c++/8/bits/std_mutex.h:162 (rocketjoed+0xd09fbd)
rocketjoe_jupyter_1 | 2: #4 spdlog::sinks::ansicolor_sink<spdlog::details::console_mutex>::set_formatter(std::unique_ptr<spdlog::formatter, std::default_delete<spdlog::formatter> >) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/sinks/ansicolor_sink-inl.h:84 (rocketjoed+0xe8a592)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=87, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=85)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe2 <null> (libtsan.so.0+0x2f14e)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xc4be1)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x11dabca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=87, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f14e) in __interceptor_pipe2
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 41755,
rocketjoe_jupyter_1 | 2: "hb_port": 47079,
rocketjoe_jupyter_1 | 2: "iopub_port": 39661,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "f09b34c2-ab9fe4b78247d3487779319d",
rocketjoe_jupyter_1 | 2: "shell_port": 56983,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 59969,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_complete_request_1 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95f54438>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fba95e690f0>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fba95e66158>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fba95e5bdd8>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:101:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95f54438>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 15:42:47.609] [__default__] [info] [pid 106 tid 106]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 15:42:47.609] [__default__] [info] [pid 106 tid 106] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-af314cbf-ecf28867ce09c9010d8abf94.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:42:47.610] [__default__] [info] [pid 106 tid 106] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 15:42:47.636] [__default__] [info] [pid 106 tid 106] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 15:42:47.637] [__default__] [info] [pid 106 tid 106] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 15:42:47.637] [__default__] [info] [pid 106 tid 106] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-af314cbf-ecf28867ce09c9010d8abf94.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:42:47.637] [__default__] [info] [pid 106 tid 106] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 15:42:48.504] [__default__] [info] [pid 106 tid 106] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=106)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b04000002b0 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b04000002b0 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 bool boost::typeindex::operator==<boost::typeindex::stl_type_index, std::type_info>(boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&, boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&) <null> (rocketjoed+0xd50200)
rocketjoe_jupyter_1 | 2: #3 bool boost::typeindex::operator==<boost::typeindex::stl_type_index, std::type_info>(std::type_info const&, boost::typeindex::type_index_facade<boost::typeindex::stl_type_index, std::type_info> const&) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/type_index/type_index_facade.hpp:188 (rocketjoed+0xd48607)
rocketjoe_jupyter_1 | 2: #4 unsigned short const* boost::any_cast<unsigned short const>(boost::any*) /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/any.hpp:251 (rocketjoed+0xd3fafe)
rocketjoe_jupyter_1 | 2: #5 unsigned short const& boost::any_cast<unsigned short const&>(boost::any&) <null> (rocketjoed+0xd374f0)
rocketjoe_jupyter_1 | 2: #6 unsigned short const& boost::any_cast<unsigned short const&>(boost::any const&) <null> (rocketjoed+0xd2d458)
rocketjoe_jupyter_1 | 2: #7 unsigned short const& boost::program_options::variable_value::as<unsigned short>() const <null> (rocketjoed+0xd259d4)
rocketjoe_jupyter_1 | 2: #8 main ../apps/rocketjoed/main.cpp:110 (rocketjoed+0xd120d9)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=108, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=106)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x11daacf)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M89):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M89 (0x561924bc3860) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0xcfb26f)
rocketjoe_jupyter_1 | 2: #2 std::mutex::lock() /usr/include/c++/8/bits/std_mutex.h:103 (rocketjoed+0xcfe203)
rocketjoe_jupyter_1 | 2: #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/include/c++/8/bits/std_mutex.h:162 (rocketjoed+0xd09fbd)
rocketjoe_jupyter_1 | 2: #4 spdlog::sinks::ansicolor_sink<spdlog::details::console_mutex>::set_formatter(std::unique_ptr<spdlog::formatter, std::default_delete<spdlog::formatter> >) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/sinks/ansicolor_sink-inl.h:84 (rocketjoed+0xe8a592)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=108, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=106)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe2 <null> (libtsan.so.0+0x2f14e)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xc4be1)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x11dabca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=108, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f14e) in __interceptor_pipe2
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 48671,
rocketjoe_jupyter_1 | 2: "hb_port": 45875,
rocketjoe_jupyter_1 | 2: "iopub_port": 42699,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "d22493db-258247f34a8846b07927ce3d",
rocketjoe_jupyter_1 | 2: "shell_port": 47437,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 59771,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=106)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001000 by main thread (mutexes: write M905):
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libsqlite3.so.0+0x47e6d)
rocketjoe_jupyter_1 | 2: #2 pybind11::object pybind11::detail::object_api<pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr> >::operator()<(pybind11::return_value_policy)1, pybind11::arg_v>(pybind11::arg_v&&) const /root/.conan/data/pybind11/2.3.0/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/pybind11/cast.h:2108 (rocketjoed+0x1088a7a)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:515 (rocketjoed+0x104b4df)
rocketjoe_jupyter_1 | 2: #4 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x109494f)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x106c029)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:137 (rocketjoed+0xf5ae62)
rocketjoe_jupyter_1 | 2: #7 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #8 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001000 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xee5844)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M905 (0x7b0c00001748) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_init <null> (libtsan.so.0+0x2c5ad)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libsqlite3.so.0+0x29379)
rocketjoe_jupyter_1 | 2: #2 pybind11::object pybind11::detail::object_api<pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr> >::operator()<(pybind11::return_value_policy)1, pybind11::arg_v>(pybind11::arg_v&&) const /root/.conan/data/pybind11/2.3.0/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/pybind11/cast.h:2108 (rocketjoed+0x1088a7a)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:515 (rocketjoed+0x104b4df)
rocketjoe_jupyter_1 | 2: #4 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x109494f)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x106c029)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:137 (rocketjoed+0xf5ae62)
rocketjoe_jupyter_1 | 2: #7 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #8 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=113, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x12712e9)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) <null> (rocketjoed+0xf861ef)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0xf5a2af)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ______________________ test_rocketjoe_complete_request_2 _______________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95eb3c18>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fba95e690f0>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fba95473268>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fba95f9bba8>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_complete_request_2(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:111:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeout=startup_timeout)
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95eb3c18>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2: except ioloop.TimeoutError:
rocketjoe_jupyter_1 | 2: raise TimeoutError("Kernel client wasn't ready in {} seconds"
rocketjoe_jupyter_1 | 2: > .format(timeout))
rocketjoe_jupyter_1 | 2: E TimeoutError: Kernel client wasn't ready in 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:410: TimeoutError
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stdout call -----------------------------
rocketjoe_jupyter_1 | 2: [2020-06-25 15:43:54.016] [__default__] [info] [pid 127 tid 127]
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2: ______ _ _ ___
rocketjoe_jupyter_1 | 2: | ___ \ | | | | |_ |
rocketjoe_jupyter_1 | 2: | |_/ /___ ___| | _____| |_ | | ___ ___
rocketjoe_jupyter_1 | 2: | // _ \ / __| |/ / _ \ __| | |/ _ \ / _ \
rocketjoe_jupyter_1 | 2: | |\ \ (_) | (__| < __/ |_/\__/ / (_) | __/
rocketjoe_jupyter_1 | 2: \_| \_\___/ \___|_|\_\___|\__\____/ \___/ \___|
rocketjoe_jupyter_1 | 2: -------------------------------------------------
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: [2020-06-25 15:43:54.017] [__default__] [info] [pid 127 tid 127] Command Args : /app/build/bin/rocketjoed , --jupyter_kernel , --jupyter_connection , /root/.local/share/jupyter/runtime/kernel-9913c20a-328f3bdf3cf583251d576392.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:43:54.017] [__default__] [info] [pid 127 tid 127] jupyter kernel mode
rocketjoe_jupyter_1 | 2: [2020-06-25 15:43:54.045] [__default__] [info] [pid 127 tid 127] processing env python start
rocketjoe_jupyter_1 | 2: [2020-06-25 15:43:54.045] [__default__] [info] [pid 127 tid 127] Mode : 2
rocketjoe_jupyter_1 | 2: [2020-06-25 15:43:54.045] [__default__] [info] [pid 127 tid 127] jupyter connection path : /root/.local/share/jupyter/runtime/kernel-9913c20a-328f3bdf3cf583251d576392.json
rocketjoe_jupyter_1 | 2: [2020-06-25 15:43:54.045] [__default__] [info] [pid 127 tid 127] processing env python finish
rocketjoe_jupyter_1 | 2: [2020-06-25 15:43:54.896] [__default__] [info] [pid 127 tid 127] jupyter kernel mode
rocketjoe_jupyter_1 | 2: ----------------------------- Captured stderr call -----------------------------
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=127)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000050 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000050 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any&) <null> (rocketjoed+0xd38315)
rocketjoe_jupyter_1 | 2: #3 boost::filesystem::path const& boost::any_cast<boost::filesystem::path const&>(boost::any const&) <null> (rocketjoed+0xd2e1bb)
rocketjoe_jupyter_1 | 2: #4 boost::filesystem::path const& boost::program_options::variable_value::as<boost::filesystem::path>() const <null> (rocketjoed+0xd26acc)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:181 (rocketjoed+0xd12e7d)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=129, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=127)
rocketjoe_jupyter_1 | 2: Read of size 1 at 0x7b0800001010 by main thread:
rocketjoe_jupyter_1 | 2: #0 strncpy <null> (libtsan.so.0+0x2b783)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0x81f63)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:27 (rocketjoed+0x11daacf)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0800001010 by thread T1 (mutexes: write M89):
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Location is heap block of size 20 at 0x7b0800001000 allocated by thread T1:
rocketjoe_jupyter_1 | 2: #0 malloc <null> (libtsan.so.0+0x2b1a3)
rocketjoe_jupyter_1 | 2: #1 __tzstring_len /build/glibc-vjB4T1/glibc-2.28/time/tzset.c:99 (libc.so.6+0xb620e)
rocketjoe_jupyter_1 | 2: #2 spdlog::details::os::localtime(long const&) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/details/os-inl.h:99 (rocketjoed+0xe51956)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Mutex M89 (0x55560fa9c860) created at:
rocketjoe_jupyter_1 | 2: #0 pthread_mutex_lock <null> (libtsan.so.0+0x3d62b)
rocketjoe_jupyter_1 | 2: #1 __gthread_mutex_lock /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:748 (rocketjoed+0xcfb26f)
rocketjoe_jupyter_1 | 2: #2 std::mutex::lock() /usr/include/c++/8/bits/std_mutex.h:103 (rocketjoed+0xcfe203)
rocketjoe_jupyter_1 | 2: #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/include/c++/8/bits/std_mutex.h:162 (rocketjoed+0xd09fbd)
rocketjoe_jupyter_1 | 2: #4 spdlog::sinks::ansicolor_sink<spdlog::details::console_mutex>::set_formatter(std::unique_ptr<spdlog::formatter, std::default_delete<spdlog::formatter> >) /tmp/c3ipr/pr_1651_2_4_33/.conan/data/spdlog/1.5.0/_/_/build/793be5fbe1f922af87730a97e0369a0659eb4032/source_subfolder/include/spdlog/sinks/ansicolor_sink-inl.h:84 (rocketjoed+0xe8a592)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=129, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2b783) in strncpy
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=127)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400000810 by main thread:
rocketjoe_jupyter_1 | 2: #0 open64 <null> (libtsan.so.0+0x2de81)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libpython3.7m.so.1.0+0xdf106)
rocketjoe_jupyter_1 | 2: #2 rocketjoe::services::python_sandbox::detail::add_jupyter(pybind11::module&, rocketjoe::services::python_sandbox::detail::context_manager*) ../components/python_sandbox/source/detail/jupyter.cpp:34 (rocketjoed+0x11dabca)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:273 (rocketjoed+0xf5e8ce)
rocketjoe_jupyter_1 | 2: #4 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400000810 by thread T1:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::__shared_ptr<spdlog::async_logger, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/8/bits/shared_ptr_base.h:1167 (rocketjoed+0xe899ef)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T1 (tid=129, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xbbdb4)
rocketjoe_jupyter_1 | 2: #2 void std::allocator_traits<std::allocator<spdlog::details::thread_pool> >::construct<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>&, spdlog::details::thread_pool*, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/alloc_traits.h:475 (rocketjoed+0x122fe7c)
rocketjoe_jupyter_1 | 2: #3 std::_Sp_counted_ptr_inplace<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:545 (rocketjoed+0x122eba5)
rocketjoe_jupyter_1 | 2: #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(spdlog::details::thread_pool*&, std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:677 (rocketjoed+0x122dea2)
rocketjoe_jupyter_1 | 2: #5 std::__shared_ptr<spdlog::details::thread_pool, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr_base.h:1342 (rocketjoed+0x122d611)
rocketjoe_jupyter_1 | 2: #6 std::shared_ptr<spdlog::details::thread_pool>::shared_ptr<std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::_Sp_alloc_shared_tag<std::allocator<spdlog::details::thread_pool> >, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:359 (rocketjoed+0x122ce59)
rocketjoe_jupyter_1 | 2: #7 std::shared_ptr<spdlog::details::thread_pool> std::allocate_shared<spdlog::details::thread_pool, std::allocator<spdlog::details::thread_pool>, unsigned long&, unsigned long&, std::function<void ()>&>(std::allocator<spdlog::details::thread_pool> const&, unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:706 (rocketjoed+0x122c1fe)
rocketjoe_jupyter_1 | 2: #8 std::shared_ptr<spdlog::details::thread_pool> std::make_shared<spdlog::details::thread_pool, unsigned long&, unsigned long&, std::function<void ()>&>(unsigned long&, unsigned long&, std::function<void ()>&) /usr/include/c++/8/bits/shared_ptr.h:722 (rocketjoed+0x122b3de)
rocketjoe_jupyter_1 | 2: #9 spdlog::init_thread_pool(unsigned long, unsigned long, std::function<void ()>) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:78 (rocketjoed+0x122af71)
rocketjoe_jupyter_1 | 2: #10 spdlog::init_thread_pool(unsigned long, unsigned long) /root/.conan/data/spdlog/1.5.0/_/_/package/793be5fbe1f922af87730a97e0369a0659eb4032/include/spdlog/async.h:85 (rocketjoed+0x122b0b3)
rocketjoe_jupyter_1 | 2: #11 components::initialization_logger() ../components/log/log.cpp:32 (rocketjoed+0x122a4ec)
rocketjoe_jupyter_1 | 2: #12 main ../apps/rocketjoed/main.cpp:71 (rocketjoed+0xd11600)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2de81) in __interceptor_open64
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: {
rocketjoe_jupyter_1 | 2: "control_port": 39881,
rocketjoe_jupyter_1 | 2: "hb_port": 44365,
rocketjoe_jupyter_1 | 2: "iopub_port": 38583,
rocketjoe_jupyter_1 | 2: "ip": "127.0.0.1",
rocketjoe_jupyter_1 | 2: "key": "f606c9ba-e3b121289d40e1508fa9ae96",
rocketjoe_jupyter_1 | 2: "shell_port": 38861,
rocketjoe_jupyter_1 | 2: "signature_scheme": "hmac-sha256",
rocketjoe_jupyter_1 | 2: "stdin_port": 36525,
rocketjoe_jupyter_1 | 2: "transport": "tcp"
rocketjoe_jupyter_1 | 2: }
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: WARNING: ThreadSanitizer: data race (pid=127)
rocketjoe_jupyter_1 | 2: Write of size 8 at 0x7b0400001800 by main thread:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 boost::locale::basic_format<char>::write(std::ostream&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:270 (rocketjoed+0x10a06c2)
rocketjoe_jupyter_1 | 2: #3 boost::locale::basic_format<char>::str[abi:cxx11](std::locale const&) const /root/.conan/data/boost/1.71.0/conan/stable/package/ec6d2f0b8a7d83d86e12e4a9ff9ee8b2d4fa6099/include/boost/locale/format.hpp:255 (rocketjoed+0x108b3e3)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::detail::jupyter::session::construct_message(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) ../components/python_sandbox/source/detail/jupyter/session.cpp:454 (rocketjoed+0x113d928)
rocketjoe_jupyter_1 | 2: #5 rocketjoe::services::detail::jupyter::interpreter_impl::publish_status(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:758 (rocketjoed+0x1051ce7)
rocketjoe_jupyter_1 | 2: #6 rocketjoe::services::detail::jupyter::interpreter_impl::interpreter_impl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:576 (rocketjoed+0x104d67f)
rocketjoe_jupyter_1 | 2: #7 std::_MakeUniq<rocketjoe::services::detail::jupyter::interpreter_impl>::__single_object std::make_unique<rocketjoe::services::detail::jupyter::interpreter_impl, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool&, boost::uuids::uuid>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, zmq::socket_t&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, zmq::socket_t&&, boost::optional<zmq::socket_t>&&, boost::optional<zmq::socket_t>&&, bool&, boost::uuids::uuid&&) <null> (rocketjoed+0x109494f)
rocketjoe_jupyter_1 | 2: #8 rocketjoe::services::detail::jupyter::pykernel::pykernel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, zmq::socket_t, zmq::socket_t, boost::optional<zmq::socket_t>, zmq::socket_t, boost::optional<zmq::socket_t>, boost::optional<zmq::socket_t>, bool, boost::uuids::uuid) ../components/python_sandbox/source/detail/jupyter/pykernel.cpp:1659 (rocketjoed+0x106c029)
rocketjoe_jupyter_1 | 2: #9 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:137 (rocketjoed+0xf5ae62)
rocketjoe_jupyter_1 | 2: #10 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #11 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Previous write of size 8 at 0x7b0400001800 by thread T4:
rocketjoe_jupyter_1 | 2: #0 pipe <null> (libtsan.so.0+0x2f069)
rocketjoe_jupyter_1 | 2: #1 <null> <null> (libubsan.so.1+0x1b24d)
rocketjoe_jupyter_1 | 2: #2 std::ostreambuf_iterator<char, std::char_traits<char> > boost::locale::util::base_num_format<char>::do_real_put<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const libs/locale/src/std/../util/numeric.hpp:125 (rocketjoed+0xee5844)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: Thread T4 'ZMQbg/IO/0' (tid=134, running) created by main thread at:
rocketjoe_jupyter_1 | 2: #0 pthread_create <null> (libtsan.so.0+0x2be1b)
rocketjoe_jupyter_1 | 2: #1 zmq::thread_t::start(void (*)(void*), void*, char const*) /home/conan/.conan/data/zmq/4.3.2/bincrafters/stable/build/9d43b0a6dcf99be58f9186c18969d7b3c0292752/sources_subfolder/src/thread.cpp:236 (rocketjoed+0x12712e9)
rocketjoe_jupyter_1 | 2: #2 zmq::socket_t::socket_t(zmq::context_t&, zmq::socket_type) <null> (rocketjoed+0xf861ef)
rocketjoe_jupyter_1 | 2: #3 rocketjoe::services::python_sandbox_t::jupyter_kernel_init() ../components/python_sandbox/source/python_sandbox.cpp:105 (rocketjoed+0xf5a2af)
rocketjoe_jupyter_1 | 2: #4 rocketjoe::services::python_sandbox_t::init() ../components/python_sandbox/source/python_sandbox.cpp:280 (rocketjoed+0xf5ed78)
rocketjoe_jupyter_1 | 2: #5 main ../apps/rocketjoed/main.cpp:199 (rocketjoed+0xd130e6)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2f069) in __interceptor_pipe
rocketjoe_jupyter_1 | 2: ==================
rocketjoe_jupyter_1 | 2: _____________________ test_rocketjoe_is_complete_request_1 _____________________
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <jupyter_kernel_mgmt.client.BlockingKernelClient object at 0x7fba95e42550>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def wait_for_ready(self, timeout=None):
rocketjoe_jupyter_1 | 2: loop = self.loop_client.ioloop
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: > loop.run_sync(lambda: self.loop_client.wait_for_ready(), timeout=timeout)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/client.py:407:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self = <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7fba95e690f0>
rocketjoe_jupyter_1 | 2: func = <function BlockingKernelClient.wait_for_ready.<locals>.<lambda> at 0x7fba9545da60>
rocketjoe_jupyter_1 | 2: timeout = 60
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run_sync(self, func: Callable, timeout: float = None) -> Any:
rocketjoe_jupyter_1 | 2: """Starts the `IOLoop`, runs the given function, and stops the loop.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The function must return either an awaitable object or
rocketjoe_jupyter_1 | 2: ``None``. If the function returns an awaitable object, the
rocketjoe_jupyter_1 | 2: `IOLoop` will run until the awaitable is resolved (and
rocketjoe_jupyter_1 | 2: `run_sync()` will return the awaitable's result). If it raises
rocketjoe_jupyter_1 | 2: an exception, the `IOLoop` will stop and the exception will be
rocketjoe_jupyter_1 | 2: re-raised to the caller.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: The keyword-only argument ``timeout`` may be used to set
rocketjoe_jupyter_1 | 2: a maximum duration for the function. If the timeout expires,
rocketjoe_jupyter_1 | 2: a `tornado.util.TimeoutError` is raised.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: This method is useful to allow asynchronous calls in a
rocketjoe_jupyter_1 | 2: ``main()`` function::
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: async def main():
rocketjoe_jupyter_1 | 2: # do stuff...
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: if __name__ == '__main__':
rocketjoe_jupyter_1 | 2: IOLoop.current().run_sync(main)
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 4.3
rocketjoe_jupyter_1 | 2: Returning a non-``None``, non-awaitable value is now an error.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: .. versionchanged:: 5.0
rocketjoe_jupyter_1 | 2: If a timeout occurs, the ``func`` coroutine will be cancelled.
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: """
rocketjoe_jupyter_1 | 2: future_cell = [None] # type: List[Optional[Future]]
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def run() -> None:
rocketjoe_jupyter_1 | 2: try:
rocketjoe_jupyter_1 | 2: result = func()
rocketjoe_jupyter_1 | 2: if result is not None:
rocketjoe_jupyter_1 | 2: from tornado.gen import convert_yielded
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: result = convert_yielded(result)
rocketjoe_jupyter_1 | 2: except Exception:
rocketjoe_jupyter_1 | 2: fut = Future() # type: Future[Any]
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: future_set_exc_info(fut, sys.exc_info())
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: if is_future(result):
rocketjoe_jupyter_1 | 2: future_cell[0] = result
rocketjoe_jupyter_1 | 2: else:
rocketjoe_jupyter_1 | 2: fut = Future()
rocketjoe_jupyter_1 | 2: future_cell[0] = fut
rocketjoe_jupyter_1 | 2: fut.set_result(result)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: self.add_future(future_cell[0], lambda future: self.stop())
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: self.add_callback(run)
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def timeout_callback() -> None:
rocketjoe_jupyter_1 | 2: # If we can cancel the future, do so and wait on it. If not,
rocketjoe_jupyter_1 | 2: # Just stop the loop and return with the task still pending.
rocketjoe_jupyter_1 | 2: # (If we neither cancel nor wait for the task, a warning
rocketjoe_jupyter_1 | 2: # will be logged).
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if not future_cell[0].cancel():
rocketjoe_jupyter_1 | 2: self.stop()
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: timeout_handle = self.add_timeout(self.time() + timeout, timeout_callback)
rocketjoe_jupyter_1 | 2: self.start()
rocketjoe_jupyter_1 | 2: if timeout is not None:
rocketjoe_jupyter_1 | 2: self.remove_timeout(timeout_handle)
rocketjoe_jupyter_1 | 2: assert future_cell[0] is not None
rocketjoe_jupyter_1 | 2: if future_cell[0].cancelled() or not future_cell[0].done():
rocketjoe_jupyter_1 | 2: > raise TimeoutError("Operation timed out after %s seconds" % timeout)
rocketjoe_jupyter_1 | 2: E tornado.util.TimeoutError: Operation timed out after 60 seconds
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/tornado/ioloop.py:531: TimeoutError
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: During handling of the above exception, another exception occurred:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: benchmark = <pytest_benchmark.fixture.BenchmarkFixture object at 0x7fba95e48358>
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: def test_rocketjoe_is_complete_request_1(benchmark) -> None:
rocketjoe_jupyter_1 | 2: > with jupyter_kernel_mgmt.run_kernel_blocking('spec/rocketjoe') as kc:
rocketjoe_jupyter_1 | 2:
rocketjoe_jupyter_1 | 2: test/test_jupyter_kernel.py:121:
rocketjoe_jupyter_1 | 2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rocketjoe_jupyter_1 | 2: /usr/lib/python3.7/contextlib.py:112: in __enter__
rocketjoe_jupyter_1 | 2: return next(self.gen)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:74: in run_kernel_blocking
rocketjoe_jupyter_1 | 2: km, kc = start_kernel_blocking(name, **kwargs)
rocketjoe_jupyter_1 | 2: /usr/local/lib/python3.7/dist-packages/jupyter_kernel_mgmt/hl.py:57: in start_kernel_blocking
rocketjoe_jupyter_1 | 2: kc.wait_for_ready(timeo
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment