Skip to content

Instantly share code, notes, and snippets.

@xmfan
Created May 21, 2024 22:31
Show Gist options
  • Save xmfan/d2dcddda2f042df35832992753e3df34 to your computer and use it in GitHub Desktop.
Save xmfan/d2dcddda2f042df35832992753e3df34 to your computer and use it in GitHub Desktop.
gdb backtrace
#0 0x00007ffff7c8b94c in __pthread_kill_implementation () from /lib64/libc.so.6
#1 0x00007ffff7c3e646 in raise () from /lib64/libc.so.6
#2 0x00007ffff7c287f3 in abort () from /lib64/libc.so.6
#3 0x00007ffff66b135a in __cxxabiv1::__terminate (handler=<optimized out>) at /opt/conda/conda-bld/gcc-compiler_1654084175708/work/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48
#4 0x00007ffff66b03b9 in __cxa_call_terminate (ue_header=0x14225d90) at /opt/conda/conda-bld/gcc-compiler_1654084175708/work/gcc/libstdc++-v3/libsupc++/eh_call.cc:54
#5 0x00007ffff66b0ae7 in __cxxabiv1::__gxx_personality_v0 (version=<optimized out>, actions=6, exception_class=5138137972254386944, ue_header=0x14225d90, context=<optimized out>) at /opt/conda/conda-bld/gcc-compiler_1654084175708/work/gcc/libstdc++-v3/libsupc++/eh_personality.cc:685
#6 0x00007ffff74f51e4 in _Unwind_RaiseException_Phase2 (exc=0x14225d90, context=0x7fffffffbdb0, frames_p=0x7fffffffbcb8) at /opt/conda/conda-bld/gcc-compiler_1654084175708/work/gcc/libgcc/unwind.inc:64
#7 0x00007ffff74f5c1e in _Unwind_Resume (exc=0x14225d90) at /opt/conda/conda-bld/gcc-compiler_1654084175708/work/gcc/libgcc/unwind.inc:241
#8 0x00007fffa90015fb in at::CUDAGeneratorState::unregister_graph(at::cuda::CUDAGraph*) [clone .cold] () from /home/xmfan/.conda/envs/segfault/lib/python3.10/site-packages/torch/lib/libtorch_cuda.so
#9 0x00007fffa91e1e3c in at::cuda::CUDAGraph::~CUDAGraph() () from /home/xmfan/.conda/envs/segfault/lib/python3.10/site-packages/torch/lib/libtorch_cuda.so
#10 0x00007ffff5efbba2 in std::_Sp_counted_ptr<at::cuda::CUDAGraph*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() () from /home/xmfan/.conda/envs/segfault/lib/python3.10/site-packages/torch/lib/libtorch_python.so
#11 0x00007ffff5efbc30 in pybind11::class_<at::cuda::CUDAGraph, std::shared_ptr<at::cuda::CUDAGraph> >::dealloc(pybind11::detail::value_and_holder&) () from /home/xmfan/.conda/envs/segfault/lib/python3.10/site-packages/torch/lib/libtorch_python.so
#12 0x00007ffff5692cd3 in pybind11::detail::clear_instance(_object*) () from /home/xmfan/.conda/envs/segfault/lib/python3.10/site-packages/torch/lib/libtorch_python.so
#13 0x00007ffff5693c51 in pybind11_object_dealloc () from /home/xmfan/.conda/envs/segfault/lib/python3.10/site-packages/torch/lib/libtorch_python.so
#14 0x000000000050e70a in subtype_dealloc (self=0x7fff3afb3dd0) at /usr/local/src/conda/python-3.10.14/Objects/typeobject.c:1336
#15 0x00000000004ead66 in _Py_Dealloc (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/object.c:2295
#16 _Py_DECREF (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#17 _Py_XDECREF (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Include/object.h:567
#18 dict_dealloc (mp=0x7fff4023d7c0) at /usr/local/src/conda/python-3.10.14/Objects/dictobject.c:2068
#19 0x000000000050e114 in _Py_Dealloc (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/object.c:2295
#20 _Py_DECREF (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#21 subtype_dealloc (self=0x7fff3ae44c70) at /usr/local/src/conda/python-3.10.14/Objects/typeobject.c:1438
#22 0x00000000004ead66 in _Py_Dealloc (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/object.c:2295
#23 _Py_DECREF (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#24 _Py_XDECREF (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Include/object.h:567
#25 dict_dealloc (mp=0x7fff3af85140) at /usr/local/src/conda/python-3.10.14/Objects/dictobject.c:2068
#26 0x000000000050e114 in _Py_Dealloc (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/object.c:2295
#27 _Py_DECREF (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#28 subtype_dealloc (self=0x7fff3dead510) at /usr/local/src/conda/python-3.10.14/Objects/typeobject.c:1438
#29 0x000000000050a2df in _Py_Dealloc (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/object.c:2295
#30 _Py_DECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#31 _Py_XDECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:567
#32 method_dealloc (im=0x7fff42d0fa80) at /usr/local/src/conda/python-3.10.14/Objects/classobject.c:241
#33 0x00000000005c8b38 in _Py_DECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#34 partial_clear (pto=pto@entry=0x7fff3afb3ce0) at /usr/local/src/conda/python-3.10.14/Modules/_functoolsmodule.c:153
#35 0x00000000005c890f in partial_dealloc (pto=0x7fff3afb3ce0) at /usr/local/src/conda/python-3.10.14/Modules/_functoolsmodule.c:180
#36 0x00000000005140d1 in _Py_DECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#37 _Py_XDECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:567
#38 cell_dealloc (op=0x7fff3ae44a30) at /usr/local/src/conda/python-3.10.14/Objects/cellobject.c:82
#39 0x00000000004ea24b in _Py_Dealloc (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/object.c:2295
#40 _Py_DECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#41 _Py_XDECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:567
#42 tupledealloc (op=0x7fff404f71c0) at /usr/local/src/conda/python-3.10.14/Objects/tupleobject.c:276
#43 0x00000000004fbf98 in _Py_Dealloc (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/object.c:2295
#44 _Py_DECREF (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#45 func_clear (op=0x7fff3ddad1b0) at /usr/local/src/conda/python-3.10.14/Objects/funcobject.c:636
#46 func_dealloc (op=0x7fff3ddad1b0) at /usr/local/src/conda/python-3.10.14/Objects/funcobject.c:648
#47 0x00000000004eacf8 in _Py_Dealloc (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/object.c:2295
#48 _Py_DECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#49 _Py_XDECREF (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Include/object.h:567
#50 free_keys_object (keys=0x7fff386ec2f0, keys@entry=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/dictobject.c:628
#51 dictkeys_decref (dk=0x7fff386ec2f0, dk@entry=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Objects/dictobject.c:337
#52 dict_dealloc (mp=0x7fff3af79f80) at /usr/local/src/conda/python-3.10.14/Objects/dictobject.c:2076
#53 0x000000000055c92f in _Py_DECREF (op=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /usr/local/src/conda/python-3.10.14/Include/object.h:500
#54 cell_clear (op=<optimized out>) at /usr/local/src/conda/python-3.10.14/Objects/cellobject.c:127
#55 0x00000000004e14f3 in delete_garbage (old=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>, collectable=0x7fffffffc4f0, gcstate=0x75c9c8, tstate=0x7786b0) at /usr/local/src/conda/python-3.10.14/Modules/gcmodule.c:1017
#56 gc_collect_main (tstate=0x7786b0, generation=2, n_collected=0x7fffffffc5c0, n_uncollectable=0x7fffffffc5b8, nofail=0) at /usr/local/src/conda/python-3.10.14/Modules/gcmodule.c:1300
#57 0x00000000005915bc in gc_collect_with_callback (tstate=tstate@entry=0x7786b0, generation=generation@entry=2) at /usr/local/src/conda/python-3.10.14/Modules/gcmodule.c:1413
#58 0x00000000005c6573 in PyGC_Collect () at /usr/local/src/conda/python-3.10.14/Modules/gcmodule.c:2099
#59 0x00000000005c5fc6 in Py_FinalizeEx () at /usr/local/src/conda/python-3.10.14/Python/pylifecycle.c:1784
#60 0x00000000005b7dd9 in Py_RunMain () at /usr/local/src/conda/python-3.10.14/Modules/main.c:672
#61 0x0000000000588679 in Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at /usr/local/src/conda/python-3.10.14/Modules/main.c:1090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment