Illegal Instruction

Johan Engelen j at j.nl
Tue Nov 7 17:05:28 UTC 2017


On Tuesday, 7 November 2017 at 16:03:09 UTC, Russel Winder wrote:
> Using the LDC2 compiler up to date on Debian Sid:
>
> LDC - the LLVM D compiler (1.4.0):
>   based on DMD v2.074.1 and LLVM 5.0.0
>   built with LDC - the LLVM D compiler (0.17.5)
>   Default target: x86_64-pc-linux-gnu
>
> in debug mode I get a program that runs (albeit the thread 
> messaging fails to work), whereas if I use release mode I get 
> an Illegal Instruction. I am guessing this is an LDC2 problem?

Could be caused by several things. For example, perhaps the code 
is doing something technically invalid (UB) and the optimizer is 
making use of that (or are you not turning on optimizations?). In 
any case, dustmite [1] it to a testcase and report it in our bug 
tracker.

cheers,
    Johan

[1] https://github.com/CyberShadow/DustMite/wiki



More information about the digitalmars-d-ldc mailing list