Questions tagged [illegal-instruction]

58 questions
10
votes
3 answers

"Illegal instruction: 4" shows up in OS X Lion

Some C++ application compiled and run seamlessly in OS X Snow Leopard, but I changed recently to OS X Lion, and here, although there is no compilation error, when I try to run it I get the error "Illegal instruction: 4", I have no clue, what could…
Open the way
  • 26,225
  • 51
  • 142
  • 196
4
votes
1 answer

using cmake to make a library without sse support (windows version)

I want to setup OpenCV using CMake for Visual Studio 2019. After all these processes while debugging my program I get this error: Unhandled exception at 0x00007FFCF1FF2382 (opencv_world412d.dll) in yaabolfazl.exe: 0xC000001D: Illegal Instruction.…
Hamid Reza
  • 492
  • 1
  • 4
  • 14
4
votes
0 answers

What does "5 Illegal instruction" from bash script mean?

The following script is an entrypoint to a docker image. run.sh #!/bin/bash # wrapper function for docker entrypoint, allows: # docker run -> runs the service # docker run test -> runs the tests set -e export CLI='src/cli.py' if [[ "$1" ==…
kev
  • 8,928
  • 14
  • 61
  • 103
4
votes
1 answer

Debugging 0xc000001d exception with WinDbg

I'm trying to find a root cause of the "Illegal instruction" exception (0xc000001d) with WinDbg. The project was built with VC++2015. I've got two memory dumps from two test runs. For now I found the following that is true for both dumps: the…
Rom098
  • 2,445
  • 4
  • 35
  • 52
4
votes
1 answer

bit-shift illegal instruction in 64-bit release mode only

I am integrating the PoissonRecon code available here into my own mesh manipulation code, but I've been unable to compile the integrated code in x64 because of an "illegal instruction" error in every bit-shift instruction in the Poisson code's…
A.Comer
  • 810
  • 7
  • 17
4
votes
2 answers

Illegal instruction vgatherdps on AVX2 enabled processor

I am developing a code generator for the AVX2 instructions and attempting to test it on an AMD A10 8700 procesor which, by the specs, should run AVX2. However, it crashes with an illegal instruction on the vgatherdps instruction in: vmovdqu …
3
votes
1 answer

Raspberry Pi 3B+ not work ultralytics yolov8. Error "illegal instruction"

I sent a Raspberry Pi to use the training file with yolov8. While the computer codes were working without any errors, I got an error on the Raspberry Pi. I got an "illegal instruction" error when installing ultralytics from the very beginning. In my…
3
votes
1 answer

Description of x86-64 illegal two byte opcodes

Recently wrote a C program to Find Two-byte Illegal Opcodes for x86-64 and pasted the output at https://pastebin.com/5xjjFea6 For example, here are some illegal two byte opcodes 0x0f,0x04 0x0f,0x0a 0x0f,0x0b 0x0f,0x0c 0x0f,0x0e 0x0f,0x0f …
vengy
  • 1,548
  • 10
  • 18
3
votes
0 answers

pd.read_csv give Illegal instruction (core dump)

I am using miniconda3 to create virtual environment in linux aarch64. The following packages are installed in the virtual environment. # Name Version Build Channel _openmp_mutex 4.5 …
Susan
  • 431
  • 1
  • 4
  • 16
3
votes
1 answer

Raise an Illegal Instruction in RISC-V on Purpose

What is the simplest, most readable and straightforward way to raise an illegal instruction in RISC-V on purpose? I know that per spec any "full zero" instruction (so 32/16 bits only zeros) is a "Defined Illegal Instruction" (section 12.5, user…
Fabian
  • 312
  • 3
  • 13
3
votes
1 answer

Why does a panic while panicking result in an illegal instruction?

Consider the following code that purposely causes a double panic: use scopeguard::defer; // 1.1.0 fn main() { defer!{ panic!() }; defer!{ panic!() }; } I know this typically happens when a Drop implementation panics while unwinding from a…
kmdreko
  • 42,554
  • 6
  • 57
  • 106
3
votes
2 answers

Illegal instruction from VS C++ on Windows

I have a C++ application that is crashing on startup for some Windows 7 users. I can't reproduce the error on my own machine, but used breakpad to generate a .dmp file, which shows that the code is crashing with "Illegal instruction" initializing a…
user1389840
  • 651
  • 9
  • 24
3
votes
1 answer

Assembler xbegin raise Illegal instruction

My assembly code raises Illegal Instruction when calls xbegin. Is there any problem? Here is my code. main.c if ( rtm_begin() == 0 ) { //do something. } rtm.S rtm_begin: xbegin 1f mov $0, %rax retq 1: mov $-1, %rax …
karoha
  • 73
  • 3
3
votes
1 answer

Intel VEX prefix, L bit value does not behave according to docs

Intel instruction set reference gives us addsd instruction: VEX.NDS.LIG.F2.0F.WIG 58 /r VADDSD xmm1, xmm2, xmm3/m64 As we can see L bit is ignored (can be either 0 or 1). Machine code of addsd xmm0, xmm0, xmm0: 0xC4, 0xE1, 0x7B, 0x58, 0xC0 C4 -…
igntec
  • 1,006
  • 10
  • 24
2
votes
1 answer

Why do I get an illegal instruction using __builtin_ia32_wrfsbase64 when skylake has fsgsbase?

I'm running my code on a server with "Intel Xeon Processor (Skylake, IBRS)". I listed the cpu flags at the bottom. I got a core dump, ran it in gdb and saw the illegal instruction was __builtin_ia32_wrfsbase64 (I call the intrinsic…
Cal
  • 121
  • 8
1
2 3 4