[cctbxbb] scitbx test crashing on mac

Luc Bourhis luc_j_bourhis at mac.com
Tue Apr 14 00:22:31 PDT 2015


On 14 Apr 2015, at 08:44, Richard Gildea <rgildea at gmail.com> wrote:

> I managed to 'fix' the error with this commit:
> 
> https://sourceforge.net/p/cctbx/code/22003/
> 
> However, I have no idea why the previous code was problematic. Adding a SCITBX_ASSERT(vi != 0); in the 'else' statement also made the error go away. I can have another look and try out your suggestions later today to see if that results in any more insight into the underlying problem.

My suggestions only aimed at zeroing on the problem. Now that you have found a fix, you won't learn more by following my suggestions. It looks like a bug in the optimiser of whatever version of clang/llvm Apple uses in the version of Xcode installed on that machine. Note clang optimiser had troubles with that file a couple of  years ago: it was missing some optimisations and the produced code was too slow. So now it looks too eager! So classic unfortunately… 

For the record, could you paste the outcome of "clang --version" on that machine? And tell us the version of Xcode as well.

I will move to Yosemite soon-ish but for the time being, I can't help much.

Best wishes,

Luc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20150414/5b81f5b8/attachment.htm>


More information about the cctbxbb mailing list