andikleen / mcelog

Linux kernel machine check handling middleware
http://www.mcelog.org
GNU General Public License v2.0
136 stars 63 forks source link

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

Open czxkgxy opened 4 years ago

czxkgxy commented 4 years ago

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 commented 1 year ago

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

aegl commented 1 year ago

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