Overview
- Skill Key
- crazyss/linux-kernel-crash-debug
- Author
- crazyss
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/crazyss/linux-kernel-crash-debug
- Latest Commit SHA
- e6c2f1d036d5d6e4d686afebb101089c9eea39f3
使用 crash 工具调试 Linux 内核崩溃。当用户提到 kernel crash、kernel panic、vmcore 分析、内核转储调试、crash utility、内核 oops 调试时,使用此 skill。也适用于用户询问如何分析内核崩溃转储文件、如何使用 crash 命令、如何定位内核问题根因等场景。
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 linux-kernel-crash-debug 技能。 若已安装,则直接安装 linux-kernel-crash-debug 技能。
# Linux Kernel Crash Debugging 本 skill 指导如何使用 crash 工具分析 Linux 内核崩溃转储。 ## 快速开始 ### 启动会话 ```bash # 分析转储文件 crash vmlinux vmcore # 调试运行中的系统 crash vmlinux # 原始 RAM 转储 crash vmlinux ddr.bin --ram_start=0x80000000 ``` ### 核心调试流程 ``` 1. crash> sys # 确认 panic 原因 2. crash> log # 查看内核日志 3. crash> bt # 分析调用栈 4. crash> struct <type> # 检查数据结构 5. crash> kmem <addr> # 内存分析 ``` ## 前置要求 | 项目 | 要求 | |------|------| | **vmlinux** | 必须带 debug symbols (`CONFIG_DEBUG_INFO=y`) | | **vmcore** | kdump/netdump/diskdump/ELF 格式 | | **版本** | vmlinux 必须与 vmcore 内核版本完全匹配 | 获取 debuginfo: ```bash # RHEL/CentOS yum install kernel-debuginfo # 自编译内核 make menuconfig # 启用 CONFIG_DEBUG_INFO ``` ## 核心命令速查 ### 调试分析 | 命令 | 用途 | 示例 | |------|------|------| | `sys` | 系统信息/panic 原因 | `sys`, `sys -i` | | `log` | 内核消息缓冲区 | `log`, `log \| tail` | | `bt` | 调用栈回溯 | `bt`, `bt -a`, `bt -f` | | `struct` | 结构体查看 | `struct task_struct <addr>` | | `p/px/pd` | 打印变量 | `p jiffies`, `px current` | | `kmem` | 内存分析 | `kmem -i`, `kmem -S <cache>` | ### 任务和进程 | 命令 | 用途 | 示例 | |------|------|------| | `ps` | 进程列表 | `ps`, `ps -m \| grep UN` | | `set` | 切换上下文 | `set <pid>`, `set -p` | | `foreach` | 批量任务操作 | `foreach bt`, `foreach UN bt` | | `task` | task_struct 内容 | `task <pid>` | | `files` | 打开的文件 | `files <pid>` | ### 内存操作 | 命令 | 用途 | 示例 | |------|------|------| | `rd` | 读取内存 | `rd <addr>`, `rd -p <phys>` | | `search` | 搜索内存 | `search -k deadbeef` | | `vtop` | 地址翻译 | `vtop <addr>` | | `list` | 遍历链表 | `list task_struct.tasks -h <addr>` | ## bt 命令详解 最重要的调试命令: ``` crash> bt # 当前任务调用栈 crash> bt -a # 所有 CPU 活动任务 crash> bt -f # 展开栈帧原始数据 crash> bt -F # 符号化栈帧数据 crash> bt -...
# Linux Kernel Crash Debug Skill
[中文文档](README_CN.md)
Welcome to **Linux Kernel Crash Debug Skill**! This is a Claude Code skill that helps you debug Linux kernel crashes using the crash utility.
## Features
- **Quick Start Guide**: Essential commands and debugging workflow
- **Complete Command Reference**: All crash utility commands with examples
- **Advanced Techniques**: Memory analysis, linked list traversal, address translation
- **Real-world Cases**: Kernel BUG, deadlock, OOM, NULL pointer, stack overflow
- **vmcore Knowledge**: ELF format, VMCOREINFO, dump file types
## Installation
```bash
# Download the skill file
git clone https://github.com/crazyss/linux-kernel-crash-debug.git
# Install in Claude Code
claude skill install linux-kernel-crash-debug.skill
```
## Quick Start
```bash
# Start crash session
crash vmlinux vmcore
# Basic debugging flow
crash> sys # Check panic reason
crash> log # View kernel log
crash> bt # Backtrace
crash> struct <type> # Inspect data structures
crash> kmem <addr> # Memory analysis
```
## Structure
```
linux-kernel-crash-debug/
├── SKILL.md # Main skill file
├── README.md # English documentation
├── README_CN.md # Chinese documentation
├── CONTRIBUTING.md # Contribution guide
├── LICENSE # MIT License
├── linux-kernel-crash-debug.skill # Packaged skill
└── references/ # Detailed documentation
├── advanced-commands.md # In-depth command usage
├── vmcore-format.md # vmcore file format details
└── case-studies.md # Real-world debugging examples
```
## Usage
This skill triggers when you mention:
- kernel crash / kernel panic
- vmcore analysis
- crash utility
- kernel oops debugging
## Contributing
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
- Report bugs or request features via [Issues](https://gi...
heyixuan2
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
edholofy
University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning required.
lethehades
macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance
capt-marbles
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.
carev01
Full-text search across structured Markdown documentation archives using SQLite FTS5. Use when you need to search large collections of Markdown articles that are separated by "---" delimiters and contain source URLs (marked with "*Source:" pattern). Provides fast BM25-ranked search with automatic source URL extraction for citations. Ideal for research, documentation lookups, and knowledge base exploration. Requires indexing documentation first with `docs.py index`.
caqlayan
Tweet Processor Skill