We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I forgot to file an issue that crashes in SWXMLHash with Swift 3.1.1 on Linux. Backtrace:
* thread #1, name = 'SourceKittenPac', stop reason = signal SIGSEGV: invalid address (fault address: 0x28) * frame #0: 0x00007ffff7abe905 libswiftCore.so`_swift_retain_ + 5 frame #1: 0x00007ffff7130d59 libFoundation.so`Foundation.NSDictionary.init (objects : Swift.ImplicitlyUnwrappedOptional<Swift.UnsafePointer<Swift.AnyObject>>, forKeys : Swift.ImplicitlyUnwrappedOptional<Swift.UnsafePointer<Foundation.NSObject>>, count : Swift.Int) -> Foundation.NSDictionary + 601 frame #2: 0x00007ffff7131fc4 libFoundation.so`Foundation.NSDictionary.init (objects : Swift.Array<Any>, forKeys : Swift.Array<Foundation.NSObject>) -> Foundation.NSDictionary + 804 frame #3: 0x000000000047baf4 SourceKittenPackageTests.xctest`FullXMLParser.parser(parser=<unavailable>, elementName=<unavailable>, namespaceURI=<unavailable>, qName=<unavailable>, attributeDict=<unavailable>, self=<unavailable>) -> () at SWXMLHash.swift:367 frame #4: 0x000000000047cf2a SourceKittenPackageTests.xctest`protocol witness for XMLParserDelegate.parser(XMLParser, didStartElement : String, namespaceURI : String?, qualifiedName : String?, attributes : [String : String]) -> () in conformance FullXMLParser at SWXMLHash.swift:0 frame #5: 0x00007ffff738b92c libFoundation.so`Foundation._NSXMLParserStartElementNs (Swift.OpaquePointer, localname : Swift.UnsafePointer<Swift.UInt8>, prefix : Swift.Optional<Swift.UnsafePointer<Swift.UInt8>>, URI : Swift.Optional<Swift.UnsafePointer<Swift.UInt8>>, nb_namespaces : Swift.Int32, namespaces : Swift.UnsafeMutablePointer<Swift.Optional<Swift.UnsafePointer<Swift.UInt8>>>, nb_attributes : Swift.Int32, nb_defaulted : Swift.Int32, attributes : Swift.UnsafeMutablePointer<Swift.Optional<Swift.UnsafePointer<Swift.UInt8>>>) -> () + 5516 frame #6: 0x00007ffff3184b0b libxml2.so.2`___lldb_unnamed_symbol72$$libxml2.so.2 + 2379 frame #7: 0x00007ffff318efe8 libxml2.so.2`___lldb_unnamed_symbol79$$libxml2.so.2 + 1544 frame #8: 0x00007ffff319093b libxml2.so.2`xmlParseChunk + 875 frame #9: 0x00007ffff7394807 libFoundation.so`partial apply forwarder for Foundation.XMLParser.(parseData (Foundation.Data) -> Swift.Bool).(closure #3) + 103 frame #10: 0x00007ffff739486f libFoundation.so`partial apply forwarder for reabstraction thunk helper from @callee_owned (@unowned Swift.UnsafePointer<Swift.Int8>) -> (@unowned Swift.Int32, @error @owned Swift.Error) to @callee_owned (@unowned Swift.UnsafePointer<Swift.Int8>) -> (@out Swift.Int32, @error @owned Swift.Error) + 63 frame #11: 0x00007ffff73af15b libFoundation.so`Foundation.Data.withUnsafeBytes <A, B> ((Swift.UnsafePointer<B>) throws -> A) throws -> A + 235 frame #12: 0x00007ffff7394503 libFoundation.so`function signature specialization <Arg[0] = Owned To Guaranteed and Exploded> of Foundation.XMLParser.parseData (Foundation.Data) -> Swift.Bool + 995 frame #13: 0x00007ffff738d1f5 libFoundation.so`Foundation.XMLParser.parseFromStream () -> Swift.Bool + 885 frame #14: 0x000000000047b5d7 SourceKittenPackageTests.xctest`FullXMLParser.parse(data=<unavailable>, self=<unavailable>) -> XMLIndexer at SWXMLHash.swift:353 frame #15: 0x000000000047c423 SourceKittenPackageTests.xctest`protocol witness for SimpleXmlParser.parse(Data) -> XMLIndexer in conformance FullXMLParser at SWXMLHash.swift:0 frame #16: 0x00000000004762ae SourceKittenPackageTests.xctest`SWXMLHash.parse(data=<unavailable>, self=<unavailable>) -> XMLIndexer at SWXMLHash.swift:91 frame #17: 0x000000000047603b SourceKittenPackageTests.xctest`SWXMLHash.parse(xml=<unavailable>, self=<unavailable>) -> XMLIndexer at SWXMLHash.swift:77 frame #18: 0x0000000000476510 SourceKittenPackageTests.xctest`static SWXMLHash.parse(xml=<unavailable>, self=<unavailable>) -> XMLIndexer at SWXMLHash.swift:101 frame #19: 0x000000000050ee56 SourceKittenPackageTests.xctest`parseFullXMLDocs(xmlDocs=<unavailable>) -> [String : SourceKitRepresentable]? at File.swift:420 frame #20: 0x000000000050f1a1 SourceKittenPackageTests.xctest`thunk at File.swift:0 frame #21: 0x000000000050f299 SourceKittenPackageTests.xctest`partial apply for thunk at File.swift:0 frame #22: 0x00007ffff78d83c3 libswiftCore.so`Swift.Optional.flatMap <A> ((A) throws -> Swift.Optional<A1>) throws -> Swift.Optional<A1> + 307 frame #23: 0x000000000050dcef SourceKittenPackageTests.xctest`File.process(dictionary=<unavailable>, cursorInfoRequest=<unavailable>, syntaxMap=<unavailable>, self=<unavailable>) -> [String : SourceKitRepresentable] at File.swift:183 frame #24: 0x000000000051091c SourceKittenPackageTests.xctest`File.furtherProcess(dictionary=<unavailable>, documentedTokenOffsets=<unavailable>, cursorInfoRequest=<unavailable>, syntaxMap=<unavailable>, self=<unavailable>) -> [String : SourceKitRepresentable] at File.swift:214 frame #25: 0x000000000055b0be SourceKittenPackageTests.xctest`SwiftDocs.init(file=<unavailable>, dictionary=<unavailable>, cursorInfoRequest=<unavailable>) -> SwiftDocs at SwiftDocs.swift:63 frame #26: 0x000000000055aac0 SourceKittenPackageTests.xctest`SwiftDocs.init(file=<unavailable>, arguments=<unavailable>) -> SwiftDocs? at SwiftDocs.swift:34 frame #27: 0x0000000000439bd9 SourceKittenPackageTests.xctest`compareDocs(name=<unavailable>, file=<unavailable>, line=<unavailable>) -> () at SwiftDocsTests.swift:60 frame #28: 0x0000000000439ee3 SourceKittenPackageTests.xctest`SwiftDocsTests.testSubscript(self=<unavailable>) -> () at SwiftDocsTests.swift:70 frame #29: 0x000000000043b8da SourceKittenPackageTests.xctest`partial apply at SwiftDocsTests.swift:0 frame #30: 0x000000000041a148 SourceKittenPackageTests.xctest`thunk at CodeCompletionTests.swift:0 frame #31: 0x000000000043b869 SourceKittenPackageTests.xctest`partial apply for thunk at SwiftDocsTests.swift:0 frame #32: 0x00007ffff7f63462 libXCTest.so`partial apply forwarder for reabstraction thunk helper from @callee_owned (@in ()) -> (@out (), @error @owned Swift.Error) to @callee_owned () -> (@error @owned Swift.Error) + 50 frame #33: 0x00007ffff7f412c2 libXCTest.so`XCTest.((test in _3BE257A46ADB477C7BF2D39968B39F9D) <A where A: XCTest.XCTestCase> ((A) -> () throws -> ()) -> (XCTest.XCTestCase) throws -> ()).(closure #1) + 82 frame #34: 0x00007ffff7f63290 libXCTest.so`partial apply forwarder for reabstraction thunk helper from @callee_owned (@owned XCTest.XCTestCase) -> (@error @owned Swift.Error) to @callee_owned (@in XCTest.XCTestCase) -> (@out (), @error @owned Swift.Error) + 64 frame #35: 0x00007ffff7f637ee libXCTest.so`partial apply forwarder for reabstraction thunk helper from @callee_owned (@owned XCTest.XCTestCase) -> (@error @owned Swift.Error) to @callee_owned (@in XCTest.XCTestCase) -> (@out (), @error @owned Swift.Error) with unmangled suffix ".111" + 14 frame #36: 0x00007ffff7f634d0 libXCTest.so`partial apply forwarder for reabstraction thunk helper from @callee_owned (@in XCTest.XCTestCase) -> (@out (), @error @owned Swift.Error) to @callee_owned (@owned XCTest.XCTestCase) -> (@error @owned Swift.Error) + 64 frame #37: 0x00007ffff7f40950 libXCTest.so`XCTest.XCTestCase.invokeTest () -> () + 112 frame #38: 0x00007ffff7f56599 libXCTest.so`function signature specialization <Arg[0] = Owned To Guaranteed> of XCTest.XCTestCase.perform (XCTest.XCTestRun) -> () + 313 frame #39: 0x00007ffff7f4081e libXCTest.so`XCTest.XCTestCase.perform (XCTest.XCTestRun) -> () + 14 frame #40: 0x00007ffff7f3fc94 libXCTest.so`XCTest.XCTest.run () -> () + 516 frame #41: 0x00007ffff7f56b0b libXCTest.so`function signature specialization <Arg[0] = Owned To Guaranteed> of XCTest.XCTestSuite.perform (XCTest.XCTestRun) -> () + 1067 frame #42: 0x00007ffff7f56dab libXCTest.so`function signature specialization <Arg[0] = Owned To Guaranteed> of XCTest.XCTestSuite.perform (XCTest.XCTestRun) -> () + 1739 frame #43: 0x00007ffff7f338f1 libXCTest.so`XCTest.XCTMain (Swift.Array<(testCaseClass : XCTest.XCTestCase.Type, allTests : Swift.Array<(Swift.String, (XCTest.XCTestCase) throws -> ())>)>) -> Swift.Never + 4081 frame #44: 0x000000000041902a SourceKittenPackageTests.xctest`main at LinuxMain.swift:16 frame #45: 0x00007ffff5a30830 libc.so.6`__libc_start_main + 240 frame #46: 0x0000000000418d69 SourceKittenPackageTests.xctest`_start + 41
The text was updated successfully, but these errors were encountered:
Fix crashes jpsim/SourceKitten#379
f15f96b
If we closed this issue, I think #354 could be closed as well.
Sorry, something went wrong.
FullXMLParser.parser
No branches or pull requests
I forgot to file an issue that crashes in SWXMLHash with Swift 3.1.1 on Linux.
Backtrace:
The text was updated successfully, but these errors were encountered: