Python faulthandler·tracemalloc·objgraph — 죽음과 누수 진단
세그폴트 트레이스백, 메모리 할당 추적, 객체 그래프 시각화.
12개의 포스트
세그폴트 트레이스백, 메모리 할당 추적, 객체 그래프 시각화.
py-spy로 콜스택 dump, 샘플링 프로파일링, flamegraph, 외부 attach.
코루틴 콜스택 추적, asyncio debug=True, slow callback, race condition.
debugpy로 IDE 디버깅, 원격 프로세스 attach, justMyCode, 멀티프로세스.
표준 라이브러리 pdb. breakpoint(), 핵심 명령, ipdb, postmortem.
Frame filter·FrameDecorator의 표시와 실제 unwind를 구분합니다. 고정한 AArch64 fixture의 caller 복원, GDB JIT 등록과 runtime helper의 경계를 살펴봅니다.
to_string / children / display_hint, MI 출력, auto-load, libstdc++ printer 분석.
사용자 정의 명령, $name(...) 함수, stop hook, 자동 BP 액션 패턴.
GDB Python 인터프리터, 핵심 객체(Value/Type/Frame/Symbol), 디버기 데이터 조작.
GDB / LLDB Python API. pretty-printer 작성, 커스텀 명령, 자동화, MI.
Python coroutine으로 RTL testbench — productivity gain.
Buildroot에 새 패키지를 추가하는 실전 — autotools·cmake·python 세 케이스.