Skip to content

Instantly share code, notes, and snippets.

@harlanhaskins
Last active December 10, 2015 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlanhaskins/c40bf768a4423b236dff to your computer and use it in GitHub Desktop.
Save harlanhaskins/c40bf768a4423b236dff to your computer and use it in GitHub Desktop.
Current stack trace:
0 libswiftCore.dylib 0x000000011040010a reportBacktrace() + 42
1 libswiftCore.dylib 0x00000001103ffd8d reportOnCrash(char const*) + 45
2 libswiftCore.dylib 0x00000001103ffece swift_reportFatalErrorInFile + 190
3 libswiftCore.dylib 0x000000011001dcf0 Swift.(_assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> ()).(closure #1).(closure #1).(closure #1) + 336
4 libswiftCore.dylib 0x00000001103b6c17 partial apply forwarder for Swift.(_assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> ()).(closure #1).(closure #1).(closure #1) + 103
5 libswiftCore.dylib 0x000000011001d1b7 reabstraction thunk helper from @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@unowned ()) to @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out ()) + 23
6 libswiftCore.dylib 0x00000001103b6cb9 partial apply forwarder for reabstraction thunk helper from @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@unowned ()) to @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out ()) with unmangled suffix ".991" + 89
7 libswiftCore.dylib 0x000000011001cdc0 Swift.StaticString.withUTF8Buffer <A> ((Swift.UnsafeBufferPointer<Swift.UInt8>) -> A) -> A + 608
8 libswiftCore.dylib 0x000000011001db87 Swift.(_assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> ()).(closure #1).(closure #1) + 327
9 libswiftCore.dylib 0x00000001103b6abb partial apply forwarder for Swift.(_assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> ()).(closure #1).(closure #1) + 123
10 libswiftCore.dylib 0x000000011001dd2b reabstraction thunk helper from @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@unowned (), @error @owned Swift.ErrorType) to @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out (), @error @owned Swift.ErrorType) + 43
11 libswiftCore.dylib 0x00000001103b6b77 partial apply forwarder for reabstraction thunk helper from @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@unowned (), @error @owned Swift.ErrorType) to @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out (), @error @owned Swift.ErrorType) + 103
12 libswiftCore.dylib 0x000000010ffe7441 Swift._ContiguousArrayBuffer.withUnsafeBufferPointer <A> ((Swift.UnsafeBufferPointer<A>) throws -> A1) throws -> A1 + 145
13 libswiftCore.dylib 0x000000010ffc3a11 Swift.ContiguousArray.withUnsafeBufferPointer <A> ((Swift.UnsafeBufferPointer<A>) throws -> A1) throws -> A1 + 129
14 libswiftCore.dylib 0x000000011001d35c Swift.(_assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> ()).(closure #1) + 396
15 libswiftCore.dylib 0x00000001103b695b partial apply forwarder for Swift.(_assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> ()).(closure #1) + 155
16 libswiftCore.dylib 0x000000011001d1b7 reabstraction thunk helper from @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@unowned ()) to @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out ()) + 23
17 libswiftCore.dylib 0x00000001103b6a09 partial apply forwarder for reabstraction thunk helper from @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@unowned ()) to @callee_owned (@unowned Swift.UnsafeBufferPointer<Swift.UInt8>) -> (@out ()) with unmangled suffix ".982" + 89
18 libswiftCore.dylib 0x000000011001cdc0 Swift.StaticString.withUTF8Buffer <A> ((Swift.UnsafeBufferPointer<Swift.UInt8>) -> A) -> A + 608
19 libswiftCore.dylib 0x000000011001baaa Swift._assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> () + 378
20 main 0x000000010ff89530 main.buildStack (Swift.Int) -> () + 192
21 main 0x000000010ff8954c main.buildStack (Swift.Int) -> () + 220
22 main 0x000000010ff8954c main.buildStack (Swift.Int) -> () + 220
23 main 0x000000010ff8954c main.buildStack (Swift.Int) -> () + 220
24 main 0x000000010ff8954c main.buildStack (Swift.Int) -> () + 220
25 main 0x000000010ff8954c main.buildStack (Swift.Int) -> () + 220
26 main 0x000000010ff89452 main + 50
27 libdyld.dylib 0x00007fff886135ad start + 1
28 ??? 0x0000000000000001 0x0 + 1
@harlanhaskins
Copy link
Author

func buildStack(n: Int = 5) {
    if n == 0 {
        fatalError("Test!")
    }
    buildStack(n-1)
}

buildStack()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment