Closed leeliangliang closed 7 months ago
你给的信息太少,我自己测试了swift普通的字符串是没有问题的
Try building with asserts and ASan
- Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
- Compiling with the current language version Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var
LLVM_SYMBOLIZER_PATH
to point to it): 0 swift-frontend 0x0000000106ce5fe7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39 1 swift-frontend 0x0000000106ce5018 llvm::sys::RunSignalHandlers() + 248 2 swift-frontend 0x0000000106ce6600 SignalHandler(int) + 288 3 libsystem_platform.dylib 0x00007ff813aa2dfd _sigtramp + 29 4 libsystem_platform.dylib 0x0000000000000a00 _sigtramp + 18446603370251017248 5 libsystem_c.dylib 0x00007ff8139d8d24 abort + 123 6 libsystem_malloc.dylib 0x00007ff8138b6357 has_default_zone0 + 0 7 libsystem_malloc.dylib 0x00007ff8138ca308 malloc_zone_error + 178 8 libsystem_malloc.dylib 0x00007ff8138af03d small_free_list_remove_ptr_no_clear + 1251 9 libsystem_malloc.dylib 0x00007ff8138ac108 free_small + 847 10 swift-frontend 0x0000000106a1964c llvm::LLVMContextImpl::~LLVMContextImpl() + 26556 11 swift-frontend 0x000000010189c7d0 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_deleteswift::SILModule >, llvm::PointerUnion<swift::ModuleDecl, swift::SourceFile>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver) + 3984 12 swift-frontend 0x000000010189df85 swift::performFrontend(llvm::ArrayRef<char const>, char const, void, swift::FrontendObserver*) + 5701 13 swift-frontend 0x0000000101833eaa swift::mainEntry(int, char const**) + 3082 14 dyld 0x0000000118c7652e start + 462 Command SwiftCompile failed with a nonzero exit code
一样的问题, 测试的项目可以. 开发的项目就报错. 请问下你解决了吗?
你俩都不贴测试用例能看个啥
把无法编译的字符串贴一下
一样的问题开启 -enable-strcry 某些库无法编译成功,帮忙看下是哪个文件无法被编译通过,我这边贴代码出来
Running FunctionWrapper On $s6VCBase3YppV14ViewControllerC13NavColorStyleOAGSYAAWl Running FunctionWrapper On $sSo11UIImageViewCMa Hikari Out Spend Time: 1681292673.6477971s Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace. Stack dump:
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var LLVM_SYMBOLIZER_PATH
to point to it):
0 swift-frontend 0x000000010c56a987 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1 swift-frontend 0x000000010c569a68 llvm::sys::RunSignalHandlers() + 248
2 swift-frontend 0x000000010c56afd0 SignalHandler(int) + 288
3 libsystem_platform.dylib 0x00007ff81e3c3dfd _sigtramp + 29
4 libsystem_platform.dylib 0x000000010fdd1a00 _sigtramp + 18446603374634785824
5 libsystem_c.dylib 0x00007ff81e2f9d24 abort + 123
6 libsystem_malloc.dylib 0x00007ff81e1d7357 has_default_zone0 + 0
7 libsystem_malloc.dylib 0x00007ff81e1eb308 malloc_zone_error + 178
8 libsystem_malloc.dylib 0x00007ff81e1d003d small_free_list_remove_ptr_no_clear + 1251
9 libsystem_malloc.dylib 0x00007ff81e1cd108 free_small + 847
10 swift-frontend 0x000000010c2a417a llvm::LLVMContextImpl::~LLVMContextImpl() + 17290
11 swift-frontend 0x000000010c29e806 llvm::LLVMContext::~LLVMContext() + 22
12 swift-frontend 0x0000000108267f98 swift::irgen::IRGenModule::~IRGenModule() + 3528
13 swift-frontend 0x0000000108243ad1 swift::performIRGeneration(swift::ModuleDecl*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::1::unique_ptr<swift::SILModule, std::__1::default_delete
LLVM_SYMBOLIZER_PATH
to point to it): 0 swift-frontend 0x0000000106ce5fe7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39 1 swift-frontend 0x0000000106ce5018 llvm::sys::RunSignalHandlers() + 248 2 swift-frontend 0x0000000106ce6600 SignalHandler(int) + 288 3 libsystem_platform.dylib 0x00007ff813aa2dfd _sigtramp + 29 4 libsystem_platform.dylib 0x0000000000000a00 _sigtramp + 18446603370251017248 5 libsystem_c.dylib 0x00007ff8139d8d24 abort + 123 6 libsystem_malloc.dylib 0x00007ff8138b6357 has_default_zone0 + 0 7 libsystem_malloc.dylib 0x00007ff8138ca308 malloc_zone_error + 178 8 libsystem_malloc.dylib 0x00007ff8138af03d small_free_list_remove_ptr_no_clear + 1251 9 libsystem_malloc.dylib 0x00007ff8138ac108 free_small + 847 10 swift-frontend 0x0000000106a1964c llvm::LLVMContextImpl::~LLVMContextImpl() + 26556 11 swift-frontend 0x000000010189c7d0 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete