Travis tests failing when local tests succeed


Hi! I’m having an issue where one of my tests is failing on Travis, but isn’t failing on my local machine. Interestingly, the test is only failing on the stable branch; on beta and nightly it’s running just fine. The test is running a code generator (which is working ok), and then attempting to compile it and making sure there are no compilation errors/warnings. This is the test I’m trying to run, and this is the code that’s being generated for compilation testing. The compile seems to be failing with an LLVM error, which reads as follows:

Stored value type does not match pointer operand type!
  store { i64 } %5, i32* %9, align 4
 i32Stored value type does not match pointer operand type!
  store %"vk::types::VkImageCreateFlags"* %6, i32* %10, align 4
 i32LLVM ERROR: Broken function found, compilation aborted!

My rustc version is as follows:

rustc 1.8.0 (db2939409 2016-04-11)
binary: rustc
commit-hash: db2939409db26ab4904372c82492cd3488e4c44e
commit-date: 2016-04-11
host: x86_64-pc-windows-gnu
release: 1.8.0

Does this error seem to be an bug on my code’s end, or is it an issue with the compiler?


Maybe it succeeds locally, because your local compiler doesn’t have llvm assertions turned on. So you are actually entering undefined behaviour inside the compiler.

definitely a compiler bug, but since it appears to not occurr on beta/nightly, I guess it’s already fixed