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

In mcelog/tests/socket, each trigger is executed twice for an injected socket error #78

Open
JiriDluhosRH opened this issue May 27, 2020 · 3 comments

Comments

@JiriDluhosRH
Copy link
Contributor

(Observed in RedHat.)
For an error injected in socket space (in mcelog/tests/socket), the trigger script is invoked twice which causes the test to fail, complaining of incorrect number of trigger invokations. After looking into the code, I have found that, in memdb.c, in memory_error(), socket errors are really accounted twice:

/* ... /
if (sockdb_enabled) {
md = get_memdimm(m->socketid, -1, -1, 1);
account_over(&sockets, md, m, corr_err_cnt);
account_memdb(&sockets, md, m);
}
/
... */

This invokes two triggers (provided that thresholds are set appropriately): one from account_over (with note "Fallback memory error"), and another one from account_memdb.
As this is, more or less, the expected behavior, I think the test should be updated to take this into account.

@andikleen
Copy link
Owner

Hmm, ok might be some time since I ran the test suite on a multi socket system.
Can you please submit a patch?

@lumanyu180
Copy link

lumanyu180 commented May 28, 2021

Hi , JiriDluhosRH
I ran into the same problem。How do you solve it now ?。Modify the socket-x.conf's trigger 2 to 4 ?
@andikleen , can you help to solve it , thanks very much! @JiriDluhosRH

@lumanyu180
Copy link

lumanyu180 commented May 28, 2021

Hi, JiriDluhosRH
I have another problem. In mcelog/tests/page。The test result is :
page-soft-then-hard.conf: triggers did not trigger as expected: 4 != 6
I think it inject 6 errors , so the trigger script should be invoked 6 times. But the page-soft-then-hard.conf has #trigger 4.
If you have the same problem ? Thanks very much! @JiriDluhosRH

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