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

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

Open
Girlsmile opened this issue Sep 12, 2024 · 6 comments

Comments

@Girlsmile
Copy link

  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_deleteswift::DiagnosticConsumer> (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::AnalysisManagerllvm::Module>::printPipeline(llvm::raw_ostream&, llvm::function_ref<llvm::StringRef (llvm::StringRef)>) + 0
    10 swift-frontend 0x0000000107e5aa80 llvm::PassManager<llvm::Module, llvm::AnalysisManagerllvm::Module>::run(llvm::Module&, llvm::AnalysisManagerllvm::Module&) + 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_deleteswift::SILModule>, 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_deleteswift::SILModule>, 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_deleteswift::SILModule>, 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
Copy link

同上

2 similar comments
@biostome
Copy link

同上

@biostome
Copy link

同上

@shaojiankui
Copy link

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

@loveshort
Copy link

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

@intsig171
Copy link

无缝切换HandyJSON,请使用SmartCodable。

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

5 participants