<!--
{
  "documentType" : "article",
  "framework" : "Xcode",
  "identifier" : "/documentation/Xcode/SIGBUS",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "EXC_BAD_ACCESS (SIGBUS)"
}
-->

# EXC_BAD_ACCESS (SIGBUS)

A bus error terminated the process,
often because the process tried to
access a misaligned or invalid address in memory,
or due to a pointer authentication failure.

## Discussion

Common problems include
accessing an invalid index in an array,
dereferencing a pointer to an invalid memory location,
or writing to read-only memory.
In many cases, these problems produce `SIGSEGV` rather than `SIGBUS`.

For more information,
see [Investigating memory access crashes](/documentation/Xcode/investigating-memory-access-crashes).

---

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)