Questions tagged [illegal-instruction]
58 questions
0
votes
0 answers
Raspberry PI 4 - 8GM RAM - 64 bit OS aarch64 - easyocr - torch - opencv - illegal instruction
I am trying to get easyocr running on a raspberry pi 4 and could use some suggestions or help. I am using the 64 bit build from May 7th - 2021 (2021-05-07-raspios-buster-arm64.zip). When I do a fresh OS install, I execute the following…

Garet Jax
- 1,091
- 3
- 17
- 37
0
votes
0 answers
What is the usual cause of such "illegal instruction" error, and how could I debug?
I am working on a program using GNU Scientific Library. It gives an "illegal instruction (core dump)" after solving a nonlinear equation in half. See below. What is the usual cause of such "illegal instruction" error, and how could I debug in such…

zell
- 9,830
- 10
- 62
- 115
0
votes
1 answer
Illegal instruction. 0x00007ffff3712210 in nsync::nsync_mu_init(nsync::nsync_mu_s_*) while loading libtensorflow_cc.so
A part of my application uses tensorflow to load the model. Application code is compiled with tensorflow2.3 using devtoolset-7.
While trying to run my application binary it crashes while loading libtensorflow_cc.so with stack trace
Illegal…

abhay jogekar
- 7
- 1
- 5
0
votes
2 answers
Trying to link a .c file with a .s file, but I get "Illegal instruction"
I have these two files, 9-main.c and 9-mult.s.
9-main.c :
#include
int mult(int);
int main(){
int result = mult(5);
printf("Result: %d\n",result);
return 0;
}
9-mult.s :
.global mult
mult:
mov r1,r0
…

Mnkisd
- 504
- 2
- 12
0
votes
1 answer
C illegal instruction
Below is a print out of a c program I wrote, a demonstration of me running it, and finally some information on my compiler.
➜ illegalInstructionDebug cat illegal.c
#include
#include
#include
void func(int* Z){
…

Mathew
- 1,116
- 5
- 27
- 59
0
votes
0 answers
Getting Illegal Instruction:4
I was trying to do this function in C but for some reason is giving me "Illegal instruction: 4"... From what I looked up it may be because I'm using iOs, but still I'm using VSCode and not a project so I have no idea how to correct it.
The function…

Toca Fonseca
- 17
- 3
0
votes
1 answer
How CPU predicts, the instruction and data limits in the sequence of binary information of binary file?
How CPU Differentiate the instruction from the data?
How CPUs determines the length of instruction(it varies from 1 byte upto 15 byte max) while executing the code? if suppose the cpu does not determine the length of instruction, it may take the…

Vintage Coder
- 441
- 1
- 6
- 9
0
votes
2 answers
Illegal Hardware Instruction Error when using GloVe
I am trying to train GloVe embeddings. In the GloVe implementation from stanfordnlp there are 4 scripts to run. However, running the second script, coocur, results in an Illegal Hardware Instruction-Error. I don't understand how this error is…

sinaj
- 129
- 1
- 1
- 10
0
votes
1 answer
Illegal instruction when executing function call on RISC-V
Goodmorning,
I am trying to write a simple program in assembly for RISC-V architecture, in which I have a simple main (_start) that perform a function call that does nothing and return to the caller.
The code I wrote is the following:
.section…

Gianluca Brilli
- 69
- 1
- 6
0
votes
0 answers
ARMv8 illegal instruction
I have written the following assembly for ARMv8:
.text
.align 4
.global permute
.type permute, %function
permute:
ld2 {v0.2d - v1.2d}, [x0], #32
ld2 {v2.2d - v3.2d}, [x0], #32
ld2 {v4.2d -…

Martin Lauridsen
- 341
- 4
- 12
0
votes
0 answers
Illegal instruction - vcvtsi2sd
I am writing a program to compute Groebner bases using the library FGB. While it has a C interface, I am calling the library from C++ code compiled with g++ on Ubuntu.
Compiling with the option -g and using x/i $pc in gdb, the illegal instruction is…

RghtHndSd
- 117
- 5
0
votes
0 answers
Is "66 66 90" (data32 data32 nop) valid instruction for Intel cpu in 64-bit Long mode?
I'm getting an illegal opcode on a 64-bit Intel Xeon processor. When the exception occurs, %rip points to instruction sequence 66 66 90. According to what I've read (e.g., this article), this is a multi-byte NOP. The article seems to suggest that…

BPS
- 218
- 1
- 6
-3
votes
1 answer
why I get illegal hardware instruction message from a simple code?
#include
#include
int main()
{
char s1[] = "harry";
char s2[] = "ravi";
char s3[54];
puts(strcat(s1, s2));
strcpy(s3 ,strcat(s1, s2));
puts(s3);
return 0;
}
this is the error that I…

Deepkr09
- 1
- 1