# \#backtrace

**URL:** https://forums.swift.org/tag/backtrace/762.md

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

---

## [Steps to resolve "unable to protect … swift-backtrace … disabling backtracing"?](https://forums.swift.org/t/steps-to-resolve-unable-to-protect-swift-backtrace-disabling-backtracing/72076)

<div class="topic-metadata">

**Author:** [@\_marc](https://forums.swift.org/u/_marc)\
**Replies:** 6\
**Last updated:** [July 11, 2026, 8:37pm UTC](https://forums.swift.org/t/steps-to-resolve-unable-to-protect-swift-backtrace-disabling-backtracing/72076 "2026-07-11T20:37:42Z")

</div>

What would be the steps needed to resolve "unable to protect … swift-backtrace … disabling backtracing"? Setup: Swift Community Apt Repository installation of Swift on a Raspberry Pi 5 with Raspberry Pi OS. Steps: The …

---

## [Suppressing backtrace warnings](https://forums.swift.org/t/suppressing-backtrace-warnings/79235)

<div class="topic-metadata">

**Author:** [@wes1](https://forums.swift.org/u/wes1)\
**Replies:** 7\
**Last updated:** [August 11, 2025, 5:14pm UTC](https://forums.swift.org/t/suppressing-backtrace-warnings/79235 "2025-08-11T17:14:16Z")

</div>

With 6.1, how can I get backtraces without warnings polluting output from every call? I've been setting SWIFT\_BACKTRACE="enable=tty,output-to=stderr" Now (in Swift 6.1 from Xcode 16.3) I constantly get swift runtime:…

---

## [Using Backtrace API on linux with Swift 5.10](https://forums.swift.org/t/using-backtrace-api-on-linux-with-swift-5-10/71048)

<div class="topic-metadata">

**Author:** [@petrpavlik1](https://forums.swift.org/u/petrpavlik1)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 9:11am UTC](https://forums.swift.org/t/using-backtrace-api-on-linux-with-swift-5-10/71048 "2024-04-03T09:11:08Z")

</div>

I've been looking for a way to enrich the error logs from my backend by a stack trace and discovered the Backtrace API. I thought it might be useful to share the progress/differences I've observed trying to use this API…

---

## [Backtraces in Swift](https://forums.swift.org/t/backtraces-in-swift/61736)

<div class="topic-metadata">

**Author:** [@al45tair](https://forums.swift.org/u/al45tair)\
**Replies:** 13\
**Last updated:** [November 18, 2023, 8:04am UTC](https://forums.swift.org/t/backtraces-in-swift/61736 "2023-11-18T08:04:45Z")

</div>

Anyone who works on command line tools written in Swift will know that program crashes can be somewhat tricky to debug — in some cases a crashing program will simply terminate with no output to explain what went wrong. W…

---

## [\[Pitch\] Swift Backtracing API](https://forums.swift.org/t/pitch-swift-backtracing-api/62741)

<div class="topic-metadata">

**Author:** [@al45tair](https://forums.swift.org/u/al45tair)\
**Replies:** 72\
**Last updated:** [August 31, 2023, 6:51pm UTC](https://forums.swift.org/t/pitch-swift-backtracing-api/62741 "2023-08-31T18:51:58Z")

</div>

As part of my work on adding backtraces to Swift, I'd like to propose the addition of an API surface so that Swift programs are able to programmatically capture backtraces. This is often helpful when debugging a non-fata…
