Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 590597b

Browse files
authored
Merge pull request #11 from nodes-vapor/steffendsommer-patch-1
Fix Linux crash due to call to callStackSymbols
2 parents e96c852 + 1a5325c commit 590597b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Sources/Bugsnag/ConnectionManager.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ public final class ConnectionMananger {
2525
var code: [String: Node] = [:]
2626

2727
var index = 0
28-
for entry in Thread.callStackSymbols {
29-
code[String(index)] = Node(entry)
28+
//FIXME: Temporary workaround for Linux breaking when calling Thread.
29+
#if os(OSX)
30+
for entry in Thread.callStackSymbols {
31+
code[String(index)] = Node(entry)
3032

31-
index = index + 1
32-
}
33+
index = index + 1
34+
}
35+
#endif
3336

3437
let stacktrace = Node([
3538
Node([

0 commit comments

Comments
 (0)