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

[linux] Fix SIGILL on Jetson #93

Merged
merged 3 commits into from
Sep 10, 2023
Merged

[linux] Fix SIGILL on Jetson #93

merged 3 commits into from
Sep 10, 2023

Conversation

kawakami-k
Copy link
Collaborator

This patch fixes SIGILL on Jetson.
#92

@kawakami-k kawakami-k merged commit 7d436da into main Sep 10, 2023
2 checks passed
return;
}

if (fread(buf, sizeof(char), 64, file) == 0) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kawakami-k
It's turned out that it leads to issue on Linux aarch64 in docker container. And during execution I have:

(gdb) c
Continuing.
bad err=11 in Xbyak::Error

Because current line cannot read anything from file. This is because /sys/devices/system/cpu/cpu?/regs/identification/midr_el1 is empty:

% docker run -it --rm ubuntu:20.04
root@0ff70ef278d2:/# ls /sys/devices/system/cpu/cpu0/regs/identification/midr_el1
/sys/devices/system/cpu/cpu0/regs/identification/midr_el1
root@0ff70ef278d2:/# cat /sys/devices/system/cpu/cpu0/regs/identification/midr_el1
root@0ff70ef278d2:/# 

@kawakami-k
Copy link
Collaborator Author

@ilya-lavrenov

Thank you for letting me know the bug. It'll be handled in #94

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

Successfully merging this pull request may close these issues.

2 participants