[cfe-dev] Illegal instruction problem

Chris Lattner clattner at apple.com
Mon Nov 28 06:40:28 PST 2011


On Nov 27, 2011, at 6:02 PM, Philip Ashmore wrote:

> Hi there.
> 
> I've just committed new versions of some of my packages in SourceForge:
> 
> v3c-2.2.0-01
> treedb-1.2.0-02
> meta-treedb-1.3.0-03
> 
> I've got a problem with the release build (which uses -03 optimisation) 
> of treedb.
> 
> The "fuse" tests fail with an illegal instruction fault.

Hi Philip,

The most likely cause of this is that you're using undefined behavior (e.g. an uninitialized variable, array out of bounds, etc) in your code that the optimizer is detecting.  Please see:
http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html

for more information.

-Chris



More information about the cfe-dev mailing list