<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CrashReportExtension",
  "identifier" : "/documentation/CrashReportExtension/CrashedProcess/corpsePort",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CrashReportExtension"
    ],
    "preciseIdentifier" : "s:20CrashReportExtension14CrashedProcessC10corpsePorts6UInt32Vvp"
  },
  "title" : "corpsePort"
}
-->

# corpsePort

A property that provides a Mach port to the crashed process.

```
final var corpsePort: mach_port_t { get }
```

## Discussion

The corpse port is a read-only task port for a process that terminated but is still available for inspecting state and data.
Send Mach IPC interface commands over this port to find leaks, symbolicate backtraces, and more.
For example, call `task_threads` to enumerate threads, and call `mach_vm_read` to read memory from the process.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)