[SR-9242] After upgrading Swift from 4.1 to 4.2, compiler throws error when compiling Vapor 2.4.5 project on Ubuntu 16.04.5 machine #51730
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
regression
swift 4.2
Attachment: Download
Environment
Swift 4.2
Ubuntu 16.04.5 hosted on AWS
Vapor 2.4.5
Additional Detail from JIRA
md5: 0e3c33fe618421f9c9c49a71ac40a387
Issue Description:
I have a program that I deploy onto Ubuntu (Vapor 2.4.5 based server app). Up to this point it's been compiling under Swift 4.1 without issue.
Today, I applied a few patches to my UAT server (hosted on AWS). I noticed Swift got updated to 4.2. Now the Swift build process fails, with the following message:
> swift: /home/buildnode/jenkins/workspace/oss-swift-4.2-package-linux-ubuntu-16_04/llvm/lib/IR/Instructions.cpp:2565: static llvm::CastInst *llvm::CastInst::Create(Instruction::CastOps, llvm::Value *, llvm::Type *, const llvm::Twine &, llvm::Instruction *): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed.
I rolled my server back to its prior state, and no problems the code compiles.
I have attached an extract of the compiler output, where it crashes.
Very happy to help give more information as required.
The text was updated successfully, but these errors were encountered: