Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error on linting apple/swift #379

Closed
norio-nomura opened this issue Jan 16, 2016 · 0 comments
Closed

fatal error on linting apple/swift #379

norio-nomura opened this issue Jan 16, 2016 · 0 comments

Comments

@norio-nomura
Copy link
Collaborator

This issue is caused on linting swift/test/Parse/strange-characters.swift that contain NULL characters.

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000

Application Specific Information:
fatal error: : file …/SwiftLint/Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/String+SourceKitten.swift, line 138


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libswiftCore.dylib              0x00000001008619cd function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Exploded> of Swift._assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> () + 125
1   com.sourcekitten.SourceKittenFramework  0x000000010067bb64 ext.SourceKittenFramework.__ObjC.NSString.(CacheContainer in _0FC7D82B151D24403F461B3F6A0041E8).byteOffsetFromLocation (ext.SourceKittenFramework.__ObjC.NSString.(CacheContainer in _0FC7D82B151D24403F461B3F6A0041E8))(Swift.Int) -> Swift.Int + 1268 (String+SourceKitten.swift:138)
2   com.sourcekitten.SourceKittenFramework  0x000000010067c4be ext.SourceKittenFramework.__ObjC.NSString.NSRangeToByteRange (__ObjC.NSString)(start : Swift.Int, length : Swift.Int) -> __C._NSRange? + 1326 (String+SourceKitten.swift:295)
3   io.realm.SwiftLintFramework     0x00000001004f2592 ext.SwiftLintFramework.SourceKittenFramework.File.(matchPattern (SourceKittenFramework.File) -> (Swift.String) -> [(__C._NSRange, [SourceKittenFramework.SyntaxKind])]).(closure #1) + 82 (File+SwiftLint.swift:85)
4   io.realm.SwiftLintFramework     0x00000001004f0ca3 partial apply forwarder for reabstraction thunk helper from @callee_owned (@owned __ObjC.NSTextCheckingResult) -> (@owned (__C._NSRange, [SourceKittenFramework.SyntaxKind]), @error @owned Swift.ErrorType) to @callee_owned (@in __ObjC.NSTextCheckingResult) -> (@out (__C._NSRange, [SourceKittenFramework.SyntaxKind]), @error @owned Swift.ErrorType) + 67
5   io.realm.SwiftLintFramework     0x00000001004f7427 function signature specialization <Arg[0] = Owned To Guaranteed> of generic specialization <[__ObjC.NSTextCheckingResult] with [__ObjC.NSTextCheckingResult] : Swift.CollectionType in Swift, Swift.IndexingGenerator<[__ObjC.NSTextCheckingResult]> with Swift.IndexingGenerator<[__ObjC.NSTextCheckingResult]> : Swift.GeneratorType in Swift, __ObjC.NSTextCheckingResult, Swift.Int with Swift.Int : Swift.ForwardIndexType in Swift, Swift.Int with Swift.Int : Swift._SignedIntegerType in Swift, Swift.Int with Swift.Int : Swift._BuiltinIntegerLiteralConvertible in Swift, Swift.Int, Swift.ArraySlice<__ObjC.NSTextCheckingResult> with Swift.ArraySlice<__ObjC.NSTextCheckingResult> : Swift.Indexable in Swift and Swift.ArraySlice<__ObjC.NSTextCheckingResult> : Swift.SequenceType in Swift, Swift.IndexingGenerator<Swift.ArraySlice<__ObjC.NSTextCheckingResult>> with Swift.IndexingGenerator<Swift.ArraySlice<__ObjC.NSTextCheckingResult>> : Swift.GeneratorType in Swift, __ObjC.NSTextCheckingResult, Swift.Int with Swift.Int : Swift.ForwardIndexType in Swift, Swift.Int with Swift.Int : Swift._SignedIntegerType in Swift, Swift.Int with Swift.Int : Swift._BuiltinIntegerLiteralConvertible in Swift, Swift.Int, Swift.ArraySlice<__ObjC.NSTextCheckingResult>, __ObjC.NSTextCheckingResult, __ObjC.NSTextCheckingResult, (__C._NSRange, [SourceKittenFramework.SyntaxKind])> of ext.Swift.Swift.CollectionType<A where A: Swift.CollectionType>.map <A><B where A: Swift.CollectionType> (A)((A.Generator.Element) throws -> B) throws -> [B] + 391
6   io.realm.SwiftLintFramework     0x00000001004ef636 function signature specialization <Arg[0] = Owned To Guaranteed and Exploded> of ext.SwiftLintFramework.SourceKittenFramework.File.matchPattern (SourceKittenFramework.File)(Swift.String) -> [(__C._NSRange, [SourceKittenFramework.SyntaxKind])] + 1366 (File+SwiftLint.swift:91)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant