Guide for debugging crashes related to custom memory heaps, particularly use-after-free issues caused by static destruction ordering, DEBUG vs RELEASE discrepancies, and custom allocator lifecycle problems.
Install
npx skills add benchflow-ai/skillsbench --skill custom-memory-heap-crashnpx skills add benchflow-ai/skillsbench --skill custom-memory-heap-crash -a claude-code -gnpx skills add benchflow-ai/skillsbench --skill custom-memory-heap-crash -a codex -ggemini skills install https://github.com/benchflow-ai/skillsbench.git --path registry/terminal_bench_2.0/letta_skills_batch/terminal_bench_2_0_custom-memory-heap-crash/environment/skills/custom-memory-heap-crashgh skill install benchflow-ai/skillsbench custom-memory-heap-crashgit clone --depth 1 https://github.com/benchflow-ai/skillsbench /tmp/benchflow-ai__skillsbench
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/benchflow-ai__skillsbench/registry/terminal_bench_2.0/letta_skills_batch/terminal_bench_2_0_custom-memory-heap-crash/environment/skills/custom-memory-heap-crash ~/.claude/skills/custom-memory-heap-crash # Claude Code
cp -R /tmp/benchflow-ai__skillsbench/registry/terminal_bench_2.0/letta_skills_batch/terminal_bench_2_0_custom-memory-heap-crash/environment/skills/custom-memory-heap-crash ~/.agents/skills/custom-memory-heap-crash # Codex, Cursor, Gemini CLI, Copilot, OpenCode