strace-syscall-diagnosis

Correlate strace and ltrace traces with kernel logic to diagnose process hangs.

3|2|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/openeuler-mirror/witty-diagnosis-agent --skill strace-syscall-diagnosis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strace-syscall-diagnosis
Source: https://github.com/openeuler-mirror/witty-diagnosis-agent/tree/main/skills/strace-syscall-diagnosis
Command: npx skills add https://github.com/openeuler-mirror/witty-diagnosis-agent --skill strace-syscall-diagnosis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires strace, ltrace, bc, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill resolves complex system-level performance bottlenecks and process hangs by correlating low-level system call traces with kernel-level execution logic.

Core Features & Use Cases

  • Dual-Track Analysis: Simultaneously analyzes syscall execution patterns (strace/ltrace) and kernel-level semantic behavior to ensure high-confidence root cause identification.
  • Automated Fault Classification: Automatically categorizes issues into patterns like permission errors (EACCES), resource leaks (FD/Memory), or synchronization bottlenecks (futex/epoll).
  • Use Case: When a production service experiences intermittent latency spikes or "Too many open files" errors, this skill identifies whether the issue stems from application-level resource leaks, kernel configuration limits, or inefficient syscall retry loops.

Quick Start

Run the strace-syscall-diagnosis skill by providing the target process ID to initiate a baseline diagnostic capture and automated branch recommendation.

Frequently Asked Questions about strace-syscall-diagnosis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose process hangs and resource leaks using strace?

To diagnose process hangs and resource leaks using strace, you trace system calls and correlate them with kernel-level execution logic. This isolates root causes like FD leaks or synchronization contention by analyzing syscall error patterns and cross-validating kernel behavior.

What is the best way to troubleshoot Linux system call latency spikes?

The best way to troubleshoot Linux system call latency spikes is performing a parallel trajectory analysis using strace and ltrace. This dual-track approach cross-validates kernel-level behavior against syscall execution patterns to ensure high-confidence root cause identification for slow I/O.

Can I use strace and ltrace together for root cause isolation?

Yes, you can use strace and ltrace together for root cause isolation. Simultaneously analyzing syscall execution traces and library calls alongside kernel-level semantic logic ensures high-confidence identification of performance bottlenecks and process hangs.

How do I find the cause of Too many open files errors in Linux?

To find the cause of Too many open files errors in Linux, you analyze system call traces to identify whether the issue stems from application-level resource leaks, kernel configuration limits, or inefficient syscall retry loops using automated fault classification.

Does strace diagnosis require kernel-level semantic logic to isolate root causes?

Yes, strace diagnosis requires kernel-level semantic logic to isolate root causes deterministically. Correlating low-level system call traces with kernel execution logic resolves complex performance bottlenecks and process hangs that single-track tracing cannot identify.

Why does strace show EACCES permission errors during system troubleshooting?

Strace shows EACCES permission errors during system troubleshooting when automated fault classification detects syscall error patterns. Correlating these traces with kernel-level execution logic isolates whether the root cause is application-level or kernel configuration limits.