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

[Bug] SIGILL on linux docker container #94

Closed
kawakami-k opened this issue Oct 15, 2023 · 5 comments
Closed

[Bug] SIGILL on linux docker container #94

kawakami-k opened this issue Oct 15, 2023 · 5 comments

Comments

@kawakami-k
Copy link
Collaborator

#93 (review)

Because linux docker container has no
/sys/devices/system/cpu/cpu0/regs/identification/midr_el1
file, capability detection fails.

@kawakami-k
Copy link
Collaborator Author

@ilya-lavrenov

Could you tell me docker version and host OS version you use?
I can't reproduce your error on my environment (AWS Graviton3).

# Host
% docker --version
Docker version 24.0.6, build ed223bc

% cat /etc/os-release| grep PRETTY_NAME
PRETTY_NAME="Ubuntu 22.04.2 LTS"

% cat /sys/devices/system/cpu/cpu0/regs/identification/midr_el1
0x00000000411fd401

# Docker container
% docker run -it --rm ubuntu:20.04

# cat /etc/os-release | grep PRETTY_NAME
PRETTY_NAME="Ubuntu 20.04.6 LTS"

# cat /sys/devices/system/cpu/cpu0/regs/identification/midr_el1
0x00000000411fd401

@ilya-lavrenov
Copy link

I used Apple M2 macOS14 with ubuntu 20.04 docker image.

@kawakami-k
Copy link
Collaborator Author

At this time, it may be difficult to get CPU capability correctly if the host OS and container OS are different. I wish I could find a similar example in other libraries which deals this issue.

@malfet
Copy link
Contributor

malfet commented Dec 18, 2023

Might be fixed by #96

@ilya-lavrenov
Copy link

Yes, it fixes the issue
Thanks @malfet and @kawakami-k

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