OS4 DepotLogo by Alessandro Bacchia 
(anonymous IP: 216.73.216.54,2443) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (347)
   o Datatype (51)
   o Demo (204)
   o Development (617)
   o Document (24)
   o Driver (98)
   o Emulation (154)
   o Game (1033)
   o Graphics (513)
   o Library (119)
   o Network (237)
   o Office (67)
   o Utility (946)
   o Video (73)

Total files: 4483

Full index file
Recent index file

 Links

  Amigans.net
  Aminet
  IntuitionBase
  Hyperion Entertainment
  A-Eon
  Amiga Future


Support the site


 Readme for:  Development » Utility » deadlock.lha

deadlock

Description: Deadlock is a debugging tool that monitors locks
Download: deadlock.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 9kb
Version: 1
Date: 18 Feb 2026
Author: Kjetil Hvalstrand
Submitter: Kjetil Hvalstrand
Email: kjetil hvalstrand/gmail com
Category: development/utility
License: Other
Distribute: yes
Min OS Version: 4.1
FileID: 13694
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads:  (Current version)
 (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
Deadlock

Deadlock is a debugging tool that monitors the Intuition and Graphics locking
system to detect which process caused a GUI deadlock.

It patches follwoing functions in:

    intuition.library

    * LockIBase()
    * LockLayerInfo()
    * LockLayer()
    * LockLayers()
    * LockScreenList()
    * LockPubScreenList()
    * LockWindowList()
    * LockGadgetList()

    graphics.library

    * LockLayerInfo()
    * LockLayer()
    * LockLayers()

    Lock activity is tracked per PID.

    If the system freezes without a Guru (no input, no redraw, no window
movement), Deadlock can identify the task still holding a lock.

Installation

    Deadlock must be started before Workbench is loaded.
    Place it just before LoadWB in S:Startup-Sequence.
    To allow debugging after a freeze, add this to S:User-Startup:

    NewShell AUX:

    This creates a serial console so you can connect after the machine locks up.

Usage

    Use DeadLockCtrl to control the monitor:

    DeadLockCtrl LIST   ; list current locks per PID
    DeadLockCtrl QUIT   ; disable Deadlock

    If a deadlock occurs:

    Connect via the serial console.

    Run "DeadLockCtrl LIST" from putty/windows or picocom/linux

    Identify the PID still holding a lock.

    Run:

    FrozenAt PID=???

    If the binary is not stripped, the stack trace will usually reveal the
offending function.

    Send the stack trace to the program’s author.



Copyright © 2004-2026 by Björn Hagström All Rights Reserved