[swift-dev] [swift-users] Module verifier error with master branch

Arnold Schwaighofer aschwaighofer at apple.com
Wed Aug 30 11:08:35 CDT 2017


Can you file a bug at bugs.swift.org <http://bugs.swift.org/> with a project/source file that reproduces the failure?

> On Aug 29, 2017, at 4:20 PM, Raj Barik via swift-users <swift-users at swift.org> wrote:
> 
> OS: 10.12.6 (16G29)
> 
> Steps:
> 1) Checkout swift and build master branch
>        git clone https://github.com/apple/swift.git <https://github.com/apple/swift.git>
>    ./swift/utils/update-checkout --clone
> 
> 2) Edit swift/utils/build-presets.ini to remove tests
>    [preset: buildbot_osx_package]
>    mixin-preset=
>     mixin_osx_package_base
>     mixin_lightweight_assertions
>     ...
> 3) Execute ./swift/utils/build-toolchain local.swift
> 
> 4) Execute n sample swift package in Xcode:
> 
> Error:
> Invalid bitcast
> 
>   %195 = bitcast i64 %194 to %objc_object*, !dbg !431
> 
> Invalid bitcast
> 
>   %256 = bitcast i64 %255 to %objc_object*, !dbg !443
> 
> <unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
> 
> <unknown>:0: note: Broken function found, compilation aborted!
> 
> 0  swiftc                   0x000000010955ebc8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
> 
> 1  swiftc                   0x000000010955def6 llvm::sys::RunSignalHandlers() + 86
> 
> 2  swiftc                   0x000000010955f12e SignalHandler(int) + 270
> 
> 3  libsystem_platform.dylib 0x00007fffbb08cb3a _sigtramp + 26
> 
> 4  libsystem_platform.dylib 0x000070000b4115a0 _sigtramp + 1345866368
> 
> 5  libsystem_c.dylib        0x00007fffbaf11420 abort + 129
> 
> 6  swiftc                   0x00000001067985c7 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_0::__invoke(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 551
> 
> 7  swiftc                   0x0000000109506cac llvm::report_fatal_error(llvm::Twine const&, bool) + 252
> 
> 8  swiftc                   0x0000000109506baa llvm::report_fatal_error(char const*, bool) + 42
> 
> 9  swiftc                   0x00000001094c0d06 (anonymous namespace)::VerifierLegacyPass::runOnFunction(llvm::Function&) + 54
> 
> 10 swiftc                   0x0000000109466b22 llvm::FPPassManager::runOnFunction(llvm::Function&) + 498
> 
> 11 swiftc                   0x00000001094663b9 llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 169
> 
> 12 swiftc                   0x000000010946627a llvm::legacy::FunctionPassManager::run(llvm::Function&) + 362
> 
> 13 swiftc                   0x0000000106893e02 swift::performLLVMOptimizations(swift::IRGenOptions&, llvm::Module*, llvm::TargetMachine*) + 1410
> 
> 14 swiftc                   0x0000000106894736 swift::performLLVM(swift::IRGenOptions&, swift::DiagnosticEngine*, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, swift::version::Version const&, llvm::StringRef, swift::UnifiedStatsReporter*) + 1574
> 
> 15 swiftc                   0x00000001068993c9 ThreadEntryPoint(swift::irgen::IRGenerator*, llvm::sys::SmartMutex<false>*, int) + 249
> 
> 16 swiftc                   0x0000000106899fff void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(swift::irgen::IRGenerator*, llvm::sys::SmartMutex<false>*, int), swift::irgen::IRGenerator*, llvm::sys::SmartMutex<false>*, int> >(void*) + 47
> 
> 17 libsystem_pthread.dylib  0x00007fffbb09693b _pthread_body + 180
> 
> 18 libsystem_pthread.dylib  0x00007fffbb096887 _pthread_body + 0
> 
> 19 libsystem_pthread.dylib  0x00007fffbb09608d thread_start + 13
> 
> Stack dump:
> 
> 0.	Running pass 'Module Verifier' on function '@_FUNCTION_NAME_'
> 
> 
> 
> Does anyone know how to turn off module verifier or fix the above error (I do not see the "-disable-llvm-verify" option with swift/swiftc command line)?
> 
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170830/8604ccf5/attachment-0001.html>


More information about the swift-dev mailing list