alibaba / HandyJSON

A handy swift json-object serialization/deserialization library
Other
4.23k stars 646 forks source link

Xcodel16 发生在 performIRGeneration 和 performLLVMOptimizations 阶段,这两个函数涉及 LLVM IR 生成 和 LLVM 优化 #502

Open Girlsmile opened 1 month ago

Girlsmile commented 1 month ago
  1. Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
  2. Compiling with effective version 5.10 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 0x00000001081230fc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56 1 swift-frontend 0x0000000108121350 llvm::sys::RunSignalHandlers() + 112 2 swift-frontend 0x00000001081236c8 SignalHandler(int) + 292 3 libsystem_platform.dylib 0x000000018652a584 _sigtramp + 56 4 libsystem_pthread.dylib 0x00000001864f9c20 pthread_kill + 288 5 libsystem_c.dylib 0x0000000186406a30 abort + 180 6 swift-frontend 0x0000000102e86bc8 createDispatchingDiagnosticConsumerIfNeeded(swift::FrontendInputsAndOutputs const&, llvm::function_ref<std::1::unique_ptr<swift::DiagnosticConsumer, std::__1::default_delete> (swift::InputFile const&)>) + 0 7 swift-frontend 0x0000000108092e80 llvm::report_fatal_error(llvm::Twine const&, bool) + 280 8 swift-frontend 0x0000000108092d68 llvm::report_fatal_error(llvm::Twine const&, bool) + 0 9 swift-frontend 0x00000001030c731c llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::PreservedAnalyses, llvm::AnalysisManager>::printPipeline(llvm::raw_ostream&, llvm::function_ref<llvm::StringRef (llvm::StringRef)>) + 0 10 swift-frontend 0x0000000107e5aa80 llvm::PassManager<llvm::Module, llvm::AnalysisManager>::run(llvm::Module&, llvm::AnalysisManager&) + 224 11 swift-frontend 0x00000001030bbd58 swift::performLLVMOptimizations(swift::IRGenOptions const&, llvm::Module, llvm::TargetMachine, llvm::raw_pwrite_stream) + 3764 12 swift-frontend 0x00000001030bd994 swift::performLLVM(swift::IRGenOptions const&, swift::DiagnosticEngine&, llvm::sys::SmartMutex, llvm::GlobalVariable, llvm::Module, llvm::TargetMachine, llvm::StringRef, llvm::vfs::OutputBackend&, swift::UnifiedStatsReporter) + 2352 13 swift-frontend 0x00000001030c32ac swift::performIRGeneration(swift::ModuleDecl*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::1::unique_ptr<swift::SILModule, std::1::default_delete>, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::ArrayRef<std::__1::basic_string<char, std::1::char_traits, std::1::allocator>>, llvm::GlobalVariable**) + 5384 14 swift-frontend 0x0000000102ad28c4 generateIR(swift::IRGenOptions const&, swift::TBDGenOptions const&, std::1::unique_ptr<swift::SILModule, std::1::default_delete>, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::PointerUnion<swift::ModuleDecl, swift::SourceFile>, llvm::GlobalVariable*&, llvm::ArrayRef<std::__1::basic_string<char, std::1::char_traits, std::1::allocator>>) + 260 15 swift-frontend 0x0000000102ace088 performCompileStepsPostSILGen(swift::CompilerInstance&, std::1::unique_ptr<swift::SILModule, std::__1::default_delete>, llvm::PointerUnion<swift::ModuleDecl, swift::SourceFile>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver) + 2176 16 swift-frontend 0x0000000102acd6e4 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver) + 2888 17 swift-frontend 0x0000000102ad0228 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver) + 1680 18 swift-frontend 0x0000000102acef58 swift::performFrontend(llvm::ArrayRef<char const>, char const, void, swift::FrontendObserver*) + 3572 19 swift-frontend 0x0000000102a5601c swift::mainEntry(int, char const**) + 3680 20 dyld 0x000000018616f154 start + 2476
shaojiankui commented 3 weeks ago

同上

biostome commented 3 weeks ago

同上

biostome commented 3 weeks ago

同上

shaojiankui commented 3 weeks ago

pod 'HandyJSON', :git => 'https://github.com/Miles-Matheson/HandyJSON.git' 好了

loveshort commented 1 week ago

换了吧,SmartCodable 这个库很好替换