# \#segmentation-fault

**URL:** https://forums.swift.org/tag/segmentation-fault/525.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Bad pointer dereference in stateless task](https://forums.swift.org/t/bad-pointer-dereference-in-stateless-task/68244)

<div class="topic-metadata">

**Author:** [@bbrk24](https://forums.swift.org/u/bbrk24)\
**Replies:** 1\
**Last updated:** [November 3, 2023, 11:47pm UTC](https://forums.swift.org/t/bad-pointer-dereference-in-stateless-task/68244 "2023-11-03T23:47:49Z")

</div>

Here's my entire code: Task { try! await Task.sleep(nanoseconds: 1\_000\_000) print("Hello") } Guess what it outputs? (Hint: it's not "Hello") That's right, it segfaults! Segmentation fault (core dumped) 💣 Program…

---

## [New "segmentation fault 11" in Swift 5.6](https://forums.swift.org/t/new-segmentation-fault-11-in-swift-5-6/56141)

<div class="topic-metadata">

**Author:** [@jeremyabannister](https://forums.swift.org/u/jeremyabannister)\
**Replies:** 7\
**Last updated:** [March 22, 2022, 7:07pm UTC](https://forums.swift.org/t/new-segmentation-fault-11-in-swift-5-6/56141 "2022-03-22T19:07:43Z")

</div>

This code used to compile and function correctly (prior to Swift 5.6) but now with Swift 5.6 I get a "segmentation fault 11" error: /// import SwiftUI /// public protocol DisplayableValue { } /// public protocol …

---

## [Segmentation fault in Linux with Swift 5.4 when using Grand Central Dispatch](https://forums.swift.org/t/segmentation-fault-in-linux-with-swift-5-4-when-using-grand-central-dispatch/49036)

<div class="topic-metadata">

**Author:** [@GalenRhodes](https://forums.swift.org/u/GalenRhodes)\
**Replies:** 5\
**Last updated:** [June 4, 2021, 8:30pm UTC](https://forums.swift.org/t/segmentation-fault-in-linux-with-swift-5-4-when-using-grand-central-dispatch/49036 "2021-06-04T20:30:22Z")

</div>

Here's one that has me stumped. The following code runs just fine under MacOS but causes a Segmentation fault under Linux. Under both systems I'm using Swift 5.4. Linux is running Ubuntu 20. Any thoughts? If I chang…
