[cctbxbb] scitbx test crashing on mac

Graeme.Winter at diamond.ac.uk Graeme.Winter at diamond.ac.uk
Tue Apr 14 01:01:00 PDT 2015


Hi Richard

I did a full build from scratch using bootstrap.py, as this is how I got my working environment set up just right when I got the new laptop a couple of weeks back. I guess it would not hurt to kick off a completely fresh build later on.

I have an identical version of this compiler and OS…

Cheerio Graeme


From: cctbxbb-bounces at phenix-online.org [mailto:cctbxbb-bounces at phenix-online.org] On Behalf Of Richard Gildea
Sent: 14 April 2015 08:58
To: cctbx mailing list
Subject: Re: [cctbxbb] scitbx test crashing on mac

Hi Luc,

It was strange, because it only appeared after I updated our mac-mini nightly build machine with the latest OS X and Xcode updates the other day. However mine and Graeme's mac book pros both have the latest Apple updates installed and it appears to work fine on our machines (although I'm not certain either of us actually tried a full build from scratch running the bootstrap.py script).

Cheers,

Richard

$ clang --version
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

$ sw_vers -productVersion
10.10.3

Xcode must be latest version (whatever that is).


On 14 April 2015 at 08:22, Luc Bourhis <luc_j_bourhis at mac.com<mailto:luc_j_bourhis at mac.com>> wrote:

On 14 Apr 2015, at 08:44, Richard Gildea <rgildea at gmail.com<mailto: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


_______________________________________________
cctbxbb mailing list
cctbxbb at phenix-online.org<mailto:cctbxbb at phenix-online.org>
http://phenix-online.org/mailman/listinfo/cctbxbb


-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20150414/36786cdd/attachment-0001.htm>


More information about the cctbxbb mailing list