Illegal Instruction
David Nadlinger
code at klickverbot.at
Tue Nov 7 16:38:47 UTC 2017
On 7 Nov 2017, at 16:03, Russel Winder via digitalmars-d-ldc 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?
What is the failing instruction (use gdb)? How can we reproduce the
issue?
SIGILL can be due to hitting an assert(0) or similarly unreachable code
(LLVM emits ud2 as a trap instruction), or due to genuine instructions
not supported on the target (e.g. AVX2, etc.).
— David
More information about the digitalmars-d-ldc
mailing list