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

mce: Unable to init device /dev/mcelog (rc: -5) #85

Open
czxkgxy opened this issue Nov 2, 2020 · 2 comments
Open

mce: Unable to init device /dev/mcelog (rc: -5) #85

czxkgxy opened this issue Nov 2, 2020 · 2 comments

Comments

@czxkgxy
Copy link

czxkgxy commented Nov 2, 2020

mce: Unable to init device /dev/mcelog (rc: -5)
Centos7x suddenly hangs dead, this error appears after restarting, what is the cause?please tell me
rc :5 looklike ?return?

@CXXF2018
Copy link

hello,have you found how to solve this problem? Now,I also encountered this problem

@aegl
Copy link
Collaborator

aegl commented Mar 20, 2023

Error code -5 is "EIO". The only place where the upstream kernel /dev/mcelog driver returns that is here:

    if (!boot_cpu_has(X86_FEATURE_MCE) || !boot_cpu_has(X86_FEATURE_MCA))
            return -EIO;

But that's in the "write" path which is only used for error injection.

Can you boot the system and try starting mcelog daemon manually running under "strace" to get some details on interactions between mcelog and your CentOS kernel.

sudo strace -o /tmp/mcelog.out -f /usr/sbin/mcelog --daemon

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