Skip to content

Instantly share code, notes, and snippets.

@heiner
Created March 11, 2019 22:45
Show Gist options
  • Save heiner/1f455205faeb8ceff151c6283442487a to your computer and use it in GitHub Desktop.
Save heiner/1f455205faeb8ceff151c6283442487a to your computer and use it in GitHub Desktop.
(extdev) [~/src/projects/torchgym: 131] $ lldb -c /cores/core.34997
(lldb) target create --core "/cores/core.34997"
Core file '/cores/core.34997' (x86_64) was loaded.
(lldb) bt all
* thread #1, stop reason = signal SIGSTOP
* frame #0: 0x00007fff6ca3a7de libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff6caf4593 libsystem_pthread.dylib`_pthread_cond_wait + 724
frame #2: 0x000000010b858a03 python3`PyThread_acquire_lock_timed + 275
frame #3: 0x000000010b8d0e27 python3`acquire_timed + 359
frame #4: 0x000000010b8d124d python3`lock_PyThread_acquire_lock + 61
frame #5: 0x000000010b6ae958 python3`_PyMethodDef_RawFastCallKeywords + 392
frame #6: 0x000000010b6bb8c4 python3`_PyMethodDescr_FastCallKeywords + 84
frame #7: 0x000000010b7eebd7 python3`call_function + 391
frame #8: 0x000000010b7ec5ee python3`_PyEval_EvalFrameDefault + 45134
frame #9: 0x000000010b7e02d2 python3`_PyEval_EvalCodeWithName + 418
frame #10: 0x000000010b6ae783 python3`_PyFunction_FastCallKeywords + 195
frame #11: 0x000000010b7eeafe python3`call_function + 174
frame #12: 0x000000010b7ec5ee python3`_PyEval_EvalFrameDefault + 45134
frame #13: 0x000000010b7e02d2 python3`_PyEval_EvalCodeWithName + 418
frame #14: 0x000000010b6ae783 python3`_PyFunction_FastCallKeywords + 195
frame #15: 0x000000010b7eeafe python3`call_function + 174
frame #16: 0x000000010b7ec5ee python3`_PyEval_EvalFrameDefault + 45134
frame #17: 0x000000010b7e02d2 python3`_PyEval_EvalCodeWithName + 418
frame #18: 0x000000010b844c40 python3`PyRun_FileExFlags + 256
frame #19: 0x000000010b8440b7 python3`PyRun_SimpleFileExFlags + 391
frame #20: 0x000000010b8707ec python3`pymain_main + 9564
frame #21: 0x000000010b680a9d python3`main + 125
frame #22: 0x00007fff6c8fded9 libdyld.dylib`start + 1
frame #23: 0x00007fff6c8fded9 libdyld.dylib`start + 1
thread #2, stop reason = signal SIGSTOP
frame #0: 0x00007fff6ca3a7de libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff6caf4593 libsystem_pthread.dylib`_pthread_cond_wait + 724
frame #2: 0x000000010b7df791 python3`take_gil + 417
frame #3: 0x000000010b7dfad6 python3`PyEval_AcquireThread + 22
frame #4: 0x000000011a5cfd12 libtorch_python.dylib`pybind11::gil_scoped_acquire::gil_scoped_acquire() + 130
frame #5: 0x000000011a973c48 libtorch_python.dylib`pybind11::function std::__1::__invoke_void_return_wrapper<pybind11::function>::__call<pybind11::detail::type_caster<std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>, void>::load(pybind11::handle, bool)::'lambda'(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(pybind11::detail::type_caster<std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>, void>::load(pybind11::handle, bool)::'lambda'(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)&&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&) + 72
frame #6: 0x000000011a973bc2 libtorch_python.dylib`std::__1::__function::__func<pybind11::detail::type_caster<std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>, void>::load(pybind11::handle, bool)::'lambda'(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >), std::__1::allocator<pybind11::detail::type_caster<std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>, void>::load(pybind11::handle, bool)::'lambda'(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>, pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&) + 18
frame #7: 0x000000011a9741cf libtorch_python.dylib`std::__1::__function::__func<torch::jit::script::(anonymous namespace)::pythonResolver(std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>)::$_29, std::__1::allocator<torch::jit::script::(anonymous namespace)::pythonResolver(std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>)::$_29>, std::__1::shared_ptr<torch::jit::script::SugaredValue> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&) + 79
frame #8: 0x000000011e75e97b libtorch.1.dylib`torch::jit::script::Environment::getSugaredVar(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::SourceRange, bool) + 2059
frame #9: 0x000000011e76d0a9 libtorch.1.dylib`torch::jit::script::Environment::getSugaredVar(torch::jit::script::Ident const&, bool) + 153
frame #10: 0x000000011e75bac8 libtorch.1.dylib`torch::jit::script::to_ir::emitSugaredExpr(torch::jit::script::Expr, unsigned long, std::__1::shared_ptr<c10::Type>) + 248
frame #11: 0x000000011e75bb8d libtorch.1.dylib`torch::jit::script::to_ir::emitSugaredExpr(torch::jit::script::Expr, unsigned long, std::__1::shared_ptr<c10::Type>) + 445
frame #12: 0x000000011e76d84e libtorch.1.dylib`torch::jit::script::to_ir::emitApplyExpr(torch::jit::script::Apply&, unsigned long) + 110
frame #13: 0x000000011e75bd50 libtorch.1.dylib`torch::jit::script::to_ir::emitSugaredExpr(torch::jit::script::Expr, unsigned long, std::__1::shared_ptr<c10::Type>) + 896
frame #14: 0x000000011e75dc67 libtorch.1.dylib`torch::jit::script::to_ir::emitExpr(torch::jit::script::Expr, std::__1::shared_ptr<c10::Type>) + 103
frame #15: 0x000000011e770e91 libtorch.1.dylib`torch::jit::script::to_ir::getNamedValues(std::__1::vector<std::__1::shared_ptr<torch::jit::script::Tree>, std::__1::allocator<std::__1::shared_ptr<torch::jit::script::Tree> > >, bool) + 1025
frame #16: 0x000000011e76f2ec libtorch.1.dylib`torch::jit::script::to_ir::emitSimpleExpr(std::__1::shared_ptr<torch::jit::script::Tree> const&, std::__1::shared_ptr<c10::Type>) + 140
frame #17: 0x000000011e75bd94 libtorch.1.dylib`torch::jit::script::to_ir::emitSugaredExpr(torch::jit::script::Expr, unsigned long, std::__1::shared_ptr<c10::Type>) + 964
frame #18: 0x000000011e75dc67 libtorch.1.dylib`torch::jit::script::to_ir::emitExpr(torch::jit::script::Expr, std::__1::shared_ptr<c10::Type>) + 103
frame #19: 0x000000011e770e91 libtorch.1.dylib`torch::jit::script::to_ir::getNamedValues(std::__1::vector<std::__1::shared_ptr<torch::jit::script::Tree>, std::__1::allocator<std::__1::shared_ptr<torch::jit::script::Tree> > >, bool) + 1025
frame #20: 0x000000011e7769a0 libtorch.1.dylib`torch::jit::script::to_ir::getValues(std::__1::vector<std::__1::shared_ptr<torch::jit::script::Tree>, std::__1::allocator<std::__1::shared_ptr<torch::jit::script::Tree> > >, bool) + 64
frame #21: 0x000000011e773f46 libtorch.1.dylib`torch::jit::script::to_ir::getValues(torch::jit::script::List<torch::jit::script::Expr>, bool) + 86
frame #22: 0x000000011e752cfe libtorch.1.dylib`torch::jit::script::to_ir::emitReturn(c10::optional<torch::jit::script::Return>, c10::FunctionSchema const&) + 158
frame #23: 0x000000011e74fdef libtorch.1.dylib`torch::jit::script::to_ir::to_ir(torch::jit::script::Def, std::__1::function<std::__1::shared_ptr<torch::jit::script::SugaredValue> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&)>, std::__1::shared_ptr<torch::jit::script::SugaredValue>, torch::jit::script::Method&) + 1199
frame #24: 0x000000011e74f75d libtorch.1.dylib`std::__1::__function::__func<torch::jit::script::defineMethodsInModule(std::__1::shared_ptr<torch::jit::script::Module>, std::__1::vector<torch::jit::script::Def, std::__1::allocator<torch::jit::script::Def> > const&, std::__1::vector<std::__1::function<std::__1::shared_ptr<torch::jit::script::SugaredValue> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&)>, std::__1::allocator<std::__1::function<std::__1::shared_ptr<torch::jit::script::SugaredValue> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&)> > > const&, std::__1::shared_ptr<torch::jit::script::SugaredValue>)::$_7, std::__1::allocator<torch::jit::script::defineMethodsInModule(std::__1::shared_ptr<torch::jit::script::Module>, std::__1::vector<torch::jit::script::Def, std::__1::allocator<torch::jit::script::Def> > const&, std::__1::vector<std::__1::function<std::__1::shared_ptr<torch::jit::script::SugaredValue> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&)>, std::__1::allocator<std::__1::function<std::__1::shared_ptr<torch::jit::script::SugaredValue> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&)> > > const&, std::__1::shared_ptr<torch::jit::script::SugaredValue>)::$_7>, void (torch::jit::script::Method&)>::operator()(torch::jit::script::Method&) + 221
frame #25: 0x000000011e78475f libtorch.1.dylib`torch::jit::script::Method::ensure_defined() + 175
frame #26: 0x000000011e7479f8 libtorch.1.dylib`torch::jit::script::defineMethodsInModule(std::__1::shared_ptr<torch::jit::script::Module>, std::__1::vector<torch::jit::script::Def, std::__1::allocator<torch::jit::script::Def> > const&, std::__1::vector<std::__1::function<std::__1::shared_ptr<torch::jit::script::SugaredValue> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&)>, std::__1::allocator<std::__1::function<std::__1::shared_ptr<torch::jit::script::SugaredValue> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, torch::jit::script::Method&, torch::jit::SourceRange const&)> > > const&, std::__1::shared_ptr<torch::jit::script::SugaredValue>) + 2024
frame #27: 0x000000011a974729 libtorch_python.dylib`void pybind11::cpp_function::initialize<torch::jit::script::initJitScriptBindings(_object*)::$_3, void, std::__1::shared_ptr<torch::jit::script::Module>, std::__1::vector<torch::jit::script::Def, std::__1::allocator<torch::jit::script::Def> > const&, std::__1::vector<std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>, std::__1::allocator<std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)> > > const&, std::__1::vector<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, pybind11::object, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, pybind11::object> > >, std::__1::allocator<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, pybind11::object, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, pybind11::object> > > > > const&, pybind11::name, pybind11::is_method, pybind11::sibling>(torch::jit::script::initJitScriptBindings(_object*)::$_3&&, void (*)(std::__1::shared_ptr<torch::jit::script::Module>, std::__1::vector<torch::jit::script::Def, std::__1::allocator<torch::jit::script::Def> > const&, std::__1::vector<std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>, std::__1::allocator<std::__1::function<pybind11::function (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)> > > const&, std::__1::vector<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, pybind11::object, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, pybind11::object> > >, std::__1::allocator<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, pybind11::object, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, pybind11::object> > > > > const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&)::'lambda'(pybind11::detail::function_call&)::__invoke(pybind11::detail::function_call&) + 857
frame #28: 0x000000011a5d5f84 libtorch_python.dylib`pybind11::cpp_function::dispatcher(_object*, _object*, _object*) + 3412
frame #29: 0x000000010b6ae958 python3`_PyMethodDef_RawFastCallKeywords + 392
frame #30: 0x000000010b6ae420 python3`_PyObject_FastCallKeywords + 592
frame #31: 0x000000010b7eebe4 python3`call_function + 404
frame #32: 0x000000010b7ec684 python3`_PyEval_EvalFrameDefault + 45284
frame #33: 0x000000010b6ae078 python3`function_code_fastcall + 120
frame #34: 0x000000010b7eeafe python3`call_function + 174
frame #35: 0x000000010b7ec6bf python3`_PyEval_EvalFrameDefault + 45343
frame #36: 0x000000010b7e02d2 python3`_PyEval_EvalCodeWithName + 418
frame #37: 0x000000010b6ad577 python3`_PyFunction_FastCallDict + 231
frame #38: 0x000000010b7310b1 python3`slot_tp_init + 193
frame #39: 0x000000010b73b091 python3`type_call + 241
frame #40: 0x000000010b6ae283 python3`_PyObject_FastCallKeywords + 179
frame #41: 0x000000010b7eebe4 python3`call_function + 404
frame #42: 0x000000010b7ec6bf python3`_PyEval_EvalFrameDefault + 45343
frame #43: 0x000000010b6ae078 python3`function_code_fastcall + 120
frame #44: 0x000000010b7ec8cf python3`_PyEval_EvalFrameDefault + 45871
frame #45: 0x000000010b6ae078 python3`function_code_fastcall + 120
frame #46: 0x000000010b7eeafe python3`call_function + 174
frame #47: 0x000000010b7ec5ee python3`_PyEval_EvalFrameDefault + 45134
frame #48: 0x000000010b6ae078 python3`function_code_fastcall + 120
frame #49: 0x000000010b7eeafe python3`call_function + 174
frame #50: 0x000000010b7ec5ee python3`_PyEval_EvalFrameDefault + 45134
frame #51: 0x000000010b6ae078 python3`function_code_fastcall + 120
frame #52: 0x000000010b6b14a2 python3`method_call + 130
frame #53: 0x000000010b6aeef2 python3`PyObject_Call + 130
frame #54: 0x000000010b8d011b python3`t_bootstrap + 123
frame #55: 0x00007fff6caf1305 libsystem_pthread.dylib`_pthread_body + 126
frame #56: 0x00007fff6caf426f libsystem_pthread.dylib`_pthread_start + 70
frame #57: 0x00007fff6caf0415 libsystem_pthread.dylib`thread_start + 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment