EXC_BAD_INSTRUCTION when Swift optimization is enabled

Hi all,


In XCode 7, when I enabled Swift optimization for my target, I am getting EXC_BAD_INSTRUCTION exceptions where there were none if compiled by XCode 6.3.


Unfortunately, nothing is printed on the Console when it happens, and the address sanitizer or Zombies find nothing.


Is anybody else seeing this?


So far I cannot make a clear and small reproducible case (smaller than the whole project) in order to file a bug.

Have you enabled AVX / AVX2 by any chance? If you enabled ISA extension (which allows the vectorizer to make use of) which isn't supported by your machine, that can result in this exception.

EXC_BAD_INSTRUCTION when Swift optimization is enabled
 
 
Q