Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal Instruction while Trying to Run Cargo #853

Closed
iamrecursion opened this issue Aug 9, 2020 · 3 comments
Closed

Illegal Instruction while Trying to Run Cargo #853

iamrecursion opened this issue Aug 9, 2020 · 3 comments

Comments

@iamrecursion
Copy link
Contributor

Installing cargo via apk and then attempting to run it crashes with an illegal instruction. The same issue occurs seemingly with any binary built in rust, including rustc itself.

Repro

> apk add cargo
> cargo

The dmesg output for the crash is below.

Output from `dmesg` for the crash
[    0.000000] 3 stub syscall 383
               3 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 stub syscall 383
               6 illegal instruction at 0x56cd1b8e: 0f fe e1 66 0f df dc 66 
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               5 stub syscall 383
               7 stub syscall 383
               7 stub syscall 383
               7 stub syscall 383
               7 stub syscall 383
               7 stub syscall 383
               7 stub syscall 383
@Mnpn
Copy link
Member

Mnpn commented Aug 9, 2020

Hi! This seems to be the same as #805 (and #67)

@Mnpn Mnpn closed this as completed Aug 9, 2020
@sferrini
Copy link

Just updated iSH to App Store v1.1.1 (Build 91) and got this new illegal instruction:

iPhone:~/data/yolo# cargo run
Illegal instruction
iPhone:~/data/yolo# dmesg
55 illegal instruction at 0x568067f6: 0f 11 42 24 8b 55 e8 66 
iPhone:~/data/yolo# rasm2 -b 32 -d "0f1142248b55e866"
movups xmmword [edx + 0x24], xmm0
mov edx, dword [ebp - 0x18]
invalid

@sferrini
Copy link

And rustc fails with:

iPhone:~/data/yolo/src# rustc main.rs 
Illegal instruction
iPhone:~/data/yolo/src# dmesg
33 stub syscall 375
34 illegal instruction at 0xf452a642: 0f 61 e8 66 0f 62 e8 66 
iPhone:~/data/yolo/src# rasm2 -b 32 -d "0f 61 e8 66 0f 62 e8 66"
punpcklwd mm5, mm0
punpckldq xmm5, xmm0
invalid

This was referenced Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants