Open LarryBaker opened 11 years ago
I found the test errors on the Atom were due to hyper threading being disabled. mcelog assumes if there is a /sys/devices/system/cpu/cpun, there is a cache entry. On CentOS (Red Hat) 6.4, writing 1 to /sys/devices/system/cpu/cpun/online enables the hyper threading processors and the mcelog tests work.
I do not know if this is a bug in the tests or a bug in mcelog.
The bug is in cache.c in mcelog. stat(fn, &st); at line 121 should be turned into if (!stat(fn, &st)) {...} free(fn);.
I tried including the patch, but this HTML markup completely screws it up. At least allow for attachments!
I also got the failure on my haswell platform, but i don't figure out why socket-1.conf: triggers did not trigger as expected: 2 != 4 socket-2.conf: triggers did not trigger as expected: 1 != 2 socket-memdb.conf: triggers did not trigger as expected: 4 != 6
I have run the mcelog tests on two test machines in my lab: an Intel Atom and an Intel Xeon. Both have a couple failures (not bad).
Atom:
[root@atompc tests]# make test ./test cache "" ++++++++++++ running cache test +++++++++++++++++++ mcelog: cache.c:92: parse_cpumap: Assertion `len == c * sizeof(unsigned)' failed. ./test: line 42: 3198 Aborted $D ../../mcelog --foreground --daemon --debug-numerrors --config $conf --logfile $log >> result
[root@atompc tests]# cat */results cache.conf: no triggers at all cache.conf: triggers did not trigger as expected: 2 != 0