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

# EXC_BAD_ACCESS (SIGSEGV)

A memory segmentation fault terminated the process,
often because the process tried to
access an invalid or out-of-bounds address in memory.

## 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.

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)
