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'm using swift-DEVELOPMENT-SNAPSHOT-2017-05-16-a-ubuntu16.04 on Ubuntu 16.04.
md5: ee1b458658abfb91cb45bcce414a0d8c
Issue Description:
Following code will cause crash on Linux:
import Foundation let set = CharacterSet() print(set.isSubset(of: set))
From backtrace of the core dump, it seems that it is caused by a stack overflow:
frame #​80562: 0x00007f5bb17562be libFoundation.so`Foundation.NSCharacterSet.isEqual(Swift.Optional<Any>) -> Swift.Bool + 414 frame #​80563: 0x00007f5bb192c152 libFoundation.so`@objc Foundation._CFSwiftIsEqual(Swift.AnyObject, cf2: Swift.AnyObject) -> Swift.Bool + 114 frame #​80564: 0x00007f5bb17562be libFoundation.so`Foundation.NSCharacterSet.isEqual(Swift.Optional<Any>) -> Swift.Bool + 414 frame #​80565: 0x00007f5bb192c152 libFoundation.so`@objc Foundation._CFSwiftIsEqual(Swift.AnyObject, cf2: Swift.AnyObject) -> Swift.Bool + 114 frame #​80566: 0x00007f5bb17562be libFoundation.so`Foundation.NSCharacterSet.isEqual(Swift.Optional<Any>) -> Swift.Bool + 414 frame #​80567: 0x00007f5bb19ec126 libFoundation.so`(extension in Foundation):Foundation._SwiftNativeFoundationType.isEqual(Swift.AnyObject) -> Swift.Bool + 118 frame #​80568: 0x00007f5bb1a27228 libFoundation.so`static Foundation.CharacterSet.== infix(Foundation.CharacterSet, Foundation.CharacterSet) -> Swift.Bool + 72 frame #​80569: 0x00007f5bb1a2727f libFoundation.so`protocol witness for static Swift.Equatable.== infix(A, A) -> Swift.Bool in conformance Foundation.CharacterSet : Swift.Equatable in Foundation + 15 frame #​80570: 0x00007f5bb2060460 libswiftCore.so`(extension in Swift):Swift.SetAlgebra.isSubset(of: A) -> Swift.Bool + 112 frame #​80571: 0x00007ffc303c7e79 foo`main + 153 frame #​80572: 0x00007f5bb013f830 libc.so.6`__libc_start_main(main=(foo`main), argc=1, argv=0x00007ffc303c2c88, init=<unavailable>, fini=<unavailable>, rtld_fini=<unavailable>, stack_end=0x00007ffc303c2c78) at libc-start.c:291 frame #​80573: 0x00007ffc303c7cf9 foo`_start + 41
The text was updated successfully, but these errors were encountered:
Comment by Matt Rajca (JIRA)
No longer crashes in the 9/7 toolchain and "true" is printed.
Sorry, something went wrong.
No branches or pull requests
Environment
I'm using swift-DEVELOPMENT-SNAPSHOT-2017-05-16-a-ubuntu16.04 on Ubuntu 16.04.
Additional Detail from JIRA
md5: ee1b458658abfb91cb45bcce414a0d8c
Issue Description:
Following code will cause crash on Linux:
From backtrace of the core dump, it seems that it is caused by a stack overflow:
The text was updated successfully, but these errors were encountered: