Skip to content

Instantly share code, notes, and snippets.

@rintaro
Created October 26, 2016 03:37
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 rintaro/cb694898821fbbe8b02734862eb69534 to your computer and use it in GitHub Desktop.
Save rintaro/cb694898821fbbe8b02734862eb69534 to your computer and use it in GitHub Desktop.
missing stack dump
$ /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-10-25-a.xctoolchain/usr/bin/swift -frontend -parse validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift
validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:8:13: error: expected '{' in protocol type
protocol a:b
^
validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:9:20: error: expected '{' in protocol type
protocol b:Range<b>
^
Assertion failed: (isInheritedProtocolsValid() || isBeingTypeChecked()), function requiresClassSlow, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/lib/AST/Decl.cpp, line 2659.
Stack dump:
0. Program arguments: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-10-25-a.xctoolchain/usr/bin/swift -frontend -parse validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift
1. While type-checking 'a' at validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:8:1
2. While resolving type b at [validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:8:12 - line:8:12] RangeText="b"
3. While resolving type Range<b> at [validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:9:12 - line:9:19] RangeText="Range<b>"
Abort trap: 6
$ ~/swift-DEVELOPMENT-SNAPSHOT-2016-10-25-a-ubuntu15.10/usr/bin/swift -frontend -parse validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift
validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:8:13: error: expected '{' in protocol type
protocol a:b
^
validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:9:20: error: expected '{' in protocol type
protocol b:Range<b>
^
swift: /home/buildnode/jenkins/workspace/oss-swift-package-linux-ubuntu-15_10/swift/lib/AST/Decl.cpp:2659: bool swift::ProtocolDecl::requiresClassSlow(): Assertion `isInheritedProtocolsValid() || isBeingTypeChecked()' failed.
0 swift 0x00000000031176c8
1 swift 0x00000000031182a6
2 libpthread.so.0 0x00007fba93251d10
3 libc.so.6 0x00007fba91b991c7 gsignal + 55
4 libc.so.6 0x00007fba91b9ae2a abort + 362
5 libc.so.6 0x00007fba91b920bd
6 libc.so.6 0x00007fba91b92172
7 swift 0x0000000000d776b3
8 swift 0x0000000000bc4d88
9 swift 0x0000000000c694bc
10 swift 0x0000000000c69182
11 swift 0x0000000000c6f729
12 swift 0x0000000000c6985a
13 swift 0x0000000000c66396
14 swift 0x0000000000c71119
15 swift 0x0000000000c6974e
16 swift 0x0000000000b7f3b3
17 swift 0x0000000000bc5170
18 swift 0x0000000000bc4f2d
19 swift 0x0000000000bb988d
20 swift 0x0000000000bf11a4
21 swift 0x0000000000bf06c6
22 swift 0x0000000000bfc0fd
23 swift 0x0000000000bfacfe
24 swift 0x0000000000bf16d2
25 swift 0x0000000000bf13c2
26 swift 0x0000000000bf254b
27 swift 0x0000000000bf243f
28 swift 0x0000000000bf0b55
29 swift 0x0000000000cd3b6b
30 swift 0x0000000000cac39d
31 swift 0x0000000000cac529
32 swift 0x0000000000b86e00
33 swift 0x0000000000cd9d58
34 swift 0x0000000000cdfadd
35 swift 0x0000000000cdf95f
36 swift 0x0000000000cdbd69
37 swift 0x0000000000cd9b2d
38 swift 0x0000000000cd98dd
39 swift 0x0000000000bb7706
40 swift 0x0000000000bb8b54
41 swift 0x0000000000bb95c0
42 swift 0x0000000000b89e6d
43 swift 0x0000000000bfbefc
44 swift 0x0000000000bfacfe
45 swift 0x0000000000bf16d2
46 swift 0x0000000000bf13c2
47 swift 0x0000000000bf254b
48 swift 0x0000000000bf243f
49 swift 0x0000000000bf0b55
50 swift 0x0000000000cd3b6b
51 swift 0x0000000000cac39d
52 swift 0x0000000000cac529
53 swift 0x0000000000b86e00
54 swift 0x0000000000cd9d58
55 swift 0x0000000000cdfadd
56 swift 0x0000000000cdf95f
57 swift 0x0000000000cdbd69
58 swift 0x0000000000cd9b2d
59 swift 0x0000000000cd98dd
60 swift 0x0000000000bb7706
61 swift 0x0000000000bb8b54
62 swift 0x0000000000bb95c0
63 swift 0x0000000000b89e6d
64 swift 0x0000000000b9ce13
65 swift 0x0000000000b8ffbc
66 swift 0x0000000000b8fe06
67 swift 0x0000000000bfe612
68 swift 0x0000000000937699
69 swift 0x0000000000476c1f
70 swift 0x0000000000475cde
71 swift 0x000000000043d75b
72 libc.so.6 0x00007fba91b84ac0 __libc_start_main + 240
73 swift 0x000000000043afa9
Stack dump:
0. Program arguments: /home/rintaro/swift-DEVELOPMENT-SNAPSHOT-2016-10-25-a-ubuntu15.10/usr/bin/swift -frontend -parse validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift
1. While type-checking 'a' at validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:8:1
2. While resolving type b at [validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:8:12 - line:8:12] RangeText="b"
3. While resolving type Range<b> at [validation-test/compiler_crashers/28209-swift-protocoldecl-requiresclassslow.swift:9:12 - line:9:19] RangeText="Range<b>"
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment