Sun Java Solaris Communities My SDN Account

Article

Analyzing Deadlocks Using the Solaris OS Crash Analysis Tool (CAT)

 
By Anshul Sarin, April 2003  

Overview

Sun released the Solaris Operating System Crash Analysis Tool to help analyze Solaris system core files. This document explains how CAT can be used to analyze deadlock-related system crash dumps. (Originally published on Access1 and reprinted with permission.)

This document discusses Solaris OS CAT macros for retrieving information from system crash dumps, such as the values of structure members, and details about threads, locks, and their owners. This article also looks at how to correlate the information retrieved from Solaris OS CAT macros to analyze the cause of system crashes and hangs. You can download the Solaris Crash Analysis Tool from sun.com.

For more details, see the list of contents below.

Download the document as PDF.

Contents:

  • Overview
  • Example 1: mutex Deadlock
    • Thread Summary
    • Threads on mutex
    • mutex Details
    • Deadlock Detection
    • Broad Steps for Example 1
  • Example 2: Deadlock on a Single Reader/Writer Lock
    • Sleeping Threads and System Memory
    • Process Details
    • Memory Instructions and Arguments
    • vnode and rnode Structures
    • rwlock Details
    • Broad Steps for Example 2
  • Example 3: Reader/Writer Lock and mutex Deadlock
    • Thread Summary
    • mutex and Its Owner
    • rwlock and the Threads
    • Current rwlock Lock Holder
    • Deadlock Detection
    • Broad Steps for Example 3
Rate and Review
Tell us what you think of the content of this page.
Excellent   Good   Fair   Poor  
Comments:
Your email address (no reply is possible without an address):
Sun Privacy Policy

Note: We are not able to respond to all submitted comments.

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.